added main.py, updated readme

This commit is contained in:
mia 2025-06-18 10:13:05 +02:00
parent 1cde5a2cfd
commit 8293b0cc4e
2 changed files with 33 additions and 52 deletions

14
main.py
View file

@ -10,3 +10,17 @@
# 1. Start all the Sensors
# 2. Start the Webserver
# 3. Somehow transfer data from the Sensors to the Webserver
import subprocess
programs = [
["python", "sensors/lichtwiderstandsSensor.py"],
["python", "sensors/mikrofonSensor.py"],
["python", "sensors/temperaturSensor.py"]
]
# Start each one in parallel
processes = []
for prog in programs:
p = subprocess.Popen(prog)
processes.append(p)