Added webcontrol API
This commit is contained in:
1 parent
a13f099e14
commit
ce6b363d4e
11 files changed
+154
-15
No files matched your search
+2
-2
@@ -24,12 +24,12 @@ def on_message(client, userdata, message):
|
||||
|
||||
|
||||
def subscribe():
|
||||
client = mqtt.Client('frigate_notifications')
|
||||
client = mqtt.Client()
|
||||
client.username_pw_set(os.environ['MQTT_USERNAME'], password=os.environ['MQTT_PASSWORD'])
|
||||
client.on_connect = on_connect
|
||||
client.on_message = on_message
|
||||
|
||||
client.connect(host='192.168.0.6', port=1883)
|
||||
client.connect(host='mqtt', port=1883)
|
||||
client.loop_forever()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user