The canonical location of this repo is: https://git.sr.ht/~mkelly/weatherdash-go. Other locations are mirrors.
Go rewrite of https://github.com/mjkelly/weatherdash. This version is more maintained (to the extent that I maintain either).
This is the server side portion of a weather dashboard for your house, using data and icons from https://openweathermap.org/.
The idea is that you put a portable computer (like a Raspberry Pi, or similar) somewhere running Chrome and load this web page. This dashboard can be running on your portable computer, or somewhere else.
It's designed to look good on an 800x640 screen. Here's a screenshot:
Here's a photo of a much older version of weatherdash running on this screen from Adafruit: https://www.adafruit.com/product/2260
I also tried to make it look all right on a portrait-mode phone, in case you want to use that.
This requires a working Go installation, and GNU Make.
config.json to start. You only need to update
keys that have a value of
If you just want to see a demo at this point, you can run
make run and visit
http://localhost:8080/fake -- that will read fake weather data stored locally.
You must have a config.json file, but you need not change it at all.
api_key field of
lon fields of
make in this directory to build and run the server. It'll listen on port
8080. Go to
<your-ip-address>:8080 to have a look. If you're building this on
your local machine, that's
If you're debugging the layout, add
?reload=false to the URL to skip the
periodic reload. That will avoid wiping refreshing the HTML periodically.