While I'm talking about #RaspberryPi projects, here's my just-completed weather widget, based on a Pi Pico W and a 3.7" e-ink display. It reads the temperature and humidity from another Pico with a sensor attached that's out on the back porch, and the forecast from the National Weather Service, uses a bit of fuzzy logic to select icons, and displays as many as can comfortably fit into the allocated area of the display.
This is rather more than the Pico can do well by itself, so this is all done by a script on another machine; this device just requests it at suitable intervals and displays it.
It all started because I got tired of going and looking at the mercury thermometer out back to find the temperature, toyed with the idea of pointing a camera at it, and ultimately decided to make this instead.
@jern There's a ton of permutations to the forecast text, even the terse form. The code has to decide which words are important, and also where they land in the sentence, to decide which of the very simple icons will actually tell you the important thing to know about the day or night. Will there be a storm? Early or late? Is it clearing or becoming cloudy? It might be mostly sunny with rain later... it could say anything. Freezing rain, chance of hail... I can show essentially one thing. What's the right thing to show?
@jern No it's a good question. The forecast is text in a not very predictable format, which could be succinct or not so much depending on how interesting the weather is going to be. And the icons I'm using are perforce very simple and represent just one thing. Automatically picking the one most likely to represent what you really want to know about the day based on what you hope is the most significant word or phrase in the forecast took a little doing. It's been a couple of weeks since I wrote that bit and it's choosing pretty well so far.
@pieist That sounds an ideal application for fuzzy logic.
@pieist Thanks. Sorry, misunderstood. Complex decoding.