]> vault307.fbx.one Git - garage_door_sensor.git/blob - garage_sensor.py
garageCheck runs on device to turn on/off LEDs (Myserver)
[garage_door_sensor.git] / garage_sensor.py
1 # use distance sensor to measure in front (place by track). If less than 100, door is open.
2 # set up web socket to communicate with base server to display status
3 '''
4 can send data over socket from pico w. can read socket, but only once.
5 host/client need to be reset (socket seems to be 1 time use?)
6 '''
7 # host server will check status and light led if door OPEN
8 # if lux below 25, light off. over 25, light on. check if door open/closed