Page 3 of 5

Re: meterN 0.9

Posted: Sat Feb 16, 2019 9:27 am
by jeanmarc
Hi,

meterN 0.9.3 is out :

- It allow the decommissioning of meters/sensors
- Updated few things

Bye

Re: meterN 0.9

Posted: Sun Feb 17, 2019 10:26 pm
by NevD
Hi installed all working perfectly

Thankyou

Neville

Re: meterN 0.9

Posted: Mon Feb 18, 2019 2:24 pm
by ogekuri
jeanmarc wrote:
Sat Feb 16, 2019 9:27 am
Hi,

meterN 0.9.3 is out :

- It allow the decommissioning of meters/sensors
- Updated few things

Bye
Ive upgraded from the 0.8.2 to 0.9.3 but I have some issue with the indicator(s).

I have some indicatos with a custom command defined like:

Code: Select all

echo "metern_con485-0("`pgrep -c metern_con485-0`"*X)"
The test fail with with result:

Code: Select all

Command : echo "metern_con485-0("`pgrep -c metern_con485-0`"*X)" 

null is not valid, the correct format is metern_con485-0(1234.5*X) 
But from shell it's execute correcly:

Code: Select all

[ ogekuri@envision1:~ ] $ sudo -u www-data echo "metern_con485-0("`pgrep -c metern_con485-0`"*X)"
metern_con485-0(1*X)
Many thanks for your support!

Re: meterN 0.9

Posted: Mon Feb 18, 2019 3:04 pm
by jeanmarc
Hi,

I use "htmlspecialchars" to avoid sending potential sensitive commands via the interface. Hence, it convert your quote symbol.
You better make a simple script test485.sh, chmod +x and ln -s /srv/http/comapps/test.sh /usr/bin/test485

Code: Select all

#!/bin/bash
echo "metern_con485-0("`pgrep -c metern_con485-0`"*X)"
Then request 'test485' from meterN.

Re: meterN 0.9

Posted: Mon Feb 18, 2019 4:00 pm
by ogekuri
jeanmarc wrote:
Mon Feb 18, 2019 3:04 pm
Hi,

I use "htmlspecialchars" to avoid sending potential sensitive commands via the interface. Hence, it convert your quote symbol.
You better make a simple script test485.sh, chmod +x and ln -s /srv/http/comapps/test.sh /usr/bin/test485

Code: Select all

#!/bin/bash
echo "metern_con485-0("`pgrep -c metern_con485-0`"*X)"
Then request 'test485' from meterN.
Thanks! Fixed with your suggestion.

I still have and issue on the dashboard where some data are not avaliables:

https://ibb.co/X4fGbj5

Re: meterN 0.9

Posted: Mon Feb 18, 2019 4:40 pm
by jeanmarc
And what the com test return ?

Re: meterN 0.9

Posted: Mon Feb 18, 2019 5:02 pm
by ogekuri
jeanmarc wrote:
Mon Feb 18, 2019 4:40 pm
And what the com test return ?
It's seem to have issue to access to the status file:

Code: Select all

ls: cannot access '/tmp/metern-1-3.txt': No such file or directory is not valid
But www-data is able to access to the same file from the console...

I can't understand...

Re: meterN 0.9

Posted: Mon Feb 18, 2019 5:18 pm
by ogekuri
ogekuri wrote:
Mon Feb 18, 2019 5:02 pm
jeanmarc wrote:
Mon Feb 18, 2019 4:40 pm
And what the com test return ?
It's seem to have issue to access to the status file:

Code: Select all

ls: cannot access '/tmp/metern-1-3.txt': No such file or directory is not valid
But www-data is able to access to the same file from the console...

I can't understand...
It was the on-ram tmpfs implementation that for some reason affect my configuration. Solved moving the files into another location.

Now all test are ok but the dashboard still not show that informations.

Re: meterN 0.9

Posted: Mon Feb 18, 2019 5:18 pm
by jeanmarc
Maybe try using /var/tmp/
Also you can check if you have set an open_basedir in php.ini. You should restart the service if you change so.

Re: meterN 0.9

Posted: Mon Feb 18, 2019 5:21 pm
by ogekuri

Code: Select all

1(5364627*Wh) is a valid entry ! <- ? is this the value not showe or it's collected from csv files?
1(323.80*W) is a valid entry ! 
3(7110072*Wh) is a valid entry ! 
3(292.34*W) is a valid entry !