Skip to content

martinohmann/weather-landscape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather-landscape

License: Apache 2.0 License: MIT

Note

This is a personal project that scratched an itch of mine and is designed for my particular use case and hardware only. I don't accept contributions unless they improve the documentation or fix a bug.

If you're using different hardware or are missing a feature, please fork it and get creative too :).

This is a rewrite of the awesome weather_landscape project. If you're confused what all this here is about, I highly recommend to check out the original project. It has a lot of great imagery describing the encoding principles, too.

Why?

I really fell in love with the idea behind weather_landscape when I first discovered it, but couldn't make it work on my hardware. So I was thinking. I wanted to get my hands dirty with esp32, but couldn't come up with a nice project to make use of it. So this was a perfect opportunity!

Additional features over the original

Apart from the features mentioned in the README of weather_landscape, this implementation also includes:

  • Fog: On a foggy day you will see wavelike lines below the clouds. The more lines there are, the heavier the fog.
  • Sleet: Apart from rain and snow, sleet is also shown as a mixture of rain drops and snow flakes.
  • Night mode: At night time the colors are inverted (white scenery on black background).
  • Metrics: The server provides Prometheus metrics for monitoring. I use these to get alerted when the battery of the esp32 died, for example.

Setup

server Setup

Note

All commands are relative to the server/ directory.

Adjust the config.toml to your needs.

cp config.example.toml config.toml
cargo run

esp32 Setup

Tooling installation

  1. Install espup:

    cargo install espup

    Follow the guide to set espup up: espup-guide

  2. Install espflash and cargo-espflash:

    cargo install espflash cargo-espflash

Prepare config and test

Note

All commands are relative to the esp32/ directory.

Adjust the cfg.toml to your needs.

cp cfg.example.toml cfg.toml
cargo run

Flash release build

cargo espflash --release --monitor

License

The source code inside this repository is licensed under either of Apache License, Version 2.0 or MIT license at your option.

About

Weather encoded as a landscape

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages