Skip to main content

Project

Skogsnet v2

Go-based environmental data logger with SQLite storage, weather integration, and a web dashboard.

RoleSystems + Dashboard
Date21-07-2025
Tech
GoSQLiteOpenMeteoDockerNode.js

Highlights

  • Serial sensor ingestion to SQLite with graceful shutdown
  • Optional web dashboard with live charts and time-range controls
  • Weather overlays via OpenMeteo plus CSV export and Docker deployment

Overview

Skogsnet v2 reads temperature and humidity from a serial-connected sensor, stores them in SQLite, and can serve a web dashboard with live charts and weather overlays pulled from OpenMeteo.

Skogsnet v2 dashboard
Live dashboard with temperature, humidity, and weather overlays.

Problem / approach

  • Collect and persist sensor data reliably from a serial device.
  • Provide live visualization with time-range controls and dark mode.
  • Offer simple deployment with optional Docker and CSV export.

Solution

  • Go service that ingests JSON measurements over serial, logs to SQLite, and handles graceful shutdown.
  • CLI flags for baud rate, port, dashboard, logging, weather fetch, and CSV export.
  • Optional Node-built dashboard served at http://localhost:8080 with interactive charts and live updates.
  • Docker Compose configuration plus host-mounted volumes for DB and logs.

Outcome

  • End-to-end pipeline from sensor to persisted data to browser dashboard.
  • Flexible runtime modes: headless logging, logging + weather, or full dashboard.
  • Testable with go test ./internal and ready for containerized deployment.