This program queries a PostgreSQL database and generates a Leaflet based webpage with a bunch of markers.
Currently used to populate https://map.technicallyrural.com/, which looks something like this:
Expecting a schema as described in this file
For configuration, requires a .env
file (or environment variables) as follows:
POSTGRES_DATABASE=meshtastic
POSTGRES_HOST=localhost
POSTGRES_PASSWORD=reallysecure
POSTGRES_PORT=5432
POSTGRES_USER=postgres
It's designed to be invoked cron style with a script like:
#!/bin/bash
./meshtastic-populator
mv -f index.html public/index.html