Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

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

Annual Data Summary update failure

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

Moderators: daj, TNETWeather

bumpy
Posts: 45
Joined: Fri Sep 24, 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Location: Tiverton, Devon

Annual Data Summary update failure

Postby bumpy » Fri Dec 09, 2016 9:53 am

Help please!
My weather website has been running almost faultlessly for many years and continues to do so with the exception of the Data Summary page which has failed to update since the Windows10 installation which I resisted for many months until it suddenly appeared as a download that I couldn't stop. At that point the website continued to update all other pages as expected every few minutes with the exception of the Data Summary page which lost all data and simply remained as a 'skeleton' page. I managed to recover the data and expected daily updates at 9am as had happened previously but no the page resolutely remained stuck at September 2016. Since then I have managed to update it manually until early this month but really want it revert to updating automatically. The daily update should be triggered by a Command Prompt but try as I will I cannot access the 'file' within the Command Prompt. When I follow the Cumulus Wiki instructions is says use AT in the Command Prompt but when I do this either going direct to the Command Prompt or by using the Command Prompt Admin route I get the same response to the effect that something is 'deprecated'. Whilst commands such as chkdsk and dir seem to work in the Command Prompt box, the command AT no longer seems to be accepted. Has the installation of Windows 10 affected Command Prompt commands? I feel sure that if I could access my Command Prompt 'instruction' I could then verify that the command to upload the dayfile.txt at 9.00am each day is valid.
Can anyone advise me how to access the Command Prompt correctly as the command AT now longer seems to work for me. Many thanks.
http://www.farleighmeadows.co.uk

User avatar
steve
Cumulus Author
Posts: 26245
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Annual Data Summary update failure

Postby steve » Fri Dec 09, 2016 10:55 am

I can't follow what it is you're trying to do, but if I type 'at' in a Windows 10 command window, it tells me that the 'at' command has been deprecated and asks me to use schtasks.exe instead. There is information about schtasks here - https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx

This appears to be a way to manage scheduled tasks from the command line rather than using the normal Windows 'scheduled tasks' interface from the control panel.

Hope that helps in some way. If not, someone who knows what they're talking about will hopefully be able to help.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

bumpy
Posts: 45
Joined: Fri Sep 24, 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Location: Tiverton, Devon

Re: Annual Data Summary update failure

Postby bumpy » Fri Dec 09, 2016 6:46 pm

Thank you for your response. All I want to do is to see whether the Command prompt still retains the instructions to upload the dayfile.txt to the server at 9.00am each day. Prior to Windows 10 I could do this. As the upload is not now happening it suggests that something has become corrupted or deleted and I would like to establish whether the command at 09.00 /every:M,T,W,Th,F,S,Su "c:\cumulus\upload-dayfile.txt" remains valid. This I cannot seem to be able to do because the Command Prompt interrogation process seems to have changed but this doesn't appear to have been reflected in the instructions contained within the Cumulus Wiki. I understand that I could try to set up a scheduled task instruction but having looked at it and not being confident at 'programming' I fear this may well be beyond me. I can obviously upload the dayfile.txt manually but would prefer it was done automatically as it has been for more than 5 years.
Has anyone any further advice please.
http://www.farleighmeadows.co.uk

User avatar
PaulMy
Posts: 1547
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Annual Data Summary update failure

Postby PaulMy » Sat Dec 10, 2016 1:40 am

I can obviously upload the dayfile.txt manually but would prefer it was done automatically as it has been for more than 5 years. Has anyone any further advice please.

I use Cumulus Toolbox to upload my dayfile.txt shortly after midnight.

Paul

bumpy
Posts: 45
Joined: Fri Sep 24, 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Location: Tiverton, Devon

Re: Annual Data Summary update failure

Postby bumpy » Thu Dec 15, 2016 9:08 am

Hi Paul
Thank you for the advice about Windows Scheduler. Glad to report that the Annual Data Summary automatically updated this morning: hopefully the previous problem is now solved.
Bumpy

bumpy
Posts: 45
Joined: Fri Sep 24, 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Location: Tiverton, Devon

Re: Annual Data Summary update failure

Postby bumpy » Sun Aug 20, 2017 9:12 am

Hello
A few weeks ago I was given some valuable help in restoring my website gauges page (steel series) following a power surge due to a thunderstorm. The help given enabled me to put things right. At the same time the trends pages and annual data summary had also 'disappeared' from the website. I subsequently managed to get the trends page working again but try as I might I cannot, despite many hours trying, get the annual data summary page to reappear. In desperation I finally decided to delete the relevant files from the server and downloaded the data summary zip file from the Cumulus wiki. In doing so I thought that by uploading the 'fresh' files to the server would resolve the problem but this hasn't been the case. When I force an update or allow it to do so automatically I simply get a blank page with an address of http://www.farleighmeadows.co.uk/datasummary.php
The files on the server are as follows:-
datasummary.php
datasummary.css
datasummary.html
readDayfile.php
The readDayfile.php file I amended line 19 to point (I hope) at the dayfle.txt file on the server. The dayfile is at /home/h09farl/data/dayfile.txt and line 19 shows this.
The datasummary.php file I amended at line 34 to read http://www.farleighmeadows.co.uk
Can anyone tell me where I'm going wrong please.
Help very gratefully received.

