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

Real time updating

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
Joe Curtis
Posts: 35
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Buster MX 3117
Contact:

Real time updating

Post by Joe Curtis »

I have successfully installed the cumulus web site http://www.craythorneweather.info on my own linux based server located at my home. I seem to be unable to get the real time update working. I can ftp the realtime.txt file to the site without a problem but it refuses to update automatically. I would be grateful for any pointers to where I could look for a solution.
Joe Curtis
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Real time updating

Post by steve »

Joe, if you turn on ftp logging, the realtimeftplog.txt should show the problem - attach it here if you need help with them. Are yiou sure you've specified the path (directory) correctly in the ftp settings?
Steve
Joe Curtis
Posts: 35
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Buster MX 3117
Contact:

Re: Real time updating

Post by Joe Curtis »

This is the puzzling part!
The log shows:-
21:41:58:062 ! HighLevelAsync 0
21:41:58:062 TWSocket will connect to 192.168.1.103:65014
21:41:58:062 ! Data Session opened (Put)
21:41:58:062 01009D20 TriggerDataSent 824
21:41:58:062 01009610 TriggerDataSent 816
21:41:58:062 >|550 /var/www/http/weather/realtime.txt: No such file or directory|

There is a file there, it's where I FTP it to, although there is a similar error message in my manual FTP transfer (see attached log file) but the ftp transfer actually works. I suspect the error message is because it is already in the target directory and doesn't/can't need to change to it again. Maybe this is what is happening with the cumulus transfer?

The normal update works fine

Logging in to 192.168.1.103
Changing directory to /var/www/http/weather
Uploading standard files
Sending html pages
Changing directory to images
Sending graph files
Logging out
You do not have the required permissions to view the files attached to this post.
Joe Curtis
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Real time updating

Post by steve »

I see you have your ftp login set up to go to /var/www/http/weather/ at login, and you're getting the error:

550 /var/www/http/weather/: No such file or directory

So I guess that path really is incorrect. I don't really know what to say, as it's clearly not specific to Cumulus; you need to work out what your ftp server actually requires (maybe try leaving out the initial / ?).

The trace you've shown from the ftp window for the normal upload can be misleading; it never shows any errors. To see those you need to look at ftplog.txt.

Edit: Actually - having both 'www' and 'http' in the path seems a bit odd to me - are you sure that's right?
Steve
User avatar
GTB
Posts: 75
Joined: Thu 06 Nov 2008 12:14 am
Weather Station: ws1081 with Cumulus
Operating System: win 2000
Location: Terrigal NSW
Contact:

Re: Real time updating

Post by GTB »

Hi Joe

is your cumulus program on the same machine ? (server)

if so - copy files directly to your web folder and don't worry about ftp

geoff
Image
Joe Curtis
Posts: 35
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Buster MX 3117
Contact:

Re: Real time updating

Post by Joe Curtis »

Geoff - they are on different machines. Cumulus doesn't work on linux.

Steve

/var/www/httpd/weather as an address is not unusual in a linux environment.

My guess is that it is a permissions issue. the error message might not be that accurate in what it is describing.

The normal FTP log (attached) shows the same error but the site is being updated every 15 mins so the FTP transfers are working.

I will continue to dig till I find the problem
You do not have the required permissions to view the files attached to this post.
Joe Curtis
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Real time updating

Post by steve »

Joe Curtis wrote:/var/www/httpd/weather as an address is not unusual in a linux environment.
/var/www/httpd/weather or /var/www/http/weather - which one is the typo?
Steve
Joe Curtis
Posts: 35
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Buster MX 3117
Contact:

Re: Real time updating

Post by Joe Curtis »

Well spotted!! Both are typo's. Should be /var/www/html/weather.

It says something for the linux ftp server (Proftpd) that it gets some of the data to the right place even when the address is wrong.

Many thanks.
Joe Curtis
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Real time updating

Post by beteljuice »

Hmm ...

You now have realtime.txt, but its timestamp id: 13/06/09 10:10:30 ...
but your pages say: 18:25 :?
Image
......................Imagine, what you will KNOW tomorrow !
Joe Curtis
Posts: 35
Joined: Sun 07 Jun 2009 2:07 pm
Weather Station: W-8681
Operating System: RPI Buster MX 3117
Contact:

Re: Real time updating

Post by Joe Curtis »

Steve
As a final word on my problem, in case anyone else should encounter it, the fault was not a typo in the target directory but the directory itself. PROFTPD, the FTP server I am using on the linux machine, does not require a target directory from the FTP client, it gets this from the data set up when installing an FTP user on the server. Removing the directory from the cumulus parameters was the solution and would explain why the 15min update was working even with a typo in the parameters.
Joe Curtis
Post Reply