Indicators not working

Talks about metering
Post Reply
robinc
Posts: 15
Joined: Wed Jul 13, 2016 2:07 pm

Indicators not working

Post by robinc » Sun Jul 17, 2016 9:44 am

Hi,

I have configured two indicators in my meterN setup with the intention of monitoring the battery voltage of a couple of arduino wireless nodes.

Firstly, does this sound like it fits with the intended use of Indicators ?

How often are Indicators sampled/updated ?
In this case once an hour or even once per day would be adequate ...

I have so far been unable to get these indicators display any values.

Config :-
Number of indicator(s) 2
Indicator#1: Vcc(Pwr) Name: Vcc(Pwr) ID: Vcc0 mode: Value
Command: arduino-serial -q -b 115200 -p /dev/ttyUSB0 -S "rvcc0" -r Unit: mV

Indicator#2: Vcc(Temp) Name: Vcc(Temp) ID: Vcc1 mode: Value
Command: arduino-serial -q -b 115200 -p /dev/ttyUSB0 -S "rvcc1" -r Unit: mV
The Test Command returns a valid response :-
Vcc0(3303*mV) is a valid entry !
On both the Index page and on the Dashboard page, the values displayed for Vcc(Pwr) and Vcc(Temp) are always '... mV'

Am I missing something here ?
Does anyone have indicators working ?

Currently on meterN 8.2.7.1
Same issue with 8.2.1

Thanks ....

jeanmarc
Posts: 1866
Joined: Thu Aug 29, 2013 7:16 am

Re: Indicators not working

Post by jeanmarc » Sun Jul 17, 2016 10:36 am

Hi,
Indicator is to retrieve a value that dosen't need to be recorded. I use it for grid voltage, cos phi and frequency.
The refreshing time is about as fast as possible ;) That's on each meterN loop resquest.
:idea: If you com application is slow you can put the values in a temp file that update each hour (?), then query the temp file.

I don't know what wrongs, it's look ok. What are the indicators values in Debugger ?

robinc
Posts: 15
Joined: Wed Jul 13, 2016 2:07 pm

Re: Indicators not working

Post by robinc » Mon Jul 18, 2016 8:13 am

What are the indicators values in Debugger ?
Indicators (#844): Array ( [Vcc(Pwr)1] => [Vcc(Temp)2] => )
Thanks...

jeanmarc
Posts: 1866
Joined: Thu Aug 29, 2013 7:16 am

Re: Indicators not working

Post by jeanmarc » Mon Jul 18, 2016 9:23 am

could you past config/config_indicator.php ?

robinc
Posts: 15
Joined: Wed Jul 13, 2016 2:07 pm

Re: Indicators not working

Post by robinc » Tue Jul 19, 2016 12:07 am

config_indicator.php :

Code: Select all

<?php
if(!defined('checkaccess')){die('Direct access not permitted');}

// ### CONFIG FOR INDICATOR(S)
$NUMIND=2;

$INDNAME1='Vcc(Pwr)';
$INDID1='Vcc0';
$INDPOOL1=1;
$INDCOMMAND1='arduino-serial -q -b 115200 -p /dev/ttyUSB0 -S "rvcc0" -r';
$INDUNIT1='mV';

$INDNAME2='Vcc(Temp)';
$INDID2='Vcc1';
$INDPOOL2=1;
$INDCOMMAND2='arduino-serial -q -b 115200 -p /dev/ttyUSB0 -S "rvcc1" -r';
$INDUNIT2='mV';
?>

jeanmarc
Posts: 1866
Joined: Thu Aug 29, 2013 7:16 am

Re: Indicators not working

Post by jeanmarc » Tue Jul 19, 2016 6:57 am

That's odd, that should work.. Could you enable debug, restart mN and return the data/metern.err file ?

robinc
Posts: 15
Joined: Wed Jul 13, 2016 2:07 pm

Re: Indicators not working

Post by robinc » Tue Jul 19, 2016 12:17 pm

No useful infomation in metern.err with debug set - just start/stop messages :

Code: Select all

19/07/2016 17:44:30     Stopping meterN (18339)

19/07/2016 17:44:34     Starting meterN (14689)

19/07/2016 21:10:20     Stopping meterN (14689)
Here's a screenshot of the Index page :-
Image

jeanmarc
Posts: 1866
Joined: Thu Aug 29, 2013 7:16 am

Re: Indicators not working

Post by jeanmarc » Wed Jul 20, 2016 7:08 am

Hi robinc,
I found the bug, i will release 0.8.2.7.2 in few hours that correct that, among other few things.
Thanks for the access, you may close it now ;)

robinc
Posts: 15
Joined: Wed Jul 13, 2016 2:07 pm

Re: Indicators not working

Post by robinc » Wed Jul 20, 2016 8:19 am

OK - that's good news .... :D

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests