berry_yogurt_4_05.py aktualisiert

This commit is contained in:
Jörg Frei 2025-12-19 11:54:06 +01:00
parent ff6d3a97a9
commit ef07bc230d

View File

@ -47,7 +47,7 @@ def on_a_sensor_signal():
df.to_csv(f"Raspberry Yogurt_{currentDateTime}.csv", index=False) df.to_csv(f"Raspberry Yogurt_{currentDateTime}.csv", index=False)
print("CSV file saved") print("CSV file saved")
def check(): # Runs periodically the led_check as long as ayogurth is open def check(): # Runs periodically the led_check as long as a yogurth is open
schedule.every(6).seconds.do(led_check) schedule.every(6).seconds.do(led_check)
while not infrared_sensor.is_active and consumption_overview[-1]['Status'] == 'Yogurt open': while not infrared_sensor.is_active and consumption_overview[-1]['Status'] == 'Yogurt open':