mirror of
https://github.com/ferdzo/iotDashboard.git
synced 2026-04-05 01:06:24 +00:00
Small changes, removed comments, added env sample
This commit is contained in:
@@ -24,7 +24,6 @@ def publish_to_stream(stream_name, data):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Example sensor data to publish
|
||||
mqtt_data = {
|
||||
"time": datetime.utcnow().isoformat(),
|
||||
"device": "Livingroom",
|
||||
@@ -32,6 +31,5 @@ if __name__ == "__main__":
|
||||
"value": 25.6
|
||||
}
|
||||
|
||||
# Publish to the stream
|
||||
publish_to_stream(STREAM_NAME, mqtt_data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user