Page 2 of 2
Re: SFTP
Posted: Wed 25 Jan 2012 10:21 am
by steve
You're only uploading realtime.txt, so that's the only file that's going to be updated. If you want the html pages, graphs etc to be updated, you'll have to upload them. I'm not sure how you thought it was going to happen otherwise? The SFTP page in the wiki does list the files that you need to upload.
Re: SFTP
Posted: Wed 25 Jan 2012 10:34 am
by tecno
OK now I get it. I was in the believe that the realtime *data* was used to update the pages.
So back to the keyboard and write another script. I hope I can get this one correct.
Can I use *.html etc to /xxx/*.html ?
Re: SFTP
Posted: Wed 25 Jan 2012 10:43 am
by steve
The only thing the realtime.txt file is used for in the standard pages is for the pair of 'Flash' wind gauges. Everything else is updated on the PC and uploaded. Most of the code in the supplied pages is simple HTML; there's no way to do anything clever like read the data from a file to update the page. There are ways to do this, using javascript/Ajax etc, and some people have done this. But the supplied pages are intended to be simple and to be easy to get working on any web server. In 99.9% of cases, the server is sensible and supports ftp, so getting the supplied pages working is quite straightforward (assuming the user understands how their ftp server file space is set up).
Re: SFTP
Posted: Wed 25 Jan 2012 10:46 am
by steve
tecno wrote:Can I use *.html etc to /xxx/*.html ?
Sorry, I have no idea. I know nothing about WinSCP; I didn't write that page in the wiki.
Edit: but note that if you do use *.htm (sic) in the Cumulus web folder, you will also get the 'template' files, which aren't intended to be uploaded.
Re: SFTP
Posted: Wed 25 Jan 2012 11:23 am
by tecno
Hi Steve,
Now the pages are updateing, thanks for your kind support.
I did go the 'long' way ie one put line for each file in my script