![]() |
The raspberry pi runs a nodejs server, that listens for http requests. The other end is a NodeMCU stuck on the garage door with a tilt switch that detects a change in orientation. When that happens it sends a http request to the Nodejs server on the raspberry pi with the current state of the garage door either open or closed. The raspberry pi then updates the image on the OLED with the door open image or the door closed image. Door open after been notified by the nodemcu on the garage door. door closed, also after being notified by the nodemcu on the garage door. The raspberry pi waits 1 minute after the door has been closed and removes the image from the OLED. Code, assembly info and project files are on my github: https://github.com/thinklearndo/garagedooropennotifier submitted by /u/thinklearndo [link] [comments] |
More...