Small changes, removed comments, added env sample

This commit is contained in:
ferdzo
2025-07-08 23:40:13 +02:00
parent 175f54e14e
commit 2add175685
5 changed files with 22 additions and 25 deletions

View File

@@ -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)