sfws
Posts: 344
Joined: Fri Jul 27, 2012 11:29 am
Weather Station: off-line Fine Offset plus others
Operating System: off-line Vista and W10 PCs
Location: UK

Re: Annual Data Summary update failure

Postby sfws » Sun Aug 20, 2017 1:12 pm

I viewed the source of what is on your page (view-source:http://www.farleighmeadows.co.uk/datasummary.php), and that shows me that part of your web page has actually been generated (the head is there) but the problem is during the PHP parse on your web server a fatal error occured very early in the parse of readDayfile.php file.
It is not my script, although I did help BCJKiwi with a few aspects. My first guess (based on this very limited information) is that when you edited the file to change the path you either mismatched the quotes or you deleted the semicolon needed in line 19.

If my guess is wrong, then you should insert a new line between 18 and 19 that just says

Code: Select all

error_reporting(E_ALL);

as this will cause all error messages to be reported and so aid debugging. (Don't leave it there for ever in a production environment!)

If you remain stuck then you could make it possible to see the PHP source code that your server is actually trying to parse (I posted something about self-downloads for listing php sources a little while ago).

bumpy
Posts: 45
Joined: Fri Sep 24, 2010 12:27 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Location: Tiverton, Devon

Re: Annual Data Summary update failure

Postby bumpy » Tue Aug 22, 2017 1:20 pm

Thank you to sfws for your helpful comments. I initiated an Error log and this has revealed a problem with line 31 in the datasummary.php file. Having looked at line 31 I can't see anything amiss but then I'm not experienced in these sorts of issues. I've attached some screenshots which may be helpful if someone can point me to where I'm going wrong. So far as I know when setting up the annual data summary the only manual adjustment I had to do was in the ReadDayfile.php and then save and copy this file plus datasummary.css and datasummary.php to the server.
Any help would be grafefully received.
Many thanks.
http://www.farleighmeadows.co.uk
You do not have the required permissions to view the files attached to this post.

sfws
Posts: 344
Joined: Fri Jul 27, 2012 11:29 am
Weather Station: off-line Fine Offset plus others
Operating System: off-line Vista and W10 PCs
Location: UK

Re: Annual Data Summary update failure

Postby sfws » Thu Sep 07, 2017 8:03 am

I see you actually have loaded onto your web server both the JavaScript and the PHP versions of the data summary scripts whose sources are in the Wiki.

The readDayfile.php file I amended line 19 to point (I hope) at the dayfle.txt file on the server. The dayfile is at /home/h09farl/data/dayfile.txt and line 19 shows this.

Looks to me like you might be getting confused between FTP paths and HTTP paths. You have the location of the dayfile.txt specified wrongly, the browser should be looking in the directory where it has found the html, as it is that same directory where you have loaded your dayfile.txt.

Let me take your JS version at http://www.farleighmeadows.co.uk/datasummary.html first because that is the most simple to fix. If you visit there and click the buttons at the top of the screen you will see most of it works, all it is missing is the data ... so in line 15 of readDayfile.js change

Code: Select all

var dayfile='/home/h09farl/public_html/dayfile.txt';
into

Code: Select all

var dayfile='dayfile.txt';
as your dayfile.txt is in the same folder as your html file. That should be enough to give you a fully working web page. It will have the problems listed on the Wiki page you downloaded it from, but I doubt if they will worry you. Incidentally the html file loads jQuery library version 1.5.1 at line 6, that is several years old, I'm using jQuery version 3.1.1, but I can't promise that is compatible with the old DAJ 'readDayfile.js', so I won't suggest any more changes for the JavaScript version!

------------------------------------------------


If for some reason you prefer to use the PHP version you have at http://www.farleighmeadows.co.uk/datasummary.php instead, line 19 or 20 of 'readDayfile.php' should simply say

Code: Select all

$dayfile = 'dayfile.txt';
You have a repeat of problems experienced by other people with that particular script e.g. http://sandaysoft.com/forum/viewtopic.php?f=14&t=11774&p=94474&hilit=data+summary#p94411. You will see that back then in April 2014, no real attempt was made to give a solution. Basically the php script you have selected was written by BCJKiwi for use on a web site using the Saratoga template system, and if you were using that you would already have Settings.php and common.php. I don't know anything about Saratoga template so all I can say is delete lines 30 to 36. The datasummary.php script you are using loads jQuery version 1.5.1 at line 40, that is several years old, I'm sure a newer version like 3.1.1 will work better with modern browsers, so also change that line 40 (before 30 to 36 are deleted) to read

Code: Select all

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.js" type="text/javascript"></script>

Finally, since the php file is in your home directory and your dayfile.txt is actually at "http://www.farleighmeadows.co.uk/dayfile.txt" which means it is also in the home directory, so finally change

Code: Select all

var dayfile='/home/h09farl/public_html/dayfile.txt';
into

Code: Select all

var dayfile='dayfile.txt';

After all those changes I think that you might have a working system!


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 6 guests