Skip to content

outofcoffee/pico-weather

Repository files navigation

Pico Weather Dashboard

A simple weather dashboard for the Pi Pico.

Fetches weather data from OpenWeather and displays it on an e-paper display.

Photo of the Pi Pico with the e-Paper display showing the weather

Hardware

Dependencies

Setup

Ensure you have MicroPython installed on the Pico W.

  1. Clone the repository.
  2. Copy config.txt.example to config.txt and fill in the required values.

Deploy and run

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.py

Alternatively, 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 tells mpremote to copy the files to the root directory of the Pi Pico.


Running a REPL session

Prerequisites

Activate the virtual environment:

source venv/bin/activate

Install mpremote - MicroPython Remote Control:

pip install mpremote

Running the REPL

Then to open a REPL session:

mpremote

To exit:

Ctrl-]

Image attribution

Weather icons by Icons8.


Future improvements

  • Add support for wind speed (m/s)
  • Add support for cloudiness (%)
  • Add support for alerts
  • Improve text wrapping

About

Fetches weather for location and displays on e-Ink display on Raspberry Pi Pico

Topics

Resources

Stars

Watchers

Forks

Contributors