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