stuartlynn / glowanus

Simple api server to record what glowanus lanterns are on

Home Page:glowanus-monitor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glowanus project

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

Loading 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.

Monitoring ID

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()

About

Simple api server to record what glowanus lanterns are on

glowanus-monitor.vercel.app


Languages

Language:Python 93.4%Language:TypeScript 3.3%Language:CSS 2.0%Language:HTML 1.2%Language:JavaScript 0.1%