Page 1 of 1

Yearly Data Summary - Failed to open day file

Posted: Thu 23 Aug 2012 9:15 pm
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.

Re: Yearly Data Summary - Failed to open day file

Posted: Thu 23 Aug 2012 9:34 pm
by steve
You're using a semicolon for a field delimiter, so you need to change that in readDayfile.js

var field_delimiter = ";";

Re: Yearly Data Summary - Failed to open day file

Posted: Thu 23 Aug 2012 10:06 pm
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 :)

Re: Yearly Data Summary - Failed to open day file

Posted: Mon 11 Mar 2013 10:41 pm
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

Re: Yearly Data Summary - Failed to open day file

Posted: Tue 12 Mar 2013 7:55 am
by steve
Your copy of dayfile.txt at http://pogodaslesin.cba.pl/dayfile.txt stops at January 5th.

Re: Yearly Data Summary - Failed to open day file

Posted: Tue 12 Mar 2013 7:39 pm
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.

Re: Yearly Data Summary - Failed to open day file

Posted: Tue 12 Mar 2013 8:16 pm
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.