diff --git a/main.py b/main.py index 4f05d9d..477fae0 100755 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ while 1: # ser.readline() Data = ser.readline().decode('ascii') print(Data) - outFile = open("arduino-fridge-powercontrol.json", "a") + outFile = open("arduino-fridge-powercontrol.json", "w") outFile.write(Data) outFile.close