Serves weather data (and maybe other information in the future) to a M5Paper device.
The code under m5paper requests data from the server, deserializes it, and renders to the screen. It shuts down (wakeup done by the real time clock) after it is finished rendering.
Running the deserialization tests requires this single-file test library https://github.com/colonelxc/cxxtest
Service written in Go. It periodically loads weather data in the background, and serves the latest data upon request. It only listens on localhost, as I serve it behind Caddy.
Pulls weather forecast data from api.weather.gov
The protocol is schemaless, but hopefully a bit easier to parse than json.
There can be one or more sections
- A name for the section. This is essentially a hint to the parser for what is coming next.
- A (tab separated) list of column names.
- One or more data rows (with the same number of columns as above), with each data value separated by tabs.
- An empty line (a newline following the last data row newlines)