Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Yet Another Dayfile Reader (PHP)
Moderator: daj
-
- Posts: 240
- Joined: Tue 24 Nov 2015 9:07 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 64-bit
- Location: Newton Poppleford, Devon, UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Aha, thanks guys. It wasn't something I've done then! I've modified my script, so hopefully I'll be able to find what's been changed.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Yet Another Dayfile Reader (PHP)
Thanks Mark.
Only problem is I don't actually have a script which works accross all versions of php
I'll have to go back to the 'base' release when I can get my tired old head around it - thought, did it behave like this in earlier php releases ?
Only problem is I don't actually have a script which works accross all versions of php
I'll have to go back to the 'base' release when I can get my tired old head around it - thought, did it behave like this in earlier php releases ?
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 240
- Joined: Tue 24 Nov 2015 9:07 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 64-bit
- Location: Newton Poppleford, Devon, UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
No idea on that one, but just thinking it may be easier for you to distribute just the snippet of code that needs changing, as quite a few people have changed the scripts' look.
- PaulMy
- Posts: 3869
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I am helping a new user with his website and trying to get the Dayfile Reader working. He had downloaded the script but that didn't work out of the box so he came here with his laptop and now using my working files, edited with his data files, etc. But no luck http://www.blenheimweather.ca/cu/betel_ ... maryCU.php
Any suggestion where I have misled?
Paul
Any suggestion where I have misled?
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 225
- Joined: Sat 27 Aug 2016 12:11 am
- Weather Station: Davis vantage pro 2
- Operating System: Debian
- Location: Wickliffe, Ohio
- Contact:
Re: Yet Another Dayfile Reader (PHP)
do you know what version of php?PaulMy wrote:I am helping a new user with his website and trying to get the Dayfile Reader working. He had downloaded the script but that didn't work out of the box so he came here with his laptop and now using my working files, edited with his data files, etc. But no luck http://www.blenheimweather.ca/cu/betel_ ... maryCU.php
Any suggestion where I have misled?
Paul
can you access any error log files from his server? that might give a clue
i had issues with php ver 7 and if you look back a few pages BCJKiwi did post a workaround that got mine to work.
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
- PaulMy
- Posts: 3869
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Thanks for your reply.
His php version is 5.6 and looking at his cPanel there were no errors shown. Could there be some php settings that needs to be done?
We think we have the dayfile.txt path correct as everything is in the same folder, and message indicating that day file not found when we had entered an incorrect path.
Paul
His php version is 5.6 and looking at his cPanel there were no errors shown. Could there be some php settings that needs to be done?
We think we have the dayfile.txt path correct as everything is in the same folder, and message indicating that day file not found when we had entered an incorrect path.
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- jdc
- Posts: 142
- Joined: Tue 19 Jun 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10
- Location: Portsoy,.
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Just a thought - are dayfile delimiters correctly set? As I see dates are 03-07-17
Code: Select all
$field_delimiter = ',';
$date_delimiter = '-';
- PaulMy
- Posts: 3869
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I don't have direct access at the moment but will check that out. Thanks,
Paul
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- PaulMy
- Posts: 3869
- Joined: Sun 28 Sep 2008 11:54 pm
- Weather Station: Davis VP2 Plus 24-Hour FARS
- Operating System: Windows8 and Windows10
- Location: Komoka, ON Canada
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Yes you are correct and it is now working by changing the date delimiter. Thank you very much
I will have him look at his setup and see why he has his date format different.
Paul
@John,
Looked at your website and it is very very nice.
We travel through Northumberland County and Tweed village to get to our cottage
Paul
I will have him look at his setup and see why he has his date format different.
Paul
@John,
Looked at your website and it is very very nice.
We travel through Northumberland County and Tweed village to get to our cottage
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 89
- Joined: Mon 30 Jan 2012 5:09 pm
- Weather Station: Davis Vantage Pro 2 Cabled
- Operating System: Windows 7
- Location: Central Florida USA
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I have noticed that if rainfall is .004 or less that it does not show in the statistics of dayfile reader. If .005 or more it does. Is there any way for me to show the lesser amounts in my statistics with the dayfile reader?
Thanks
Thanks
Sperry
Lake Jackson Weather
Lake Jackson Weather
- mcrossley
- Posts: 12822
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I added "Rain Days" to my version a little while back - maybe something someone wants to incorporate into the official release?
http://weather.wilmslowastro.com/datasummary.php
http://weather.wilmslowastro.com/datasummary.php
-
- Posts: 89
- Joined: Mon 30 Jan 2012 5:09 pm
- Weather Station: Davis Vantage Pro 2 Cabled
- Operating System: Windows 7
- Location: Central Florida USA
- Contact:
Re: Yet Another Dayfile Reader (PHP)
That shows any day that rain has fallen. But is there anyway to show the actual amount? Between .010-.050
Sperry
Lake Jackson Weather
Lake Jackson Weather
-
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: Yet Another Dayfile Reader (PHP)
Simple answer Sperry - remove the following single line from the PHP script.sperry russ wrote:I have noticed that if rainfall is .004 or less that it does not show in the statistics of dayfile reader. If .005 or more it does. Is there any way for me to show the lesser amounts in my statistics with the dayfile reader?
Line 443 (in my copy) reads
Code: Select all
if($value < 0.05) $value = 0; // 1 tip regarded as error
-
- Posts: 89
- Joined: Mon 30 Jan 2012 5:09 pm
- Weather Station: Davis Vantage Pro 2 Cabled
- Operating System: Windows 7
- Location: Central Florida USA
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Thanks for all the help. It is displaying the lower amounts now.
Sperry
Lake Jackson Weather
Lake Jackson Weather
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Yet Another Dayfile Reader (PHP)
Distribution file and languages file updated.
Thank you sutne for the Norwegian translation
Thank you sutne for the Norwegian translation
......................Imagine, what you will KNOW tomorrow !