Page 1 of 3

Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 3:15 am
by Rylands
Hello all.

I need to configure Cumulus to upload the realtime.txt file to my website. Easy I thought!

I'm guessing there is a problem with my ftp settings, but not knowing enough about what I am doing, need help in figuring out the error.

My website is www.eyesontheweather.com.au. Using FileZilla, the directory structure where all the files are kept is /eyesontheweather.com.au/public_html

In Cumulus, I have the host name as eyesontheweather.com.au and remote ftp directory as eyesontheweather.com.au/public.html. The username and password on Cumulus are being used successfully for ftp access using Filezilla.

However no files are being uploaded. Can anybody suggest why?

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 3:34 am
by PaulMy
Your remote ftp directory should likely be just public_html

Enjoy,
Paul

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 5:15 am
by Rylands
Unfortunately no file upload still :(

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 5:47 am
by HansR
Could you post the logfiles please

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 5:54 am
by Rylands
Just to expand on the issue slightly.

CumulusMX has been running succesfully AND uploading files to my webpage. I have moved my hosting to a new domain, along with all my website files.

I have Cumulus running on a raspberry Pi, and it is running succesfully, importing data from my Davis Pro 2 station.

All good to this point.

Using putty, I can connect and see the Cumulus files. No problems here. However when I use these same settings to connect via ftp and FileZilla, I can't connect.

"Connection attempt failed with "ECONNREFUSED - Connection refused by server".

So yes - sending the log file is no problem, I just can't seem to ftp to my pi.

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 6:59 am
by Rylands
Update:

Having checked my directory, it now seems that a series of .json files are now being uploaded every 10 minutes. However realtime.txt is not.

Cumulus Web/FTP settings show the following options selected:

Auto update
Include Graph Data Files
Include Moon Image file
FTP rename
UTF-8 encoding
FTP logging
Upload interval - 10
Enable realtime
Enable realtime FTP
FTP realtime.txt
Realtimegauges.txt FTP
Realtime interval 30

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 8:29 am
by HansR
So is the realtimegauges going to the website then? Or is it only the realtime.txt
Rylands wrote: Sat 27 Mar 2021 5:54 am Using putty, I can connect and see the Cumulus files. No problems here. However when I use these same settings to connect via ftp and FileZilla, I can't connect.
Rylands wrote: Sat 27 Mar 2021 5:54 am So yes - sending the log file is no problem, I just can't seem to ftp to my pi.
Now I am confused: are you trying to connect to the RPi here or to the website?

Your logfiles are on the RPi, you must be able to access the RPi otherwise you locked yourself out of CMX!

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 9:18 am
by Rylands
Sorry for the confusion.

I'm far from an expert on any of these systems, and have used information gained from the Cumulus forum to set up Cumulus on my RPi, and also on how to set up Cumulus to send through files to my website (again, using a template and instructions supplied by somebody else)

Connection to Cumulus at 192.168.... from my PC console works fine.

I can also use PuTTY to access the files, again using the same IP address, and password.

The only file I need to upload is realtime.txt - the information in this file is then updated to my page.

I can see using PuTTY that there is a ftplog.txt file in my CumulusMX directory.. but given I can't get FTP access to work, without taking the SD card out of my RPi, I can't retrieve it.

(Side note - Network Configuration on my RPi shows a hostname I have set as cumulusmx - I have also tried to use this as the username in FileZilla)

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 9:51 am
by water01
Try using the IP address. Alternatively instead of using FTP if you set all the files up in extra files using local network addresses it will put the files in the correct place. I am assuming you are trying to set up the Pi as your web server?

Re: Uploading of realtime.txt via ftp

Posted: Sat 27 Mar 2021 12:57 pm
by mcrossley
To connect FileZilla to your raspberry pi you have to use the SSH protocol, not FTP.

There is no FTP server configured on the pi by default, you would have to install one.

Re: Uploading of realtime.txt via ftp

Posted: Mon 29 Mar 2021 1:12 am
by Rylands
And this is where things get very confusing for somebody whose knowledge of ftp, RPi etc... is limited to the information on these boards.

To quote the installation instructions for the RPi
o In the ‘Host’ box, enter the Raspberry Pi’s IP address eg 192.168.1.123
o In Username, enter pi
o In Password enter your pi’s password
o In Port, enter 22
o Click ‘Quickconnect’. Raspberry Pi’s directory structure appears on the right and your PC’s directory structure is on the left</quote>
Nothing here about an SSH connection, unless I have missed something (quite possible)
Regardless, thanks mrcrossley - I have access to my Rpi using SSH.

I have copied the cumulus.ini file and ftplog.txt file. The ftplog.txt file is 1.19 GB in size. It's too large to attach even in zip format. I can only view the file in Wordpad, and even then it is extremely slow. Is there anything in particular I should be looking for in these files, to try and narrow down the issue?

Re: Uploading of realtime.txt via ftp

Posted: Mon 29 Mar 2021 2:21 am
by Rylands
After an hour, I can finally get to the bottom of the ftplog.txt file. The log for the upload of realtime.txt is in the attached file.

My cumulus settings are in the attached cumulus.ini file.

Filezilla shows my directory structure as:

/eyesontheweather.com.au/public_html/template

Trust this can help somebody who is a lot more clever than me, tell me what I am doing wrong :D

Re: Uploading of realtime.txt via ftp

Posted: Mon 29 Mar 2021 2:52 am
by PaulMy
See PM

Re: Uploading of realtime.txt via ftp

Posted: Mon 29 Mar 2021 3:09 am
by Rylands
Thanks PaulMy - fixed that issue. Hopefully now I can get an answer from you/somebody else as to what is happening here.

Re: Uploading of realtime.txt via ftp

Posted: Mon 29 Mar 2021 3:11 am
by PaulMy
See PM