Search found 19 matches

by escix
Tue Jan 24, 2017 3:38 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

Nev, Mate, add this date_default_timezone_set($DTZ); line in programs/programmeter.php just after the //yesterday and before $yesterday = date('Ymd', time() - 60 * 60 * 24); and this date_default_timezone_set('GMT'); after $yesterday = date('Ymd', time() - 60 * 60 * 24); so it will be look like: // ...
by escix
Thu Jan 12, 2017 10:07 pm
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

the code you have provided will work if your location is west of GMT. if you are east of GMT the day starts at your location well before the GMT so the $yesterday variable is the day before today at your location but from GMT it will be previous day. location Australia 7am today local 13/01/2017 tod...
by escix
Thu Jan 12, 2017 8:32 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

I maybe wrong, but I think I may have to do something like this: if ($cnt > 0) { $file = file($output[$cnt - 1]); $contalines = count($file); $startplot = 0; $stopplot = 0; $linevalue = 0; $startline = 0; // Yesterday //added line below date_default_timezone_set($DTZ); $yesterday = date('Ymd', time(...
by escix
Thu Jan 12, 2017 8:17 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

Sorry, my bad. I thought is was only for detailed page as my issue is in index page. I set it now and see how it works tomorrow. But even without the above when I test with the following in programmeter.php i got the correct GMT time. print date('HisYmd'); Does it need to show GMT or local server ti...
by escix
Thu Jan 12, 2017 1:50 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

As suspected just after GMT time pass over 12am the graph correctly shows data from previous day.

I think the code for previous day data (index.php) to correctly identify the timezone must be looked into.
by escix
Wed Jan 11, 2017 10:02 pm
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

OK, didn't work again and restarting nginx didn't solve the problem either. The detailed page is not a problem it shows the correct readings. I think the problem is with the index page where the change over of the date doesn't work properly in calculating the previous day with timezone (mine is Aust...
by escix
Wed Jan 11, 2017 10:40 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

Don't worry, I did a restart of NginX and all good now.
by escix
Wed Jan 11, 2017 12:47 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

Thanks for the script. I also noticed that the MeterN index page does not show the previous day but the day before that. for eg. if today is 11/01/2017 the meter readings for 10/01/2017 (continuation from yesterday) does not display in the index page but from 09/01/2017. In the detailed page the dat...
by escix
Sat Jan 07, 2017 12:43 am
Forum: meterN
Topic: meterN 0.8
Replies: 204
Views: 57189

Re: meterN 0.8

I am trying to upgrade from 0.7 but couldn't find the convert.php file.

Why the older versions are not available to download?
by escix
Sun Apr 26, 2015 5:09 am
Forum: meterN
Topic: Temperature sensor in Metern
Replies: 6
Views: 3240

Re: Temperature sensor in Metern

Hello All, To use a temperature sensor / or any sensor which provides actual value compare to usage value, all you have to do is make a copy of the pooler script (say poolerTemp) with the following modification: #$lastval += $prevval; i.e comment out the above line in the copied poolerTemp. Use this...