From d3e6cae7ea36b695835c4b1f98a0a91c7e5c6ec2 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Wed, 28 Oct 2020 17:44:13 -0500 Subject: initial working docker-compose --- web/dockerfile | 2 ++ web/index.html | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/style.css | 18 ++++++++++ 3 files changed, 122 insertions(+) create mode 100644 web/dockerfile create mode 100644 web/index.html create mode 100644 web/style.css (limited to 'web') diff --git a/web/dockerfile b/web/dockerfile new file mode 100644 index 0000000..07ec426 --- /dev/null +++ b/web/dockerfile @@ -0,0 +1,2 @@ +FROM nginx:mainline +COPY . /usr/share/nginx/html \ No newline at end of file diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..78d52a6 --- /dev/null +++ b/web/index.html @@ -0,0 +1,102 @@ + + + + + + mosquitto + + + + + +

mosquitto.chem.wisc.edu

+ +
+ +

+This server hosts an MQTT broker for "internet of things" applications within the Department of Chemistry at the University of Wisconsin-Madison.
+In particular, this server hosts: +

+ + + +

+This server is purposefully isolated to the campus network.
+If you are reading this, congrats---you're on the network. +

+ +

+This server is maintained by Blaise Thompson and Alan Silver.
+Please contact them with any questions or concerns. +

+ +

mosquitto

+ +

+This server runs mosquitto, an MQTT broker. +Briefly, MQTT is a lightweight publish-subscribe protocol that allows many devices to communicate. +The broker provides structured topics, e.g. "sensor42/temperature" and "instrument9/opa2/wavelength". +Clients can publish topic updates. +Other clients can subscribe to be notified each time a topic is updated. +Refer to mqtt.org for more information. +

+ +

+Anyone on the campus network can subscribe to the topics served here. +There are lots of great MQTT clients you can use. +We recommend: +

+ + + +

+You'll need a password to publish to this broker. +Talk to Blaise Thompson or Alan Silver if you want to start publishing. +

+ +

influxdb

+ +

+The Chemistry Department has standardized on the homie convention. +This convention imposes a well-defined structure on top of the basic MQTT communication layer. +This structure introduces a "device" topology. + +

+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. +

+ +

+While we make every attempt to prevent data loss, please do not treat this database as an archive. +You are responsible for saving data that you care about in a more permanent way. +Device history older than two years will automatically be deleted. +

+ +

+EXAMPLE CURL +

+ +

+EXAMPLE PYTHON +

+ +

+RECOMMEND GRAFANA +

+ +
+ +

+CC0: no copyright +

+ + + diff --git a/web/style.css b/web/style.css new file mode 100644 index 0000000..4e33ceb --- /dev/null +++ b/web/style.css @@ -0,0 +1,18 @@ +a { + text-decoration: none; + color: #4271ae; +} + +body { + font-family: 'DejaVu Sans Mono', monospace; + margin: 40px auto; + min-width: 80ch; + max-width: 80ch; + line-height: 1.5; + font-size: 16px; + background-color: #ffffff; + color: #4d4d4c; + padding: 0 10px; + text-align: left; + overflow-y: scroll; +} -- cgit v1.2.3