Updates readings from patient Skid

This commit is contained in:
Etienne Chassaing 2025-08-12 11:42:04 +02:00
parent ce8ff0a7bf
commit f808b88f93
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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