This repo contains the code for the Glowanus project. It has two directories
- glowanus_monitor: which has the code for the website that helps us tell which of the lanterns is active through their heartbeat pings
- pico_code: which is the actual code that runs on the Pi Pico W
We are using Thonny to upload the program to the Pico. Simply upload the contents of the pico_code folder to the Pi and it should start running.
We have a small heartbeat ping to a monitoring site, just to see if the application is up and functioning. The id for each lantern can be set in the running.py file by changing the deviceId on this line
result = urequests.get("https://glowanus-monitor.vercel.app/api/record_ping?deviceId=12").json()