Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/outofcoffee/pico-weather
Fetches weather for location and displays on e-Ink display on Raspberry Pi Pico
https://github.com/outofcoffee/pico-weather
display e-paper microcontroller micropython pico-w rpi-pico weather
Last synced: 4 days ago
JSON representation
Fetches weather for location and displays on e-Ink display on Raspberry Pi Pico
- Host: GitHub
- URL: https://github.com/outofcoffee/pico-weather
- Owner: outofcoffee
- Created: 2024-01-01T01:19:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-04T01:54:53.000Z (11 months ago)
- Last Synced: 2025-01-23T07:12:20.862Z (4 days ago)
- Topics: display, e-paper, microcontroller, micropython, pico-w, rpi-pico, weather
- Language: Python
- Homepage:
- Size: 753 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pico Weather Dashboard
A simple weather dashboard for the Pi Pico.
Fetches weather data from OpenWeather and displays it on an e-paper display.
## Hardware
- [Raspberry Pi Pico W](https://www.raspberrypi.org/products/raspberry-pi-pico/)
- [Waveshare 2.13inch e-Paper HAT](https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT)## Dependencies
- MicroPython
- [OpenWeather](https://openweathermap.org/) API key## Setup
Ensure you have [MicroPython installed](https://micropython.org/download/RPI_PICO_W/) 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:
```bash
$ 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.
```bash
$ 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:
```bash
source venv/bin/activate
```Install `mpremote` - MicroPython Remote Control:
```bash
pip install mpremote
```### Running the REPL
Then to open a REPL session:
```bash
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