diff --git a/plugjson.py b/plugjson.py index 9d3c1f5..c4c55a9 100755 --- a/plugjson.py +++ b/plugjson.py @@ -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)