Difference between revisions of "Data Platform"

From Things Calderdale Wiki
Jump to: navigation, search
(MQTT)
(MQTT)
Line 9: Line 9:
 
==== SSL example ====
 
==== SSL example ====
  
<code>$ mosquitto_sub -h mqtt.thingscalderdale.com -p 8883 --capath /etc/ssl/certs/ -t public/environment/waterlevel/calder</code>
+
<code>$ mosquitto_sub -h mqtt.thingscalderdale.com -p 8883 --capath /etc/ssl/certs/ -t public/environment/waterlevel</code>
  
 
==== Plain text example ====
 
==== Plain text example ====
  
<code>$ mosquitto_sub -h mqtt.thingscalderdale.com -t public/environment/waterlevel/calder</code>
+
<code>$ mosquitto_sub -h mqtt.thingscalderdale.com -t public/environment/waterlevel</code>
  
 
=== Publishing ===
 
=== Publishing ===
Line 39: Line 39:
 
|CC BY-SA 4.0
 
|CC BY-SA 4.0
 
|-
 
|-
|public/environment/waterlevel/calder
+
|public/environment/waterlevel
|River Calder water level
+
|FN Sensor water level
 
|JSON/Float
 
|JSON/Float
 
|[[Flood Network]]
 
|[[Flood Network]]

Revision as of 03:14, 15 November 2017

MQTT

An MQTT broker is available at mqtt.thingscalderdale.com.

Subscribing

Anonymous R/O (subscribe) access is provided to topics with the prefix public/.

SSL example

$ mosquitto_sub -h mqtt.thingscalderdale.com -p 8883 --capath /etc/ssl/certs/ -t public/environment/waterlevel

Plain text example

$ mosquitto_sub -h mqtt.thingscalderdale.com -t public/environment/waterlevel

Publishing

Details TBC.

Topics

MQTT Topics
Topic Description Data type Source Owner Licence Notes
public/environment/temperature FN sensor temperature JSON/Float Flood Network AB Open CC BY-SA 4.0
public/environment/waterlevel FN Sensor water level JSON/Float Flood Network AB Open CC BY-SA 4.0

Data store

Details TBC.