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

Uploading of realtime.txt via ftp

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

From MXdiags folder...

2021-03-30 19:01:41.620 FTP[73]: Attempting realtime FTP connect to host eyesontheweather.com.au on port 21
2021-03-30 19:01:50.369 FTP[73]: Realtime FTP connected
2021-03-30 19:01:50.575 Realtime[73]: Uploading - realtime.txt
2021-03-30 19:01:52.141 FTP[73]: Error renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt :
2021-03-30 19:01:52.165 Realtime[73]: Uploading - realtimegauges.txt
2021-03-30 19:01:52.175 FTP[73]: Error uploading web/realtimegauges.txt to /cumulus//realtimegauges.txt : Object reference not set to an instance of an object.
2021-03-30 19:02:11.141 LOOP: 33 - Expected data not received, expected 99 bytes, got 0
2021-03-30 19:02:11.620 FTP[74]: Attempting realtime FTP connect to host eyesontheweather.com.au on port 21
2021-03-30 19:02:14.143 SendLoopCommand: Starting - LPS 2 1
2021-03-30 19:02:14.144 SendLoopCommand: Error sending LOOP command [LPS 2 1]: Unable to write data to the transport connection: The socket has been shut down.
2021-03-30 19:02:14.144 InitTCP: Connecting to the station
2021-03-30 19:02:15.155 InitTCP: Flushing input stream
2021-03-30 19:02:17.778 FTP[74]: Realtime FTP connected
2021-03-30 19:02:17.896 Realtime[74]: Uploading - realtime.txt
2021-03-30 19:02:18.810 FTP[74]: Error renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt :
2021-03-30 19:02:18.836 Realtime[74]: Uploading - realtimegauges.txt
2021-03-30 19:02:18.847 FTP[74]: Error uploading web/realtimegauges.txt to /cumulus//realtimegauges.txt : Unable to read data from the transport connection: The socket has been shut down.

Chain of information from ftplog.txt is long, however this part appears relevant:

# GetWorkingDirectory()
Command: PWD
Response: 257 "/" is your current location
2021-03-30 19:26:14.418 Realtime[122]: Uploading - realtime.txt

# OpenWrite("/cumulus//realtime.txttmp", Binary)
Command: TYPE I
Response: 200 TYPE is now 8-bit binary

# GetFileSize("/cumulus//realtime.txttmp")
Command: SIZE /cumulus/realtime.txttmp
Response: 213 0

# OpenPassiveDataStream(AutoPassive, "STOR /cumulus/realtime.txttmp", 0)
Command: EPSV
Response: 229 Extended Passive mode OK (|||34638|)
Status: Connecting to 35.213.210.37:34638
Command: STOR /cumulus/realtime.txttmp
Response: 150 Accepted data connection
Status: FTPS Authentication Successful
Status: Time to activate encryption: 0h 0m 0s. Total Seconds: 0.186024.
2021-03-30 19:26:14.990 FTP[122]: Uploading realtime.txt to /cumulus//realtime.txttmp2021-03-30 19:26:14.995 FTP[122]: Uploaded realtime.txtStatus: Disposing FtpSocketStream...
Status: Disposing FtpSocketStream...
2021-03-30 19:26:15.012 FTP[122]: Renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt
# Rename("/cumulus//realtime.txttmp", "/cumulus//realtime.txt")
Command: RNFR /cumulus/realtime.txttmp
2021-03-30 19:26:15.027 FTP[122]: Error renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt :
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Uploading of realtime.txt via ftp

Post by billy »

Rylands wrote: Tue 30 Mar 2021 4:39 am My advice - if anybody is looking for a new host, stay away from siteground.
I have been with siteground for 5 years or so and not had any ftp problems. But their plans aren't cheap - although the introductory offer was - so I am not advocating for them!
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Uploading of realtime.txt via ftp

Post by billy »

... have you set up an ftp account? - it will give you a username probably something like yourusername_XXXXX@yoursite
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Uploading of realtime.txt via ftp

Post by billy »

OK, I have gone back and quickly read some of the earlier posts. I hope I am not telling you how to suck eggs but for what it's worth these are my key cumulus settings for web/ftp site - which works for my siteground hosted site:

Host name: tillyspaws.com
Ftp port: 21
Remote ftp directory: /vp2weather (Note the leading "/". And my "standard" cumulus site is in "vp2weather", which is a subdirectory of public_html. If yours is in the root of your website you may only need a "/" for this)
Username: "mysitegroundusername_randomletters&numbers@tillyspaws.com" (the bit before the @ is generated in siteground's ftp accounts page which you must setup before anything will work :))
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Uploading of realtime.txt via ftp

Post by HansR »

Rylands wrote: Tue 30 Mar 2021 8:33 am Status: FTPS Authentication Successful
Well, at least now it is clear you are using FTPS (which was not clear from the responses to freddie's questions.
That at least seems a bit different from my issue.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Uploading of realtime.txt via ftp

Post by billy »

and I use plain old vanilla ftp - ie "0"
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

Billy,
Host name: tillyspaws.com
Ftp port: 21
Remote ftp directory: /vp2weather (Note the leading "/". And my "standard" cumulus site is in "vp2weather", which is a subdirectory of public_html. If yours is in the root of your website you may only need a "/" for this)
When setting up an ftp account with Siteground, the home path defaults to /

Is this what you have?

I am creating a subdirectory weather in public_html, and will have my remote ftp directory set to /weather.

Let's see what happens....
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Uploading of realtime.txt via ftp

Post by mcrossley »

My view is the first thing to sort out is what path to use.
Then if you are still getting timeouts, try disabling Extended Passive mode under advanced settings. That will take effect at the next interval update, but does affect the real time FTP until you restart CMX, or the real time connection is aborted and re-opened.
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Uploading of realtime.txt via ftp

Post by billy »

Rylands wrote: Tue 30 Mar 2021 10:26 am When setting up an ftp account with Siteground, the home path defaults to /

Is this what you have?
Mine is “/tillyspaws.com/public_html/“
Rylands
Posts: 55
Joined: Sun 03 May 2020 4:21 am
Weather Station: Davis VP2
Operating System: Windows 10

Re: Uploading of realtime.txt via ftp

Post by Rylands »

A thousand thanks, and lifetime of gratitude to @billy.

Due to some strange setup at my host site, there was an issue with the ftp path that is now resolved.

I am happily getting my realtime.txt file, and can now start ironing out the other issues I am having with my site.

Thanks to all who have contributed to assisting me with this problem.
Post Reply