Skip to content

Commit

Permalink
Merge pull request #1 from gamuama/gamuama-patch-plugjson
Browse files Browse the repository at this point in the history
Update plugjson.py
  • Loading branch information
gamuama authored Jan 18, 2022
2 parents 61f65b5 + 3b451aa commit 08e166f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# Print output json
responsejson = (
'{ "datetime": "%s", "switch": "%s", "power": "%s", "current": "%s", "voltage": "%s" }'
% (iso_time, on, w, mA, V)
'{ "datetime": "%s", "switch": "%s", "power": "%s", "current": "%s", "voltage": "%s", "error": "%s" }'
% (iso_time, on, w, mA, V, err)
)
print(responsejson)

0 comments on commit 08e166f

Please sign in to comment.