User Tools

Site Tools


simple_weather_app

This is an old revision of the document!


Simple Weather App

Sep 2026

Back to Micro Python


Introduction


<code | download>
This project is a bit of an accident. We want to make a new clock, we made one around 10 years ago from a Raspberry Pi Zero and some 7 segment LEDs. That project can be found here - Raspberry Pi LED Clock and NTP Server.

Now, it has worked flawlessly for 10 years. But it is still a small computer with an OS, and you have to do some maintenance on the OS (upgrades etc) periodically. So the thinking was, a new clock using a Raspberry Pi Pico would be cool, newer hardware, no OS worries, better display (LCD rather than 7 segment) and include other things than the time like the weather, or a news feed etc.

The first thing we explored was how to get the weather from the internet, turns out this is pretty simple. We used something called Open Meto, which is:

  • Open-Meteo is a free, open-source weather API that delivers localized weather forecasts and historical climate data without requiring an API key.

So basically a free weather service to pull information from using an API.

If you wish to make one of these, then great. Please check out the Project called 'Network Analyzer' and look at Phase 2 (which is the LCD we are using).

You will need:

  • The same LCD.
  • The Same Driver.
  • The Test Code for the Driver

Check out this link: Pico with 2.4" Tenstar SPI LCD. This will ensure your hardware is good, before you start to worry about the software.


A Simple Test


If you have completed the hardware setup, and see some test text on your LCD, then we are good to start. The first test is to get some weather data from Open-Meteo. Now, this means connecting to the internet from your Pico, so please ensure you have done the following:

This will ensure you have tested your Pico Wifi and you have your MAC address in case your router requires this.


Test Open-Meteo


From Thonny, save this code to your Pico as Meteo-test and run it.

simple_weather_app.1789051073.txt.gz · Last modified: by walkeradmin