Hello
I have moved hosts to 1&1 and all went well till I noticed real time updates no longer work, as 1&1 only use SFTP. I see there is a was to get it working with WinSCP, but can anyone help me as I am running Cumulux on Linux. Any ideas please?
Cheers
Mark
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.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 V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.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
SFTP on Linux
Moderator: mcrossley
-
- Posts: 192
- Joined: Sun 04 Jan 2009 5:56 pm
- Weather Station: Vantage Vue
- Operating System: Windows 7
- Location: Middlesbrough, England
Re: SFTP on Linux
Thanks. I am on the latest version and SFTP doesn't work at all. Nothing in the logs to suggest it isnt working but I get no updates.
[FTP Updates
Now supports SFTP over TLS1.1 and 1.2
In Passive FTP, you can disable Enhanced Passive (EPSV) mode if it causes problems with your host. Some hosts are reporting they support it, but a firewall along the route cannot handle the connections.
- Requires manually adding a new Cumulus.ini entry...
CODE: SELECT L
[FTP site]
DisableEPSV=1
RealtimeGaugesTxt is no longer automatically enabled for FTP.]
[FTP Updates
Now supports SFTP over TLS1.1 and 1.2
In Passive FTP, you can disable Enhanced Passive (EPSV) mode if it causes problems with your host. Some hosts are reporting they support it, but a firewall along the route cannot handle the connections.
- Requires manually adding a new Cumulus.ini entry...
CODE: SELECT L
[FTP site]
DisableEPSV=1
RealtimeGaugesTxt is no longer automatically enabled for FTP.]
-
- Posts: 2435
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: SFTP on Linux
Oops sorry. MX supports FTPS but NOT SFTP. See this post for details. I will ask Mark to correct the first post I linked to.
-
- Posts: 192
- Joined: Sun 04 Jan 2009 5:56 pm
- Weather Station: Vantage Vue
- Operating System: Windows 7
- Location: Middlesbrough, England
Re: SFTP on Linux
Gah you got my hopes up then!!
-
- Posts: 2435
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: SFTP on Linux
Haha - sorry about that! You can get Cumulus to call an external application (such as scp) to do the SFTP transfer on its behalf. The outline is on the Wiki, but will obviously need to be tweaked. You just need to create a bash script that will use scp and copy your files across. It'll be tricky - but not impossible - with the realtime updates, as the minimum time unit used by cron is one minute.
-
- Posts: 192
- Joined: Sun 04 Jan 2009 5:56 pm
- Weather Station: Vantage Vue
- Operating System: Windows 7
- Location: Middlesbrough, England
Re: SFTP on Linux
yeah cheers... I think I have found what I am needing.. will report back once I get it working
sshpass -p YOUR_PASSWORD sftp -oBatchMode=no -b YOUR_COMMAND_FILE_PATH USER@HOST
sshpass -p YOUR_PASSWORD sftp -oBatchMode=no -b YOUR_COMMAND_FILE_PATH USER@HOST
-
- Posts: 192
- Joined: Sun 04 Jan 2009 5:56 pm
- Weather Station: Vantage Vue
- Operating System: Windows 7
- Location: Middlesbrough, England
Re: SFTP on Linux
yep that works a treat.. I use all 3 external program options, for realtime, normal updates and at the start of the day. Each one has its own text file for files to copy.
this is one of them
shhpass-p password sftp -oBatchMode=no -oStrictHostKeyChecking=no -b /home/mark/cu2.txt username@hist
cu2.txt contents are (I use the Saratoga templates, so need these files updating as well)
put /home/mark/CumulusMX/web/CUtags.txttmp CUtags.php
put /home/mark/CumulusMX/web/wxcumonthT.phptmp wxcumonth.php
put /home/mark/CumulusMX/web/wxcuyearT.phptmp wxcuyear.php
put /home/mark/CumulusMX/web/wxcutodayT.phptmp wxcutoday.php
put /home/mark/CumulusMX/web/wxcuyesterdayT.phptmp wxcuyesterday.php
put /home/mark/CumulusMX/web/realtimegaugesT.txttmp realtimegauges.txt
put /home/mark/CumulusMX/web/winddata.json
put /home/mark/CumulusMX/web/wdirdata.json
put /home/mark/CumulusMX/web/raindata.json
put /home/mark/CumulusMX/web/dailytemp.json
put /home/mark/CumulusMX/web/dailyrain.json
put /home/mark/CumulusMX/web/pressdata.json
put /home/mark/CumulusMX/web/humdata.json
put /home/mark/CumulusMX/web/graphconfig.json
this is one of them
shhpass-p password sftp -oBatchMode=no -oStrictHostKeyChecking=no -b /home/mark/cu2.txt username@hist
cu2.txt contents are (I use the Saratoga templates, so need these files updating as well)
put /home/mark/CumulusMX/web/CUtags.txttmp CUtags.php
put /home/mark/CumulusMX/web/wxcumonthT.phptmp wxcumonth.php
put /home/mark/CumulusMX/web/wxcuyearT.phptmp wxcuyear.php
put /home/mark/CumulusMX/web/wxcutodayT.phptmp wxcutoday.php
put /home/mark/CumulusMX/web/wxcuyesterdayT.phptmp wxcuyesterday.php
put /home/mark/CumulusMX/web/realtimegaugesT.txttmp realtimegauges.txt
put /home/mark/CumulusMX/web/winddata.json
put /home/mark/CumulusMX/web/wdirdata.json
put /home/mark/CumulusMX/web/raindata.json
put /home/mark/CumulusMX/web/dailytemp.json
put /home/mark/CumulusMX/web/dailyrain.json
put /home/mark/CumulusMX/web/pressdata.json
put /home/mark/CumulusMX/web/humdata.json
put /home/mark/CumulusMX/web/graphconfig.json