From 6017b40b411b766542ce93c611ba6281cf1c5b73 Mon Sep 17 00:00:00 2001 From: emilianospada Date: Tue, 28 Mar 2023 01:02:10 +0200 Subject: [PATCH] Delete threadsManager.py --- sensors/threadsManager.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 sensors/threadsManager.py diff --git a/sensors/threadsManager.py b/sensors/threadsManager.py deleted file mode 100644 index 4c096b3..0000000 --- a/sensors/threadsManager.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import threading - - -# List of sensor reading scripts -scripts = ['sensors/bme280/air-temperature.py', 'sensors/bme280/air-humidity.py', - 'sensors/bme280/air-pressure.py', 'sensors/sht20/soil-temperature.py', - 'sensors/sht20/soil-humidity.py' -] - - -def run_sensor_scripts(): - threading.Timer(20.0, run_sensor_scripts).start() - - # Loop through each script and run it while holding the lock - for script in scripts: - os.system('python ' + script) - - -run_sensor_scripts()