quindi se ho capito bene se volessi tornare indietro il comando sarebbe
sdm120c -a 1 -s 1 /dev/metern
giusto ?
sdm120c -a 1 -s 1 /dev/metern
giusto ?
sdm120c -a 2 -s 1 /dev/metern
sdm120c
$pathto123s = '/var/www/123solar'; $invtnum = 1; $meterid = 2;
eflow whin
/var/www/metern/comapps/eflow whin
pi@raspberrypi ~ $ eflow whin 3(2336*Wh)
// Setup your virtual meters identification numbers :
$whinmet = 3; // Wh in
$whoutmet = 4; // Wh out
$selfcmet = 5; // selfconsumption
// No edit is needed below
if (!isset($argv[1])) {
$argv[1]=null;
}
if ($argv[1]== 'whout' || $argv[1]=='whin' || $argv[1]=='selfc') {
$prodlist = array();
$conslist = array();
define('checkaccess', TRUE);
include('var/www/metern/config/config_main.php');
date_default_timezone_set($DTZ);
for ($i = 1; $i <= $NUMMETER; $i++) { // detect the production/consumption meter
include("var/www/metern/config/config_met$i.php");
if (${'PROD' . $i} == 1) {
$prodlist[] = $i;
}
if (${'PROD' . $i} == 2) {
$conslist[] = $i;
}
}
$dir = 'var/www/metern/data/csv';
$output = array();
$output = glob($dir . '/*.csv');
sort($output);
$cnt = count($output);
root@raspberrypi:~# sdm120c -a 1 -s 2 /dev/metern errno: Connection timed out, 110, -1
root@raspberrypi:~# sdm120c -a 1 -s 2 /dev/ttyUSB0 errno: Connection timed out, 110, -1
sdm120c -a 1 -s 2 -b 9600 /dev/metern
root@raspberrypi:~# time sdm120c -a 2 -b 9600 /dev/metern
Voltage: 234.90 V
Current: 2.01 A
Power: 447.80 W
Power Factor: 0.93
Frequency: 49.95 Hz
Import Active Energy: 167962 Wh
Export Active Energy: 0 Wh
Total Active Energy: 167962 Wh
real 0m0.492s
user 0m0.000s
sys 0m0.010s
time sdm120c -a 2 -b 9600 -i -p /dev/metern
Power: 446.70 W
Import Active Energy: 167968 Wh
real 0m0.138s
user 0m0.000s
sys 0m0.010s
Commenta