Updates readings from patient Skid
This commit is contained in:
parent
ce8ff0a7bf
commit
f808b88f93
|
|
@ -8,7 +8,7 @@ sns.set(style="whitegrid")
|
||||||
plt.rcParams['figure.figsize'] = (14, 6)
|
plt.rcParams['figure.figsize'] = (14, 6)
|
||||||
|
|
||||||
# Chargement des données
|
# Chargement des données
|
||||||
df = pd.read_csv("recordings/recording_20250718_112807.csv", parse_dates=["timestamp"])
|
df = pd.read_csv("../recordings/recording_20250718_112807.csv", parse_dates=["timestamp"])
|
||||||
|
|
||||||
df_PatientSkid = df[df['pu'] == 'PatientSkid'].copy()
|
df_PatientSkid = df[df['pu'] == 'PatientSkid'].copy()
|
||||||
|
|
||||||
2
main.py
2
main.py
|
|
@ -452,7 +452,7 @@ async def update_latest_flow():
|
||||||
try:
|
try:
|
||||||
async with session.get("http://192.168.1.28:8000/instant_flow") as resp:
|
async with session.get("http://192.168.1.28:8000/instant_flow") as resp:
|
||||||
data = await resp.json()
|
data = await resp.json()
|
||||||
latest_flow = int(data["log"]["flow"])
|
latest_flow = int(data["log"])
|
||||||
logging.debug(f"Updated flow: {latest_flow}")
|
logging.debug(f"Updated flow: {latest_flow}")
|
||||||
latest_data["PatientSkid"]["QSkid"] = latest_flow
|
latest_data["PatientSkid"]["QSkid"] = latest_flow
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user