I've discovered that sometimes the PHP part of the console doesn't reload, and I get a message that it can't find "realtime.txt"...so to prevent that happening, I thought I would put a refresh on the whole page every 60 seconds. Don't know if there was a fix for it, but that's the only thing I can think of to prevent the problem (in my very limited ability of webpage making)nking wrote:Hi Richard,
Very nice.
Not knowing much about html but does it have to refresh the whole page as having the page disappear and return every 15 secs makes viewing a little frustrating. I would imagine someone has a solution so only the changed data elements are refreshed.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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 V4 release 4.0.1 (build 4023) - 16 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
New Cumulus realtime console
-
- Posts: 322
- Joined: Wed 02 Dec 2009 8:42 pm
- Weather Station: Maplins N96GY (Watson W-8681)
- Operating System: Windows 7 Home
- Location: Folkestone, Kent, UK
- Contact:
Re: New Cumulus realtime console
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: New Cumulus realtime console
It looks like you're not using the 'rename' option, so your realtime.txt file 'disappears' briefly while your ftp server updates it. Your ftp server may not support the rename command, though.ironeagleuk wrote:and I get a message that it can't find "realtime.txt"
Steve
-
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: New Cumulus realtime console
The reason for the file 'realtime.txt' not being available has been explained by Steve ... although it had not been corrected when I looked at your page as I got the 'realtime.txt missing!!!' message more than once...ironeagleuk wrote:I've discovered that sometimes the PHP part of the console doesn't reload, and I get a message that it can't find "realtime.txt"...
Richard, a PHP page (or any web pages for that matter) will never automatically refreshed (or reload) unless some code is placed into that page ... and a complete page refresh should not (never) be done ... only the continually changing data on a page should be refreshed (reloaded) ... and the only way to obtain that type of refresh is through Ajax (JavaScript).
As Neil indicated, a page refresh every 60 seconds is quite annoying...ironeagleuk wrote:...I thought I would put a refresh on the whole page every 60 seconds.
No fix is needed! The PHP script 'weatherconsole.php' which you are loading into the 'weatherconsole.html' HTML template through an 'iframe' (very poor page design!) already has a refresh cycle - it uses the 'refresh.js' JavaScipt - the refresh cycle for the 'weatherconsole.php' script on your server has been set at 15 seconds (within the 'weatherconsole-config.php' script).ironeagleuk wrote:Don't know if there was a fix for it, but that's the only thing I can think of to prevent the problem (in my very limited ability of webpage making)
-
- Posts: 322
- Joined: Wed 02 Dec 2009 8:42 pm
- Weather Station: Maplins N96GY (Watson W-8681)
- Operating System: Windows 7 Home
- Location: Folkestone, Kent, UK
- Contact:
Re: New Cumulus realtime console
I've switched rename on in the internet settings (I didn't know I had to), but I don't think it is supported.steve wrote:It looks like you're not using the 'rename' option, so your realtime.txt file 'disappears' briefly while your ftp server updates it. Your ftp server may not support the rename command, though.ironeagleuk wrote:and I get a message that it can't find "realtime.txt"
a temp realtime file (realtime.txttmp) is being uploaded, but the realtime.txt remains with the orginal upload time of 18:10
So therefore the data doesn't seem to be being updated
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: New Cumulus realtime console
You could turn on ftp logging to see what's happening, but it sounds like your ftp server doesn't support it. I'd complain if I were you, but it probably won't do any good.ironeagleuk wrote:a temp realtime file (realtime.txttmp) is being uploaded, but the realtime.txt remains with the orginal upload time of 18:10
So therefore the data doesn't seem to be being updated
Steve
-
- Posts: 322
- Joined: Wed 02 Dec 2009 8:42 pm
- Weather Station: Maplins N96GY (Watson W-8681)
- Operating System: Windows 7 Home
- Location: Folkestone, Kent, UK
- Contact:
Re: New Cumulus realtime console
Seemed fine when I tested it last night and this morning....sorry have been at work all day, so couldn't make any changesgemini06720 wrote: The reason for the file 'realtime.txt' not being available has been explained by Steve ... although it had not been corrected when I looked at your page as I got the 'realtime.txt missing!!!' message more than once...
gemini06720 wrote:Richard, a PHP page (or any web pages for that matter) will never automatically refreshed (or reload) unless some code is placed into that page ... and a complete page refresh should not (never) be done ... only the continually changing data on a page should be refreshed (reloaded) ... and the only way to obtain that type of refresh is through Ajax (JavaScript).
Have used this method on my webcam page to refresh the pic every 60 seconds and not had any complaints about it (although having said that I've not got a contact me link on the page)gemini06720 wrote: As Neil indicated, a page refresh every 60 seconds is quite annoying...
When I said "Don't know if there was a fix for it,", I didn't mean the webconsole.php was broken, I meant I was hoping someone could tell me how to sort out my webpage.gemini06720 wrote: No fix is needed! The PHP script 'weatherconsole.php' which you are loading into the 'weatherconsole.html' HTML template through an 'iframe' (very poor page design!) already has a refresh cycle - it uses the 'refresh.js' JavaScipt - the refresh cycle for the 'weatherconsole.php' script on your server has been set at 15 seconds (within the 'weatherconsole-config.php' script).
I wanted to embed it into a webpage (using the same method the BBC use to embed the weather on my homepage) like the rest of the pages on my site, but didn't know how else to do it. The method seemed to work, and like I said in a previous post, I have very limited website creation experience, and look around at other sites to find code to do what I want to do.....sorry it's poor design, but it's the best I could do. I only get a few hours to fiddle every now and then.
Last edited by ironeagleuk on Wed 14 Dec 2011 7:21 pm, edited 1 time in total.
-
- Posts: 322
- Joined: Wed 02 Dec 2009 8:42 pm
- Weather Station: Maplins N96GY (Watson W-8681)
- Operating System: Windows 7 Home
- Location: Folkestone, Kent, UK
- Contact:
Re: New Cumulus realtime console
I can't see anywhere in the file that in refers to realtime.txtsteve wrote:You could turn on ftp logging to see what's happening, but it sounds like your ftp server doesn't support it. I'd complain if I were you, but it probably won't do any good.ironeagleuk wrote:a temp realtime file (realtime.txttmp) is being uploaded, but the realtime.txt remains with the orginal upload time of 18:10
So therefore the data doesn't seem to be being updated
But am getting quite a few errors for the other files it's trying to process.
My provider is via FastHosts....so I'd be surprised if it doesn't allow renaming....perhaps there's a setting I need to look at in the control panel for my webspace
You do not have the required permissions to view the files attached to this post.
-
- Posts: 322
- Joined: Wed 02 Dec 2009 8:42 pm
- Weather Station: Maplins N96GY (Watson W-8681)
- Operating System: Windows 7 Home
- Location: Folkestone, Kent, UK
- Contact:
Re: New Cumulus realtime console
Can't find any settings to change. I can manually rename files with my FTP software thoughironeagleuk wrote: My provider is via FastHosts....so I'd be surprised if it doesn't allow renaming....perhaps there's a setting I need to look at in the control panel for my webspace
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: New Cumulus realtime console
The realtime.txt upload is logged in realtimeftplog.txt. But it looks like it's the actual upload of the temporary file that fails, rather than the rename:
19:09:32:962 FTP Command: STOR temp.pngtmp
19:09:32:962 04612890 TriggerDataSent 1120
19:09:32:962 04612180 TriggerDataSent 720
19:09:33:034 FTP Response: 553-Can't open that file: No such file or directory
19:09:33:035 >|553-Can't open that file: No such file or directory|
19:09:33:035 FTP Response: 553 Rename/move failure: No such file or directory
19:09:33:035 >|553 Rename/move failure: No such file or directory|
19:09:33:035 04612890 TCustomWSocket.Shutdown 1 1120
19:09:33:035 ! Data Session closed
19:09:33:035 ! Next3PutAsync
19:09:33:610 Renaming temp.pngtmp to temp.png
19:09:33:610 ! HighLevelAsync 0
19:09:33:610 FTP Command: RNFR temp.pngtmp
19:09:33:612 04612180 TriggerDataSent 720
19:09:33:683 FTP Response: 550 Sorry, but that file doesn't exist
19:09:33:683 >|550 Sorry, but that file doesn't exist
It looks like it's not allowing the upload of the temp.pngtmp file for some reason. Perhaps it has restrictions on the file extensions that it allows.
19:09:32:962 FTP Command: STOR temp.pngtmp
19:09:32:962 04612890 TriggerDataSent 1120
19:09:32:962 04612180 TriggerDataSent 720
19:09:33:034 FTP Response: 553-Can't open that file: No such file or directory
19:09:33:035 >|553-Can't open that file: No such file or directory|
19:09:33:035 FTP Response: 553 Rename/move failure: No such file or directory
19:09:33:035 >|553 Rename/move failure: No such file or directory|
19:09:33:035 04612890 TCustomWSocket.Shutdown 1 1120
19:09:33:035 ! Data Session closed
19:09:33:035 ! Next3PutAsync
19:09:33:610 Renaming temp.pngtmp to temp.png
19:09:33:610 ! HighLevelAsync 0
19:09:33:610 FTP Command: RNFR temp.pngtmp
19:09:33:612 04612180 TriggerDataSent 720
19:09:33:683 FTP Response: 550 Sorry, but that file doesn't exist
19:09:33:683 >|550 Sorry, but that file doesn't exist
It looks like it's not allowing the upload of the temp.pngtmp file for some reason. Perhaps it has restrictions on the file extensions that it allows.
Steve
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: New Cumulus realtime console
Ah, no, here's the real problem:
19:11:07:618 Changing directory to /htdocs/cumulus
19:11:07:618 FTP Command: CWD /htdocs/cumulus
19:11:07:618 04612180 TriggerDataSent 1108
19:11:07:688 FTP Response: 550 Can't change directory to /htdocs/cumulus: No such file or directory
19:11:07:688 >|550 Can't change directory to /htdocs/cumulus: No such file or directory|
I have no idea why this is only a problem when you try to use 'rename', there's something odd about the way the ftp server works. I suggest that you try just "cumulus" for the ftp directory.
19:11:07:618 Changing directory to /htdocs/cumulus
19:11:07:618 FTP Command: CWD /htdocs/cumulus
19:11:07:618 04612180 TriggerDataSent 1108
19:11:07:688 FTP Response: 550 Can't change directory to /htdocs/cumulus: No such file or directory
19:11:07:688 >|550 Can't change directory to /htdocs/cumulus: No such file or directory|
I have no idea why this is only a problem when you try to use 'rename', there's something odd about the way the ftp server works. I suggest that you try just "cumulus" for the ftp directory.
Steve
-
- Posts: 322
- Joined: Wed 02 Dec 2009 8:42 pm
- Weather Station: Maplins N96GY (Watson W-8681)
- Operating System: Windows 7 Home
- Location: Folkestone, Kent, UK
- Contact:
Re: New Cumulus realtime console
It won't let me leave out the htdocs:steve wrote:Ah, no, here's the real problem:
19:11:07:618 Changing directory to /htdocs/cumulus
19:11:07:618 FTP Command: CWD /htdocs/cumulus
19:11:07:618 04612180 TriggerDataSent 1108
19:11:07:688 FTP Response: 550 Can't change directory to /htdocs/cumulus: No such file or directory
19:11:07:688 >|550 Can't change directory to /htdocs/cumulus: No such file or directory|
I have no idea why this is only a problem when you try to use 'rename', there's something odd about the way the ftp server works. I suggest that you try just "cumulus" for the ftp directory.
That's what the online instructions say, and it can't find cumulus when I try itWhere To Upload Website Files
Ensure that your website files are uploaded to the HTDOCS folder when using FTP
- nking
- Posts: 808
- Joined: Thu 17 Dec 2009 2:03 pm
- Weather Station: W-8681
- Operating System: Windows 10
- Location: Hurstpierpoint, West Sussex, UK
- Contact:
Re: New Cumulus realtime console
Hi Richard,
I may be wrong but I think you should talk with FastHosts as I suspect they will have the answer.
I may be wrong but I think you should talk with FastHosts as I suspect they will have the answer.
-
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: New Cumulus realtime console
Steve and Richard...
Since 'htdocs' is the root directory (and, technically, there is nothing above), by default, Cumulus would start its FTP connection at the root directory (ie: 'htdocs') - so Cumulus can only go down - thus, should the path for the files not be just '/cumulus/'...
Might it be because there is no directory above '/htdocs/' - the slash in front of 'htdocs' is requesting the server to go one directory above the root directory - on an Apache server the 'htdocs' directory is the root directory (there is no directory above) - it would be like asking Windows to go above the 'C' directory, for example.steve wrote:19:11:07:688 FTP Response: 550 Can't change directory to /htdocs/cumulus: No such file or directory
19:11:07:688 >|550 Can't change directory to /htdocs/cumulus: No such file or directory|
Since 'htdocs' is the root directory (and, technically, there is nothing above), by default, Cumulus would start its FTP connection at the root directory (ie: 'htdocs') - so Cumulus can only go down - thus, should the path for the files not be just '/cumulus/'...
Richard it might be because the 'cumulus' directory does not have the right file permissions...ironeagleuk wrote:It won't let me leave out the htdocs:
- 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: New Cumulus realtime console
No ...the slash in front of 'htdocs' is requesting the server to go one directory above the root directory - on an Apache server the 'htdocs' directory is the root directory (there is no directory above)
/ is stating start from the root directory.
htdocs and probably logs and cgi-bin are also in that root 'user' directory.
So, assuming log-in is the 'root' address, then the 'directory' should be /htdocs/cumulus.
However; if log-in has been set to myspace/htdocs and then the 'directory' quoted as /htdocs/cumulus - that would cause problems ..
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: New Cumulus realtime console
You're already in htdocs when you log in, so if you quote a relative path (as recommended, with no leading slash) you leave it out. In your Cumulus folder there should now be be a file called ftpls.txt; it's a directory listing at the point where your ftp logs in. Please attach it.ironeagleuk wrote:It won't let me leave out the htdocs:That's what the online instructions say, and it can't find cumulus when I try itWhere To Upload Website Files
Ensure that your website files are uploaded to the HTDOCS folder when using FTP
Steve