Skip to content

Commit

Permalink
Merge pull request #23 from gamuama/master
Browse files Browse the repository at this point in the history
Add err variable to output
  • Loading branch information
jasonacox authored Jan 19, 2022
2 parents 61f65b5 + 08e166f commit 3a713d6
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 3a713d6

Please sign in to comment.