Changes

Jump to: navigation, search

Power

58 bytes removed, 23:56, 14 May 2018
/* How to display current power consumption? */
#!/bin/bash
# Q17L1=$(curl -s "http: lumières//62.220.135.196:8080/sensor/34cde81adabfb1ce819eca8fea6949b6?version=1.0&interval=minute&unit=watt" | jq .[-2][1])# Q21L2=$(curl -s "http: nord//62.220.135.196:8080/sensor/b7755b5f3ec05fcdc67f449241a9912a?version=1.0&interval=minute&unit=watt" | jq .[-2][1])# Q13L3=$(curl -s "http://62.220.135.196: le reste8080/sensor/e67e0685f747b30d855108ab781abdfc?version=1.0&interval=minute&unit=watt" | jq .[-2][1])
Q17TOTAL=$(curl -s "http://62.220.135.196:8080/sensor/34cde81adabfb1ce819eca8fea6949b6?version=1.0&interval=minute&unit=watt" | jq .[-2][1])Q21=$(curl -s "http://62.220.135.196:8080/sensor/b7755b5f3ec05fcdc67f449241a9912a?version=1.0&interval=minute&unit=watt" | jq .[-2][1])Q13=L1+$(curl -s "http://62.220.135.196:8080/sensor/e67e0685f747b30d855108ab781abdfc?version=1.0&interval=minute&unit=watt" | jq .[-2][1L2+L3])
TOTAL=$[$Q13+$Q17+Q21] echo "$TOTAL W (Q17L1: $Q17L1, Q21L2: $Q21L2, Q13L3: $Q13L3)"
</pre>
292
edits