Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

SFTP

Discussion specific to Fine Offset and similar rebadged weather stations
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

SFTP

Post 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
Cheers
Bengt
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SFTP

Post by steve »

On the Internet settings screen:
Internet Settings_2012-01-24_15-38-31.png
You do not have the required permissions to view the files attached to this post.
Steve
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post by tecno »

There you see, I am 'blind' ;)

Thanks Steve
Cheers
Bengt
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post 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)
Cheers
Bengt
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SFTP

Post 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.
Steve
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post 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?
Cheers
Bengt
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SFTP

Post by steve »

It depends how often you want it to run. See the help.
Steve
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post 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.
Cheers
Bengt
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post by tecno »

Autoupdate is on but only Realtime updates. Is there another script to be used for all gauges to update?
Cheers
Bengt
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SFTP

Post 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.
Steve
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post 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
Cheers
Bengt
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SFTP

Post 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?
Steve
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post 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.
Cheers
Bengt
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SFTP

Post 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?
Steve
tecno
Posts: 25
Joined: Mon 23 Jan 2012 2:29 pm
Weather Station: W1081
Operating System: XP
Location: Sparreholm Sweden

Re: SFTP

Post 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
Cheers
Bengt
Post Reply