DIY Smart Weather Station

An ESP8266 and ESP32 weather station with a local dashboard and MQTT discovery

Image 1 of 3: Web dashboard with temperature, humidity, pressure, air quality, wind and rain cards

Firmware and 3D-printed hardware for a weather station that measures temperature, humidity, pressure, air quality, light, wind and rain, served from the board as a dependency-free web dashboard with a live console, MQTT auto-discovery, weather network uploads, a REST API and JSON backups.

Trade-offs

  • One codebase for ESP8266 and ESP32 behind a hardware abstraction layer, including IRAM-safe interrupt routines.
  • Wind direction is a circular mean of sine and cosine vectors, so averages don't jump at the 0/360 boundary, and gusts are taken from raw pulses before averaging.
  • The anemometer has its own fast timer, apart from the configurable I2C read cycle of the other sensors.

Q&A4

Through MQTT auto-discovery, which creates the entities with no YAML to write.

Reviews

Loading reviews

    More in Arduino

    See all 5 →
    • TouchDeckA local touch control deck for Home Assistant and PC stats on an ESP32-S3
    • Acid DripA DIY groovebox on an RP2040: acid bassline, a second synth and a drum machine
    • Raising HellA Tamagotchi-style virtual pet game for the M5Stack Cardputer ADV
    • ASCII AquariumAn animated ASCII fish tank rendered live on an ESP32 touchscreen
    • OverheadAn air and space dashboard on a $10 ESP32 touchscreen

    More in Embedded

    See all 28 →
    • CarWatchA car as a chat agent: Raspberry Pi 5 running a local 35B model in the car
    • NightRunLocal LLM runtime that boots from USB with no conventional operating system
    • RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments
    • Anemoia-ESP32NES emulator running at native speed on a plain ESP32
    • sanoTTS-jpJapanese text-to-speech small enough for a $3 ESP32-S3 microcontroller
    • OpenSource AI GlassesOpen Linux smart glasses with a camera, voice AI and an optional display

    More in Self-hosted

    See all 120 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS
    • FusionalySelf-hosted web analytics in one SQLite file
    • KotauthMulti-tenant OAuth2 and OIDC identity server in Kotlin, self-hosted in Docker
    • DeftSelf-hosted workspace shared by people and AI agents