Compare commits
2 Commits
50eb4fe87c
...
ab8199344c
| Author | SHA1 | Date | |
|---|---|---|---|
| ab8199344c | |||
| 5a3f1d94ef |
+1
-1
@@ -317,7 +317,7 @@ def telemetry():
|
|||||||
return jsonify({"error": "Expected a JSON object/dictionary"}), 400
|
return jsonify({"error": "Expected a JSON object/dictionary"}), 400
|
||||||
|
|
||||||
# Stamp UTC timestamp for Node-RED queries
|
# Stamp UTC timestamp for Node-RED queries
|
||||||
data["received_at"] = datetime.now(datetime.timezone.utc).isoformat()
|
data["received_at"] = datetime.now(timezone.utc).isoformat()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
telemetry_collection.insert_one(data)
|
telemetry_collection.insert_one(data)
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# Debugging and others
|
# Debugging and others
|
||||||
DEBUG=True
|
DEBUG=True
|
||||||
DEBUG_DANGEROUS_AREA=False
|
DEBUG_DANGEROUS_AREA=False
|
||||||
DEBUG_TEMPERATURE_ALERT=True
|
DEBUG_TEMPERATURE_ALERT=False
|
||||||
|
|
||||||
# LoRa
|
# LoRa
|
||||||
LORA_HEARTBEAT_INTERVAL = 30
|
LORA_HEARTBEAT_INTERVAL = 30
|
||||||
|
|||||||
Reference in New Issue
Block a user