Skip to content

zeknoss/weather-station-dashboard

Repository files navigation

Weather Station Dashboard v2.0

Abstract

This is a simple project I've created in single day for my Bresser WiFi ClearView 7-in-1 weather station.

It kinda mimicks the interface of the station screen to show real time data from the station.

How does it work?

The project uses the intercepted AWEKAS post data from the weather station and shows the relevant data in the related placement.

Also all the data is stored within a TimeScaleDB instance with some nice looking charts.

In v1, the project was using a PHP + Frontend couple behind Nginx proxy and the setup was a bit harder. In v2, the project is rewritten with Nuxt and reduced to a single container.

How to setup

You can run the project with a simple LAMP or LEMP server or you can use Docker (recommended) to run it in containerized environment. You can point your domain or subdomain to the server IP and can access your dashboard from anywhere with internet.

A docker compose file example

services:
  weather-dashboard:
    image: zeknoss/weather-dashboard:latest
    container_name: weather-dashboard
    platform: linux/arm64 # Remove if using x64 arch
    restart: unless-stopped
    tty: true
    ports:
      - 99:3000
    env_file: weather-station.env
    # volumes: # Optional custom icons path
    #  - /path-to-my-icons:/app/public/my-icons

  tsdb:
    image: timescale/timescaledb:latest-pg18
    container_name: tsdb
    platform: linux/arm64 # Remove if using x64 arch
    ports:
      - "5432:5432"
    volumes:
      - tsData:/pgdata
    env_file: weather-station.env

volumes:
  tsData:

A weather-station.env example

# Write protection
NUXT_PROTECTED=true
NUXT_USER=yourusername
NUXT_PASS=yourpassword

# Location of the station for forecasting
NUXT_PUBLIC_LNG=longitude
NUXT_PUBLIC_LAT=latitude
NUXT_PUBLIC_TIMEZONE=Europe/Istanbul
NUXT_PUBLIC_EXTERNAL_LINKS=[{"href":"https://weather.com/tr-TR/","img":"/images/weather-logo.svg"}]
# You can add more buttons within the JSON object above for more links on your dashboard
# Just don't forget to follow the format
# Also you can map a folder under the public folder of the project and add icons for your links

# Timescale connection
NUXT_DB_HOST=database_hostname
NUXT_DB_PORT=5432
NUXT_DB_USER=database_username
NUXT_DB_PASS=database_password
NUXT_DB_DATABASE=database_name

Weatherstation Setup

  1. Open the configuration interface of your weather station
  2. Change the AWEKAS domain name / IP to your where you are hosting your project and enter the username and password too
  3. The device will start sending the data and you will be able to see it on your dashboard with a slight delay

Let me know if you have any problems, suggestions, requests or need help.

Contributions

If you wish to support the project, just open a feature request issue or create a pull request.

If any weather station manifacturer wishes to implement this dashboard into their device, I'd be more than happy to help. I'm not asking for money or looking for recognition, I just think this kind of UI is a must have for these devices.

In example, the Bresser can show a simple web interface for config purposes. It's really easy to show the frontend UI as a static page and provide a simple URL that the frontend can fetch the latest data from and et voila! Now the owners of the device can access the UI from the local device IP and can even serve it on the web.

About

An AWEKAS compatible dashboard to view the data from your own weather station.

Topics

Resources

License

Stars

Watchers

Forks

Contributors