Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.
/ spacestatus Public archive

a spaceapi implementation in go that reads just from mqtt

License

Notifications You must be signed in to change notification settings

b4ckspace/spacestatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Archived: We have moved to https://www.home-assistant.io/integrations/spaceapi/

go-mqtt-spacestatus

A simple Go implementation of spaceapi that watches all MQTT topics and caches the last values.

Build

Simply run go build.

Usage

Edit the status-template.json (go-template syntax) to your needs and run the tool. Configuration options can be set via environment variables.

  • MQTT_URL: URL of the MQTT server (default: tcp://mqtt.core.bckspc.de:1883)
  • MQTT_CLIENT_ID: set MQTT client id - must be unique! (default: go-mqtt-spacestatus-dev)
  • DEBUG: print MQTT topic changes, enabled when set, regardless of value

Limitations

Currently it's not possible to limit the MQTT topics cached.