Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.3 build 3059 - 04 December 2019.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    Real time updating

    Discussion and questions about Cumulus weather station software version 1. This section and its subforums are the main place to get help with Cumulus. Anything which is not specific to the type of weather station goes in here; for anything specific to a type of weather station, please use the appropriate subforum. Use the 'website development' section for any questions relating to creating or running a web site for Cumulus data. Discussion of the stations themselves in these sections is fine.
    Post Reply
    Joe Curtis
    Posts: 17
    Joined: Sun 07 Jun 2009 2:07 pm
    Weather Station: W-8681
    Operating System: Win10 pro, Fedora 29, RPI S & B

    Real time updating

    Post by Joe Curtis » Fri 12 Jun 2009 8:51 pm

    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: 26717
    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 » Sat 13 Jun 2009 7:52 am

    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: 17
    Joined: Sun 07 Jun 2009 2:07 pm
    Weather Station: W-8681
    Operating System: Win10 pro, Fedora 29, RPI S & B

    Re: Real time updating

    Post by Joe Curtis » Sat 13 Jun 2009 9:18 am

    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: 26717
    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 » Sat 13 Jun 2009 9:35 am

    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 » Sat 13 Jun 2009 12:27 pm

    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: 17
    Joined: Sun 07 Jun 2009 2:07 pm
    Weather Station: W-8681
    Operating System: Win10 pro, Fedora 29, RPI S & B

    Re: Real time updating

    Post by Joe Curtis » Sat 13 Jun 2009 2:58 pm

    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: 26717
    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 » Sat 13 Jun 2009 3:22 pm

    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: 17
    Joined: Sun 07 Jun 2009 2:07 pm
    Weather Station: W-8681
    Operating System: Win10 pro, Fedora 29, RPI S & B

    Re: Real time updating

    Post by Joe Curtis » Sat 13 Jun 2009 3:43 pm

    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: 2790
    Joined: Tue 09 Dec 2008 1:37 pm
    Weather Station: None !
    Operating System: ex XP SP3 - now W10 laptop grr
    Location: Dudley, West Midlands, UK

    Re: Real time updating

    Post by beteljuice » Sat 13 Jun 2009 5:38 pm

    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: 17
    Joined: Sun 07 Jun 2009 2:07 pm
    Weather Station: W-8681
    Operating System: Win10 pro, Fedora 29, RPI S & B

    Re: Real time updating

    Post by Joe Curtis » Sun 14 Jun 2009 8:10 pm

    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