Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki for download

Trying with WINSCP

Discussion specific to Fine Offset and similar rebadged weather stations
Post Reply
xavier
Posts: 8
Joined: Thu 07 Mar 2013 4:23 pm
Weather Station: PCE-FWS 20
Operating System: XP
Location: Lleida

Trying with WINSCP

Post by xavier » Fri 08 Mar 2013 8:32 pm

Hi,
I have been trying upload files with Winscp and software works well. The problem appears with scripts. Cumulus can not update files.
I have write script in external programs but it doesn't work. I can upload only in a manual way. Could anyone help me, please?
Thanks
Xavier

PS I am not able to attach bat file, so I type it here:
"winscp.com/script=C:\cumulus\sftp-cmds.txt"
Last edited by steve on Fri 08 Mar 2013 9:27 pm, edited 1 time in total.
Reason: Deleted attachment with password

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

Re: Trying with WINSCP

Post by steve » Fri 08 Mar 2013 9:28 pm

Your file had your password in it. I deleted it, here are the contents with the password redacted:

option batch abort
option confirm off
open jfranch:xxxxxxxxx@ftp.xtec.cat
put "C:\Cumulus\web\index.txt"/html
exit

What is the file index.txt? Shouldn't it be index.htm?
Steve

xavier
Posts: 8
Joined: Thu 07 Mar 2013 4:23 pm
Weather Station: PCE-FWS 20
Operating System: XP
Location: Lleida

Re: Trying with WINSCP

Post by xavier » Fri 08 Mar 2013 9:57 pm

steve wrote:Your file had your password in it. I deleted it, here are the contents with the password redacted:

option batch abort
option confirm off
open jfranch:xxxxxxxxx@ftp.xtec.cat
put "C:\Cumulus\web\index.txt"/html
exit

What is the file index.txt? Shouldn't it be index.htm?

OK Steve, thanks to hide my password, and to advice me about index.txt.
I have changed this right now, but it doesn't upload anything. What are I doing wrong?

thanks

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

Re: Trying with WINSCP

Post by steve » Sat 09 Mar 2013 10:54 am

I'm afraid I don't know, I've never used WinSCP. I didn't write the wiki entry explaining how to use it. Presumably Cumulus is creating the index.htm file?

I'll see if I can add FTP over SSL/TLS to Cumulus, it may not be difficult. I can't test it myself, though, as my hosting doesn't do FTPS.
Steve

xavier
Posts: 8
Joined: Thu 07 Mar 2013 4:23 pm
Weather Station: PCE-FWS 20
Operating System: XP
Location: Lleida

Re: Trying with WINSCP

Post by xavier » Sat 09 Mar 2013 12:22 pm

steve wrote:I'm afraid I don't know, I've never used WinSCP. I didn't write the wiki entry explaining how to use it. Presumably Cumulus is creating the index.htm file?

I'll see if I can add FTP over SSL/TLS to Cumulus, it may not be difficult. I can't test it myself, though, as my hosting doesn't do FTPS.
OK Steve! I think things will be easier if you can modify Cumulus in order to add FTP over TLS. I am waiting for this! While it arrive I will trying with WinSCP.

thanks a lot!

Xavier

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

Re: Trying with WINSCP

Post by steve » Sun 10 Mar 2013 5:51 pm

Having looked at the component I use for FTP, it seems I would have to completely rewrite all of the ftp code in Cumulus in order to support FTPS. So I'm afraid that's unlikely to happen in the near future, sorry.
Steve

xavier
Posts: 8
Joined: Thu 07 Mar 2013 4:23 pm
Weather Station: PCE-FWS 20
Operating System: XP
Location: Lleida

Re: Trying with WINSCP

Post by xavier » Sun 10 Mar 2013 6:13 pm

steve wrote:Having looked at the component I use for FTP, it seems I would have to completely rewrite all of the ftp code in Cumulus in order to support FTPS. So I'm afraid that's unlikely to happen in the near future, sorry.
OK! Steve. Don't worry. I understand everybody is very very busy. Me too. Fortunately, I am happy because of all is working fine. Cumulus active each 15 minutes batch files I wrote and update my webpage trough WINSCP. Now I am translating to catalan some pages.
I will be waiting for next updates of Cumulus, whenever you can.

Ciao
Xavier

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

Re: Trying with WINSCP

Post by steve » Sun 10 Mar 2013 6:17 pm

xavier wrote:Cumulus active each 15 minutes batch files I wrote and update my webpage trough WINSCP.
Ah, well done. You're now the official WinSCP expert ;)
Steve

User avatar
paggaudet
Posts: 2
Joined: Mon 14 Jul 2014 7:59 pm
Weather Station: PCE-FWS 20
Operating System: Windows 7 32
Location: Canada
Contact:

Re: Trying with WINSCP

Post by paggaudet » Mon 13 Aug 2018 1:11 am


User avatar
ConligWX
Posts: 728
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: Trying with WINSCP

Post by ConligWX » Mon 13 Aug 2018 7:04 am

xavier, I have had problems in the past with CumulusMX and ftp uploads though found the fix was to enable "FTP rename"
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS Templates

Post Reply