A simple weather dashboard for the Pi Pico.
Fetches weather data from OpenWeather and displays it on an e-paper display.
- MicroPython
- OpenWeather API key
Ensure you have MicroPython installed on the Pico W.
- Clone the repository.
- Copy
config.txt.exampletoconfig.txtand fill in the required values.
Copy the Python files in the root directory and the config.txt file to the Pico W.
Example using microupload.py script:
$ python3 ./scripts/microupload.py -v /dev/cu.usbmodem14101 config.txt display.py images.py main.py net.py render.py utils.py weather.pyAlternatively, you can use the mpremote tool to copy the files to the Pi Pico.
$ mpremote connect /dev/cu.usbmodem14101 cp *.py config.txt :Note The
:at the end of the command is important. It tellsmpremoteto copy the files to the root directory of the Pi Pico.
Activate the virtual environment:
source venv/bin/activateInstall mpremote - MicroPython Remote Control:
pip install mpremoteThen to open a REPL session:
mpremoteTo exit:
Ctrl-]
Weather icons by Icons8.
- Add support for wind speed (m/s)
- Add support for cloudiness (%)
- Add support for
alerts - Improve text wrapping