If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Yet Another Dayfile Reader (PHP)

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderators: daj, TNETWeather

BCJKiwi
Posts: 844
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Yet Another Dayfile Reader (PHP)

Postby BCJKiwi » Sun Apr 16, 2017 9:43 pm

Hmm
Couldn't see any difference when I tested it.

What figures are different?
When this was discussed before, Ken True had a different suggestion for resolving this but don't recall what that was.

User avatar
beteljuice
Posts: 2445
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Postby beteljuice » Tue Apr 18, 2017 9:29 pm

the beteljuice thinks he has made it php 5.x > php 7.0.x compatible.
... also an existing non-fatal missing declaration fixed.

Could someone using php5 AND someone using php7 please test this attachment against what they current have.

DON'T FORGET to back-up your existing betel_readDayfile.php and to change any options you may edited to your personal preferences.
betel_readDayfile.zip


Thank You
You do not have the required permissions to view the files attached to this post.
Image
......................Imagine, what you will KNOW tomorrow !

jlmr731
Posts: 84
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Linux Ubuntu / windows 10
Location: Youngstown, Ohio
Contact:

Re: Yet Another Dayfile Reader (PHP)

Postby jlmr731 » Tue Apr 18, 2017 10:36 pm

Tested in php 5.6 seems good
In php 7.1 still get the same error in apache logs

PHP Warning: Illegal string offset 'short' in /var/www/html/test_readDayfile.php on line 1126, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780030 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP Stack trace:, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780038 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP 1. {main}() /var/www/html/basic.php:0, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780043 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP 2. include() /var/www/html/basic.php:11, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780047 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP 3. drawCalendar() /var/www/html/test_readDayfile.php:1549, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780406 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP Warning: Illegal string offset 'short' in /var/www/html/test_readDayfile.php on line 1126, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780416 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP Stack trace:, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780420 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP 1. {main}() /var/www/html/basic.php:0, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780423 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP 2. include() /var/www/html/basic.php:11, referer: http://youngstownweather.dynu.com/dailysummary.php
[Tue Apr 18 18:31:32.780426 2017] [php7:notice] [pid 21281] [client 192.168.1.27:50878] PHP 3. drawCalendar() /var/www/html/test_readDayfile.php:1549, referer: http://youngstownweather.dynu.com/dailysummary.php


Hope that helps

Dont have a ton of data to go against maybe not being a full years worth cause this ? maybe?

User avatar
beteljuice
Posts: 2445
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Postby beteljuice » Tue Apr 18, 2017 11:20 pm

Urggh ....

Your average of averages (bottom line) is missing !

I am not happy :bash:
edit: ... and I haven't got a clue what isn't happening :cry:
Image
......................Imagine, what you will KNOW tomorrow !

jlmr731
Posts: 84
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Linux Ubuntu / windows 10
Location: Youngstown, Ohio
Contact:

Re: Yet Another Dayfile Reader (PHP)

Postby jlmr731 » Wed Apr 19, 2017 2:08 am

beteljuice wrote:Urggh ....

Your average of averages (bottom line) is missing !

I am not happy :bash:
edit: ... and I haven't got a clue what isn't happening :cry:

Ugg yes I see that now, also tried with php 5.6 and looked that same :groan:

If there is anything that can be done like debugging let me know Ill try and help out

Even without average of averages I still love your work thanks so much !!!

User avatar
mcrossley
Posts: 4851
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Postby mcrossley » Thu Apr 20, 2017 9:23 am

Odd, I tried my variation of this script on PHP 7.0 yesterday and it ran without any errors. :?

I'm just plucking up the courage to switch the live server to PHP 7.0 from 5.6 - the rest of the site seems to be working OK on my dev server, it only required a small tweak to the MX Graphs.


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 3 guests