A weather page for Anthias on a slow internet connection
The built-in Anthias weather app didn’t work reliably for us; in the settings, the Openstreetmap did not show the map at all but a warning. We still wanted to have a weather shown to the customers, so we built a small weather page of our own.
The idea was simple: keep the graphics on the player (Raspberry Pi 5 4Gb + 32Gb SD), and only fetch the forecast over the internet.
We chose a small Python web service built with FastAPI. It looks up a Finnish postcode in a local file and uses the coordinates to fetch a forecast from MET Norway service. This way, one server can supply several screens, and each screen can show its own local weather.
To get it onto a player, we add a small weather service alongside Anthias, push the package to balenaCloud and assign the release to the player. Then we add a regular URL asset in Anthias, like http://weather-display:8765/00100. Just change the postcode and you change the forecast.
When that asset comes up in the playlist, the pictures are already on the player. It can show the last saved forecast while it checks for an update, even on a flaky connection.
i myself ain’t a coder so I used ChatGPT Plus subscription to wibe code the app. It took some changes as it was also my first program I’ve ever created. Currently the company I created this for has just two screens, which only one is using Anthias to display the images. However the overall corporation runs lots of restaurants around the area, so the potential is huge.
Have you done anything similar in your Anthias system?
