-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Some dutch hackerspaces (Revspace, TkkrLab, Bitlair) have started providing their spacestate over MQTT, in addition to the spacestate in the spaceapi json file. The added value is that MQTT is push based instead of polling.
We've added the details of our MQTT spacestate service to the state object in the spaceapi json file as follows:
"state": {
...
"mqtt": {
"host": "mqtt.tkkrlab.nl",
"port": 1883,
"tls": false,
"topic": "tkkrlab/spacestate",
"open": "1",
"closed": "0"
},
...
}
The "mqtt" optional object contains the following required properties:
- "host": the hostname or IP address of the MQTT server (string)
- "port": the TCP port of the MQTT server (number)
- "tls": weither or not the MQTT server uses TLS encryption (boolean)
- "topic": the topic to subscribe to (string)
- "open": the message value published when the space is open (string)
- "closed": the message value published when the space is closed (string)
It would be extremely awesome if this addition could be added to the SpaceAPI json schema as an optional extra method for publishing the space state.
sknebel and Juerd
Metadata
Metadata
Assignees
Labels
No labels