|
@@ -194,8 +194,8 @@ CheckValueUnder AirHumidity "cat $FN" '$0' 100 'Sensor broken?'
|
|
|
|
|
|
|
|
|
|
# retrieve power usage/solar generation from a Shelly PM
|
|
# retrieve power usage/solar generation from a Shelly PM
|
|
-curl -s -u USER:PASSWORD --basic http://IPADDRESS/status | jq '.meters[0].power' > $FN
|
|
|
|
-CheckValueUnder Solarstrom-Shelly1pm "cat $FN" '{ print $0 }' 630 'Solar above allowed power of 600W'
|
|
|
|
|
|
+curl --max-time 5 -s -u USER:PASSWORD --basic http://IPADDRESS/status | jq '.meters[0].power' > $FN
|
|
|
|
+CheckValueUnder Solarstrom-Shelly1pm "cat $FN" '{ print $0 }' 6350 'Solar generation above 600W'
|
|
|
|
|
|
rm $FN
|
|
rm $FN
|
|
|
|
|