From 2c3b68275c61b5d5583914f3e0cc9cd19b63eef4 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Fri, 21 Oct 2022 21:24:52 +0200 Subject: [PATCH] Add MQTT state info --- server.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 27f7554..fdd7adc 100755 --- a/server.py +++ b/server.py @@ -45,7 +45,15 @@ class StatejsonHandler(tornado.web.RequestHandler): 'icon': { 'open': BASE_URL+'/open.png', 'closed': BASE_URL+'/closed.png', - } + }, + 'mqtt': { + 'host': 'bitlair.nl', + 'port': 1883, + 'tls': False, + 'topic': 'bitlair/state', + 'closed': 'closed', + 'open': 'open' + }, }, 'issue_report_channels': [ 'twitter' ], }