meterN 0.9

Talks about metering
jeanmarc
Posts: 1830
Joined: Thu Aug 29, 2013 7:16 am

Re: meterN 0.9

Post by jeanmarc » 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

NevD
Posts: 147
Joined: Tue Mar 11, 2014 12:22 am

Re: meterN 0.9

Post by NevD » Sun Feb 17, 2019 10:26 pm

Hi installed all working perfectly

Thankyou

Neville

ogekuri
Posts: 7
Joined: Mon Feb 18, 2019 2:14 pm

Re: meterN 0.9

Post by ogekuri » Mon Feb 18, 2019 2:24 pm

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!

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

Re: meterN 0.9

Post by jeanmarc » 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.

ogekuri
Posts: 7
Joined: Mon Feb 18, 2019 2:14 pm

Re: meterN 0.9

Post by ogekuri » Mon Feb 18, 2019 4:00 pm

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

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

Re: meterN 0.9

Post by jeanmarc » Mon Feb 18, 2019 4:40 pm

And what the com test return ?

ogekuri
Posts: 7
Joined: Mon Feb 18, 2019 2:14 pm

Re: meterN 0.9

Post by ogekuri » 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...

ogekuri
Posts: 7
Joined: Mon Feb 18, 2019 2:14 pm

Re: meterN 0.9

Post by ogekuri » Mon Feb 18, 2019 5:18 pm

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.

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

Re: meterN 0.9

Post by jeanmarc » Mon Feb 18, 2019 5:18 pm

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.

ogekuri
Posts: 7
Joined: Mon Feb 18, 2019 2:14 pm

Re: meterN 0.9

Post by ogekuri » Mon Feb 18, 2019 5:21 pm

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 ! 

Locked

Who is online

Users browsing this forum: No registered users and 5 guests