Re: Errore lettura consumi
Inviato: 30/10/2018, 23:10
Qualche consiglio su come risolvere?
Il Forum NON UFFICIALE per raccogliere le novità riguardo ai software 123Solar e MeterN per il monitoraggio energetico e non solo ....
https://www.flanesi.it:443/forum/
Codice: Seleziona tutto
CMD="sdm120c -a ${ADDRESS} -b ${BAUD_RATE} -z 10 -i -p -v -c -f -g -P N -w 10 -j 10 -d 0 -q ${DEVICE}"
Codice: Seleziona tutto
CMD="sdm120c -a ${ADDRESS} -b ${BAUD_RATE} -z 10 -i -p -v -c -f -g -P E -w 10 -j 10 -d 0 -q ${DEVICE}"
Codice: Seleziona tutto
sudo nano /var/www/comapps/pooler485.sh
Codice: Seleziona tutto
} elseif ($argv[1] == 'tensione') {
$outstr = exec('cat /dev/shm/metern1.txt | egrep "^1_1\(" | grep "*V)"');
} elseif ($argv[1] == 'corrente') {
$outstr = exec('cat /dev/shm/metern1.txt | egrep "^1_2\(" | grep "*A)"');
} elseif ($argv[1] == 'freq') {
$outstr = exec('cat /dev/shm/metern1.txt | egrep "^1_3\(" | grep "*Hz)"');
} elseif ($argv[1] == 'cospi') {
$outstr = exec('cat /dev/shm/metern1.txt | egrep "^1_4\(" | grep "*F)"');