added main.py, updated readme
This commit is contained in:
parent
1cde5a2cfd
commit
8293b0cc4e
2 changed files with 33 additions and 52 deletions
14
main.py
14
main.py
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue