|
@@ -14,8 +14,8 @@ address = sys.argv[1]
|
|
|
response = requests.get('http://{}/api/v1/data'.format(address))
|
|
|
parsed = response.json()
|
|
|
|
|
|
-# Using For Loop to iteraate thru the data offered by the P1-API
|
|
|
-# Threshold values are tuned to my own setup, they might need aajustment for others.
|
|
|
+# Using For Loop to iterate thru the data offered by the P1-API
|
|
|
+# Threshold values are tuned to my own setup, they might need ajustment for others.
|
|
|
|
|
|
def iterate_json(json_obj):
|
|
|
for key, value in json_obj.items():
|