Weather as Landscape
September 14, 2025 · View on GitHub
Visualizing Weather Forecasts Through Landscape Imagery

Traditional weather stations often display sensor readings as raw numerical data. Navigating these dashboards can be overwhelming and stressful, as it requires significant effort to locate, interpret, and visualize specific parameters effectively.
Viewing a landscape image feels natural to the human eye. The calming effect of observing landscape elements reduces stress and requires minimal effort, allowing for a more relaxed visual experience.
The method below demonstrates how to encode weather information within a landscape image, with no or minimal reliance on numerical data.
Encoding principles
The landscape depicts a small house in the woods. The horizontal axis of the image represents a 24-hour timeline, starting from the current moment on the left, marked by the house, and extending to the conditions of the next day on the right. Various landscape elements distributed along the vertical axis symbolize weather events and conditions. The further an event is from the present, the farther it is positioned to the right in the image.

The following information can be encoded within the landscape image:
- Time markers to simplify timeline navigation:
- Sunrise and sunset times
- Noon and midnight
- Weather forecast information:
- Wind direction and strength
- Temperature fluctuations
- Maximum and minimum temperature values
- Cloud cover
- Precipitation
- Current weather conditions:
- Temperature
- Atmospheric pressure
- Non weather events:
- Birthdays
- Holidays
Implementation
The image generation code is written in Python using the Pillow library and is based on data from OpenWeather. The image is designed specifically for use on a 296x128 E-Ink display. The code tested on Python 3.9.
| Event image | Description |
|---|---|
![]() | Sunrise |
![]() | Sunset |
![]() | Cloud cover |
![]() | Current time position |
![]() | Midnight |
![]() | Midday |
| South wind | |
| East wind | |
| West wind | |
| North wind | |
![]() | Rain |
![]() | Snow |
![]() | High atmospheric pressure |
![]() | Normal atmospheric pressure |
![]() | Low atmospheric pressure |
![]() | Non-weather event: someone's birthday. |
The taller the trees, the stronger the wind is expected to be. A mix of different tree types in the forest indicates an intermediate wind direction.
Examples
| Landscape image | Description |
|---|---|
![]() | It’s around noon, with clear skies and a few clouds expected. A moderate north wind will develop overnight. Temperatures are currently rising but will begin to fall after sunset, reaching their lowest point before sunrise. During this time, the wind is expected to shift to the northeast. |
![]() | The sun is rising and it will be a hot sunny day with a light southeast breeze. The temperature will remain high even after sunset, and the wind will shift to the east, becoming stronger throughout the evening. |
![]() | It will be cold and rainy throughout the day and night. The south wind will shift to the northwest overnight. Don’t forget that someone’s birthday is tomorrow. |
How the landscape changed during the day

Running the code
Preparing environment Linux
./makevenv.sh
source .venv/bin/activate
Preparing environment Windows
makevenv.bat
.venv/Scripts/Activate
Image creation test
Update OWM_KEY variable in the secrets.py with your OpenWeather API key.
(optional) Change the coordinates in secrets.py to your location.
python run_test.py
Find generated images in the "tmp" folder.
Run server
python run_server.py

Access the server page from a browser to see the number of generated images.
E-Ink module

The hardware setup includes an ESP32 development board and 2.9inch E-Ink display module. Currently, the setup only displays an image sourced from the internet, updating every 15 minutes. It is uncertain whether the image generation code can be adapted for use with MicroPython on the ESP32 at this time.
Phone

During the test, several images are generated. The black-and-white images are intended for use with an E-Ink module, while the color images can be placed on a phone's home screen. For Android devices, there is an app called Web Image Widget that allows you to create a widget displaying an image from the internet. To use it, start the server script from the repository and add a widget that points to one of the generated images.















