Page 1 of 2

SFTP

Posted: Tue 24 Jan 2012 3:27 pm
by tecno
From Wiki
configure Cumulus to call it at each web update interval.
Where do I set this up in Cumulus, maybe this old fart is 'blind' but I cannot figure out how to do this.

Cheers
Bengt

Re: SFTP

Posted: Tue 24 Jan 2012 3:39 pm
by steve
On the Internet settings screen:
Internet Settings_2012-01-24_15-38-31.png

Re: SFTP

Posted: Tue 24 Jan 2012 3:55 pm
by tecno
There you see, I am 'blind' ;)

Thanks Steve

Re: SFTP

Posted: Tue 24 Jan 2012 4:50 pm
by tecno
What exactly do I have to fill in on Internet settings to get SFTP to run?

I have the script and WinSCP installed(tested manually OK)

Web Site and Web setting, are these to be filled or left blank. If not blank what should be filled as regards SFTP?


edit/
http://www.tecno.se/weather/index.htm
How the data at 18:00 got there I dont know, no updates
Conection timed out message (error code 426)

Re: SFTP

Posted: Tue 24 Jan 2012 6:53 pm
by steve
You don't put anything in regarding the site, because Cumulus isn't doing the ftp, it doesn't know what's in the command file you're telling it to run. All you do in Cumulus is tick 'auto update' so it will generate the pages every N minutes.

Re: SFTP

Posted: Tue 24 Jan 2012 7:07 pm
by tecno
OK thanks.

In external programs there is 3 'fields'
Program
Realtime Program
Daily

Is it only realtime where i put in my script or what?

Re: SFTP

Posted: Tue 24 Jan 2012 7:11 pm
by steve
It depends how often you want it to run. See the help.

Re: SFTP

Posted: Tue 24 Jan 2012 7:21 pm
by tecno
As it is now only realtime updates. OK will look in help files to see if I get the hang of how to update html pages.

Re: SFTP

Posted: Tue 24 Jan 2012 7:26 pm
by tecno
Autoupdate is on but only Realtime updates. Is there another script to be used for all gauges to update?

Re: SFTP

Posted: Tue 24 Jan 2012 7:34 pm
by steve
It will only automatically generate the html pages and the images at the 'normal' update interval, not the 'realtime' interval. You can set the 'normal' interval as low as 1 minute, is that not sufficient, given that your station updates every 48 seconds?

I don't really understand what you're trying to achieve. If you want to use sftp on the realtime.txt file (which is what the gauges use) you can get it to generate the file using the realtime settings, and then use a script to sftp it to where you want.

Re: SFTP

Posted: Tue 24 Jan 2012 7:55 pm
by tecno
The problem is that ONLY realtime gauges are updated, not the others. So SFTP is working to my server.
Obviously there must be somtehing I have missed in some setting. I have now 1minute interval (just to see that it works with the updates)

http://www.tecno.se/weather/gauges.htm
http://www.wunderground.com/weatherstat ... =ISDERMAN6

Re: SFTP

Posted: Tue 24 Jan 2012 8:22 pm
by steve
So, you've created a script which runs at the realtime interval and uploads the realtime.txt file, yes? What have you done about the html pages and the images? You need to tick auto-update and specify a sensible interval, and then run a script at the 'normal' interval (i.e. in the 'program' box) which uploads them all in the same way that you've done for realtime.txt. Is that what you've done?

Re: SFTP

Posted: Tue 24 Jan 2012 8:36 pm
by tecno
I have AutoUpdate ticked in Web Settings
1min update interval just for testing purposes
60sec for realtime updates

I run the script in both Program and Realtime boxes

Only Realtime gauges update, nothing else

edit//

Tested with only Program = still the same only realtime gauges update nothing else.

Re: SFTP

Posted: Wed 25 Jan 2012 8:15 am
by steve
If your realtime script works but not your 'normal' one, then I think you must have an error in your 'normal' script. Are the web pages updating every minute in the Cumulus 'web' folder? If they are, your script should be able to upload them. Perhaps you could paste your two scripts here, with the passwords taken out?

Re: SFTP

Posted: Wed 25 Jan 2012 10:14 am
by tecno
Hi Steve,
I have only one script, obviously I have missed that there should be 2. Cannot find info about how to as regards program.

option batch abort
option confirm off
open xxxxxxxxxxxxxxxxxxxx.se
put c:\cumulus\realtime.txt /xxxx/xxxx/Sites/weather/realtime.txt
exit