meterN 0.8

Talks about metering
Locked
megamarco83
Posts: 104
Joined: Tue Apr 14, 2015 9:25 am

Re: meterN 0.8

Post by megamarco83 » Tue Aug 02, 2016 9:10 pm

ops! i'm so sorry, i'm not so skilled as you can see :(
so, could you tell me what's the correct way of avoid that error?
thanks so much!

megamarco83
Posts: 104
Joined: Tue Apr 14, 2015 9:25 am

Re: meterN 0.8

Post by megamarco83 » Tue Aug 02, 2016 10:23 pm

maybe i found an "escamotage"
i use raspbian wheezy
and i edit the file default of apache:

Code: Select all

sudo -s
cd /etc/apache2/sites-available
mv default default.old
nano default 
i use this one that shold be ok also for 123solar

Code: Select all

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride none
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        <Directory /var/www/123solar/admin>
                AllowOverride None
                AuthType basic
                AuthName "123solar Password Protected Area"
                AuthBasicProvider file
                AuthUserFile /var/www/123solar/config/.htpasswd
                require valid-user
        </Directory>
        <Directory /var/www/metern/admin>
                AllowOverride None
                AuthType basic
                AuthName "meterN Password Protected Area"
                AuthBasicProvider file
                AuthUserFile /var/www/metern/config/.htpasswd
                require valid-user
        </Directory>

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
i tested it and works....but the question is now the correct way?
thanks for supporting me :D

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

Re: meterN 0.8

Post by jeanmarc » Wed Aug 03, 2016 5:25 am

Yup,that's the good way now 8-)

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

Re: meterN 0.8

Post by jeanmarc » Fri Aug 19, 2016 4:42 pm

Hello,

meterN0.8.3 is just out :

- In order to simplify the code: ride of the need of the php shm extension. Now, use /dev/shm as shared memory default space.
- Reviewed the xss protection
- New: Allow quote char in titles
- Removed self-consumption in detailled. Please, configure a virtual meter for that purpose.
- Dashboard : Allow to change the refreshing time
- Events: Log missing 5' samples
- Reviewed the help/debugger
- Code clean up and updated JS libs
- New house icon by paomedia from the 'small-n-flat'set :)

Bye

sovking
Posts: 80
Joined: Fri Feb 27, 2015 12:02 am

Re: meterN 0.8

Post by sovking » Wed Aug 31, 2016 10:42 am

Hi JeanMarc,
thanks for the new improved version of metern % 123solar.

I noticed you modified a lot housenergy script too in comapps_example distribution.
What are the main differences ?
Is that script compatible with the previuos one ? (so I can replace that without modifyng the script that read from sdm220)

AlbertoRuga
Posts: 36
Joined: Sat Jan 18, 2014 10:46 am

Re: meterN 0.8

Post by AlbertoRuga » Wed Aug 31, 2016 11:47 am

jeanmarc healthy parts before all congratulations for the good work you're doing.
After much work happens to me a strange thing, Metern 0.8.2.7.2 after a reboot of the system because the current mancnza (I assume) at the start but in the administration page, and does not return more 'capture page, also making start / stop anything, I tried to install Metern 0.8.3 but does the same thing.

Some idea?

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

Re: meterN 0.8

Post by jeanmarc » Wed Aug 31, 2016 12:05 pm

sovking wrote:housenergy script too in comapps_example distribution.
What are the main differences ?
Mainly i use /dev/shm to store values, i also change to get all values with it. I change the script to adjust it to my needs.
You can surely use it but you need to modify it before.

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

Re: meterN 0.8

Post by jeanmarc » Wed Aug 31, 2016 12:07 pm

AlbertoRuga wrote:Some idea?
Sorry Alberto i don't get it :roll:

flane
Posts: 89
Joined: Mon Aug 11, 2014 7:22 am

Re: meterN 0.8

Post by flane » Wed Nov 02, 2016 1:52 pm

Hi Jeanmarc,
in new Metern version 0.8.3 i have this problem.

When i insert this command in a meter:

Code: Select all

cat /dev/shm/boiler6.txt | egrep "^6\(" | grep "*Wh)"
it don't work.

I checked the file config_met6.php

Code: Select all

$COMMAND6="cat /dev/shm/boiler6.txt | egrep "^6\(" | grep "*Wh)"";
and I find " replaced with "
Why?

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

Re: meterN 0.8

Post by jeanmarc » Wed Nov 02, 2016 3:26 pm

Hi flane,
I had to introduce that to put some XSS form protection. Check the 'reqsdm' example script.

Locked

Who is online

Users browsing this forum: No registered users and 2 guests