Merge branch 'main' of github.com:bitlair/mastodon-spacestate
This commit is contained in:
commit
c9820bee96
1 changed files with 3 additions and 1 deletions
4
mastodon-spacestate.py
Normal file → Executable file
4
mastodon-spacestate.py
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import paho.mqtt.client as mqtt
|
import paho.mqtt.client as mqtt
|
||||||
import config
|
import config
|
||||||
import datetime
|
import datetime
|
||||||
|
@ -47,4 +49,4 @@ client.on_connect = on_connect
|
||||||
client.on_message = on_message
|
client.on_message = on_message
|
||||||
|
|
||||||
client.connect(config.mqtt_server, config.mqtt_port)
|
client.connect(config.mqtt_server, config.mqtt_port)
|
||||||
client.loop_forever()
|
client.loop_forever()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue