dirigera-air-sensor-dashboard

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT

README

Dirigera Air Quality Sensor Dashboard

CI CodeQL codecov Go Reference Go Version Release

Written in Go, pulls information from IKEA VINDSTYRKA air quality sensors and serves a web page with graphs to display it.

Web page is written in HTML and Javascript and displays pretty graphs using Plotly.js.

Config

Create config.json file in the same directory as the executable with the following {"Interface":"nameOfNetworkInterface"}.

On first launch the program will discover the hub using mDNS & auth with it, the user is prompted to press a button on the bottom of the hub to complete auth. This only needs to be done once.

Sensor History

History is stored in a json file called data.json.

Directories

Path Synopsis
cmd
querier command
Command querier pairs with an IKEA DIRIGERA hub and serves a graphed history of its air sensor readings over HTTP.
Command querier pairs with an IKEA DIRIGERA hub and serves a graphed history of its air sensor readings over HTTP.
internal
dirigera
Package dirigera discovers an IKEA DIRIGERA hub via mDNS, pairs with it over OAuth/PKCE, and queries its devices.
Package dirigera discovers an IKEA DIRIGERA hub via mDNS, pairs with it over OAuth/PKCE, and queries its devices.
model
Package model holds the sensor reading types shared between reader and writer, including History.
Package model holds the sensor reading types shared between reader and writer, including History.
reader
Package reader polls a paired hub for sensor readings and appends them to a shared History.
Package reader polls a paired hub for sensor readings and appends them to a shared History.
writer
Package writer persists a shared History to disk on update and serves it over HTTP as JSON.
Package writer persists a shared History to disk on update and serves it over HTTP as JSON.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL