Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.28.5 (build 3282) - 23 February 2024

Legacy Cumulus 1 release v1.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 error

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

Moderator: daj

Post Reply
flort
Posts: 209
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Yet Another Dayfile Reader error

Post by flort »

I use a modified version of beteljuice's YADR and it has been working fine until recently. I have a local website on my RPi as well as a website on a public server. The issue I have only appears on the public server and not on the RPi.

Using the public website if I select 'Rain 24H' it returns "Data FAIL!!". On my RPi the data is displayed correctly. The files on both instances are identical and I haven't made any changes recently. Up until a few weeks ago the public website worked fine. All other measurements are displayed correctly when selected.

You can view the page at http://flor.byethost24.com/weather/yadr.php.

Using Microsoft Edge, the Developer Tool returns the following:
GET http://flor.byethost24.com/weather/bete ... =0&lang=en 500 (Internal Server Error)

I have also tried using Chrome and get the same result.

Does anyone have any suggestions as to what the issue might be?

Regards,
Trevor
Image
freddie
Posts: 2404
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader error

Post by freddie »

Is there anything in the web server error log?
Freddie
Image
User avatar
mcrossley
Posts: 12563
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 error

Post by mcrossley »

I suspect the PHP has been upgraded on your public server and the script is using a call that has been dropped. As @freddie says the web server error log should give you a pointer.
flort
Posts: 209
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader error

Post by flort »

Unfortunately I'm using a free webhosting services and they don't provide access to the web server error log with the free account. It just tells me that apache errors have been logged. I tried adding 'php_value display_errors on' to my .htaccess file but it didn't give me any additional information.

Every measurement uses the same type of calls so I would have thought they should all fail if a call has been dropped. I'll do a bit more digging around and see if I can get to the bottom of it.

Thanks for your suggestions.

Regards,
Trevor
Image
flort
Posts: 209
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader error

Post by flort »

Just an update that I've resolved the problem. There was a syntax error with an AND/OR statement that was never an issue in the past. They must have updated the software and the new version didn't like it.

Regards,
Trevor
Image
water01
Posts: 3183
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Yet Another Dayfile Reader error

Post by water01 »

Any chance of telling us what PHP version was being used and where the error was in the source as many of us use that PHP.
David
Image
flort
Posts: 209
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia
Contact:

Re: Yet Another Dayfile Reader error

Post by flort »

My webhost is using PHP 7.4.8. I doubt whether anyone else will see this as it was in a bit of code I had created to include 24hr rain. My YADR is highly modified from the original.

Regards,
Trevor
Image
Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Re: Yet Another Dayfile Reader error

Post by Mrc »

There is also problem with UV. If UV data is zero, then there is black spot where data should be. If UV is 1.0 or higher everything is fine.
Post Reply