GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ljufa/pico_weather_station: weather dashboard on rpi pico w

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
cyw43-firmware
cyw43-firmware
 
 
docs
docs
 
 
src
src
 
 
.env.template
.env.template
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Makefile.toml
Makefile.toml
 
 
README.md
README.md
 
 
build.rs
build.rs
 
 
image.jpg
image.jpg
 
 
memory.x
memory.x
 
 

Repository files navigation

Pico Weather Station

Pico Weather Station

A weather dashboard for the Raspberry Pi Pico W, written in Rust using the Embassy framework. Displays current weather, hourly forecast, and multi-day forecast on a 3.5" LCD.

Features

  • Current temperature and city from online self-hosted API (via geoip service)
  • Hourly temperature forecast for the current day
  • 4-day weather forecast with high/low temperatures
  • Real-time clock synchronized from the internet
  • Three configurable display periods: day (white theme), evening (dark theme), night (dark theme, lowest brightness)
  • Partial screen refresh: only redraws changed regions (time, date, weather)
  • WiFi credentials loaded from .env file at build time

Hardware

Required Components

  • Raspberry Pi Pico W
  • Waveshare Pico-ResTouch-LCD-3.5 (ILI9488, 480x320, 16-bit parallel via SPI shift registers)

Pin Connections

  • ILI9488 Display:
    • CLK: GP10
    • MOSI: GP11
    • CS: GP9
    • DC: GP8
    • RST: GP15
    • Backlight: GP13 (PWM)

Prerequisites

  • Rust:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • thumbv6m-none-eabi target:
    rustup target add thumbv6m-none-eabi
  • probe-rs:
    cargo install probe-rs --features cli

Configuration

Copy the template and fill in your values:

cp .env.template .env
WIFI_SSID=your_network_name
WIFI_PASS=your_password
BRIGHTNESS_DAY=80        # brightness during day period (0–100%)
BRIGHTNESS_EVENING=55    # brightness during evening period (0–100%)
BRIGHTNESS_NIGHT=20      # brightness during night period (0–100%)
EVENING_START=19         # hour when evening starts: dark theme, BRIGHTNESS_EVENING (24h)
NIGHT_START=22           # hour when night starts: dark theme, BRIGHTNESS_NIGHT (24h)
NIGHT_END=7              # hour when day resumes: white theme, BRIGHTNESS_DAY (24h)
GEOIP_API_URL=http://your_geoip_service_ip_or_domain:8080

The three periods are:

Period Hours (example) Theme Brightness
Day 07:00 – 19:00 White BRIGHTNESS_DAY
Evening 19:00 – 22:00 Dark BRIGHTNESS_EVENING
Night 22:00 – 07:00 Dark BRIGHTNESS_NIGHT

The .env file is loaded automatically at build time and is gitignored.

Building and Running

1. Flash WiFi firmware (one-time, or after chip erase)

probe-rs download cyw43-firmware/43439A0.bin --binary-format bin --chip RP2040 --base-address 0x10100000
probe-rs download cyw43-firmware/43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x10140000

2. Debug build (with defmt logging)

cargo make flash-debug

Or manually:

cargo run

3. Release build (no defmt, smaller binary, uses panic-reset)

cargo make flash-release

Or manually:

cargo build --release --no-default-features --features release
probe-rs download --chip RP2040 target/thumbv6m-none-eabi/release/pico_weather_station

Build Features

Feature Description
debug Default. Includes defmt RTT logging, panic-probe
release No logging, uses panic-reset for production

Available Tasks (cargo-make)

Task Description
flash-debug Build, flash and attach debug serial
flash-release Build and flash release firmware
build-debug Build debug only
build-release Build release only
check Check for compilation errors

Period Override (Testing)

In src/main.rs, there is a FORCE_NIGHT constant to pin the display to a specific period without waiting for the clock:

const FORCE_NIGHT: Option<bool> = None;           // auto (time-based)
// const FORCE_NIGHT: Option<bool> = Some(true);   // force night/evening (dark theme)
// const FORCE_NIGHT: Option<bool> = Some(false);  // force day (white theme)

About

weather dashboard on rpi pico w

Topics

embassy-rpembedded-rustpico-wrustweather

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.