[vz-users] Kurzes Shellskript um den SML-eHZ abzulesen

Dimitrios Bogiatzoules info at bogiatzoules.de
Tue Jan 8 11:16:46 CET 2013


Dimitrios Bogiatzoules said the following on 07.01.2013 16:30:
[...]
> Im Netz "schwirren" einige Skripte in perl oder bash, für letztere habe
> ich mir ein auf dieser Liste gefundenes ein wenig modifiziert. Das
> Ergebnis steht weiter unten.
[...]
> let METER_180=0x${METER_OUTPUT:519:10}
> VALUE=$(echo "scale=2; $METER_180 / 10000" |bc)
> echo "Total effective power (+/-): " $VALUE "W"

Kleine Korrektur für die Wirkleistung. Ich habe bei copy and paste
vertan und ss muss heißen:

let METER_180=0x${METER_OUTPUT:518:8}
VALUE=$(echo "scale=2; $METER_180 / 10" |bc)
echo " <tt>Wirkleistung: " $VALUE "W</tt>"


Grüße

Taki




More information about the volkszaehler-users mailing list