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 4019) - 03 April 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

Yearly Data Summary - Failed to open day file

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Post Reply
Mark14
Posts: 79
Joined: Thu 23 Aug 2012 8:53 pm
Weather Station: Ecowitt HP3501
Operating System: Windows 10
Location: Konin, Poland

Yearly Data Summary - Failed to open day file

Post by Mark14 »

The whole procedure of inserting the script seemed to be very easy, but there is a problem, because the message appears: Failed to open day file.

On the page with datasummary.php there is nothing (Firefox) or the massage "Failed to open day file" (IE). I uploaded the following files to the server in the main catalog:
datasummary.php
readDayfile.php (changed line: $dayfile='http://pogodaslesin.cba.pl/dayfile.txt';)
datasummary.css
dayfile.txt (example for one day:
22-08-12;40.3;202;10:45;18.0;02:53;27.6;16:39;1003.7;09:04;1009.5;00:13;14.4;15:45;1.5;21.9;131.0;23.9;13:24;39;19:28;93;03:53;0.00;0.0;28.9;14:49;28.7;16:11;18.5;23:21;1.2;15:45;18.0;02:53;21.1;15:38;9.2;19:28;271;0.0;3.3)

When I tried with js version there is an array but without any data: http://pogodaslesin.cba.pl/datasummary.html

What did I make wrong? I will be grateful for your advice.
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary - Failed to open day file

Post by steve »

You're using a semicolon for a field delimiter, so you need to change that in readDayfile.js

var field_delimiter = ";";
Steve
Mark14
Posts: 79
Joined: Thu 23 Aug 2012 8:53 pm
Weather Station: Ecowitt HP3501
Operating System: Windows 10
Location: Konin, Poland

Re: Yearly Data Summary - Failed to open day file

Post by Mark14 »

Indeed but still (I've changed "," to ";") there is no data here http://pogodaslesin.cba.pl/datasummary.html, even a year :roll:

I've already found that in line $date_delimiter = '/'; should be $date_delimiter = '-';

Thank you for your response because it helped me to come to the solution :)
Image
Mark14
Posts: 79
Joined: Thu 23 Aug 2012 8:53 pm
Weather Station: Ecowitt HP3501
Operating System: Windows 10
Location: Konin, Poland

Re: Yearly Data Summary - Failed to open day file

Post by Mark14 »

I don't know what happened. Since the beginning of the year the datasummary script does not work. On my site there is a blank area. Previously I did not change anything in the script (except the server for my web page). Do you know maybe what can I do?

My site: http://pogodaslesin.cba.pl/datasummary.html
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary - Failed to open day file

Post by steve »

Your copy of dayfile.txt at http://pogodaslesin.cba.pl/dayfile.txt stops at January 5th.
Steve
Mark14
Posts: 79
Joined: Thu 23 Aug 2012 8:53 pm
Weather Station: Ecowitt HP3501
Operating System: Windows 10
Location: Konin, Poland

Re: Yearly Data Summary - Failed to open day file

Post by Mark14 »

I transferred files some time ago to another server but here there is nothing about the script http://pogodaslesin.ugu.pl/datasummary.html :roll:

But maybe let's focus on http://pogodaslesin.cba.pl/datasummary.html At least here I can see the array, but without any data. I updated dayfile.txt and nothing changed... I tried to find the error but I don't know what is wrong.
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary - Failed to open day file

Post by steve »

Yes, your dayfile.txt appears to be up to date now. I can't help you any further, I know nothing about the script you're trying to use.
Steve
Post Reply