From e0e88597f0de2284edf08cd5136a7e73186bce67 Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 7 Aug 2023 01:27:10 +0200 Subject: [PATCH] progress --- main.py | 6 +++--- main/main.ino | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 47b3118..91457f1 100755 --- a/main.py +++ b/main.py @@ -16,9 +16,9 @@ while 1: # ser.readline() Data = ser.readline().decode('ascii') print(Data) - #outFile = open("arduino-fridge-powercontrol.json", "w") - #outFile.write(Data) - #outFile.close + outFile = open("arduino-fridge-powercontrol.json", "w") + outFile.write(Data) + outFile.close ##while 1: ## # { "command": "switch", "arg": "one", "state": "off", "ver":"1690931931"} diff --git a/main/main.ino b/main/main.ino index 435d4ad..7d78b58 100644 --- a/main/main.ino +++ b/main/main.ino @@ -78,7 +78,7 @@ void loop() { jsonOut[1]["temp"] = tempSensor2; jsonOut[1]["state"] = fetState2; serializeJson(jsonOut, Serial); - + Serial.println(); delay(5000); }