From f3626a6ac541738d58e311da9d76bf4235565d06 Mon Sep 17 00:00:00 2001
From: Blaise Thompson
-This server is purposefully isolated to the campus network.
-This server is maintained by Blaise Thompson and Alan Silver.
+To see all topic updates on your command line:
+
You'll need a password to publish to this broker.
-Talk to Blaise Thompson or Alan Silver if you want to start publishing.
+Talk to Blaise Thompson or Chemistry Comphelp if you want to start publishing.
This server stores all homie device history to an influx time-series database.
-Anyone on the campus network can query this database.
Importantly, only homie-convention compliant MQTT topics are stored---other published topics are not recorded in any permanent way.
mosquitto.chem.wisc.edu
+mqtt.chem.wisc.edu
@@ -24,12 +24,7 @@ In particular, this server hosts:
-If you are reading this, congrats---you're on the network.
-
+This server is maintained by Blaise Thompson and Chemistry Comphelp.
Please contact them with any questions or concerns.
+
+mosquitto_sub -h mqtt.chem.wisc.edu -t "#" --verbose
+
+
influxdb
@@ -70,7 +74,6 @@ This structure introduces a "device" topology.
+Anyone on the campus network can query this database using the following read-only account: +
+ +
+username: user
+password: xtssxgxy
+
+
+
The following example will return all of the recorded "temperature" measurements within the last one day using curl.
-curl -G 'mosquitto.chem.wisc.edu:8086/query?pretty=true' --data-urlencode "db=homie" --data-urlencode "q=SELECT \"value\" FROM \"temperature\" WHERE time > now() - 1d"
+curl -u user:xtssxgxy \
+-G "mqtt.chem.wisc.edu:8086/query?pretty=true" \
+--data-urlencode "db=homie" \
+--data-urlencode "q=SELECT value FROM temperature WHERE time > now()-1d"
@@ -101,22 +117,25 @@ The following example will return all of the recorded "temperature" measurements
import influxdb
-client = influxdb.InfluxDBClient(host="mosquitto.chem.wisc.edu",
- database="homie")
+client = influxdb.InfluxDBClient(host="mqtt.chem.wisc.edu",
+ database="homie",
+ username="user",
+ password="xtssxgxy")
-result = c.query("SELECT value FROM temperature WHERE time > now() - 1d")
+result = client.query("SELECT value FROM temperature WHERE time > now()-1d")
We have also set-up a grafana appliance with this database as a source. -Check it out at grafana.chem.wisc.edu. +You will need Chemistry Department LDAP credentials to log in. +Check it out at grafana.chem.wisc.edu.