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

Dayfile.txt not being uploaded

Discussion specific to Fine Offset and similar rebadged weather stations
uncle_bob
Posts: 505
Joined: Wed 17 Aug 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: Dayfile.txt not being uploaded

Post by uncle_bob »

I'm a bit late to the party, but I use and recommend the NcFTP command line ftp client. It's so easy.
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Dayfile.txt not being uploaded

Post by Super-T »

Not quite all good.

Running the batch file c:\cumulus\ftp-data\ftp2weather.bat (ftps -a -s:daily.ftp) works fine when done manually but not when attempting to run within Cumulus in "Internet Configuration".
Am I missing a parameter or something else that it doesn't run automatically once a day?
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dayfile.txt not being uploaded

Post by steve »

If you look in the diags file, it should show the command being executed, and any failures returned by Windows.
Steve
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: Dayfile.txt not being uploaded

Post by mcrossley »

Terry does your script either change the path to the correct working directory, or use full paths for the files? I suspect (never checked) that Cumulus will default the current path to the system folder.
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Dayfile.txt not being uploaded

Post by Super-T »

Looks like it ran it:-
28/08/2012 00:00:00.311 : Executing external program: c:\cumulus\ftp-data\ftp2weather.bat params:
28/08/2012 00:00:00.436 : Creating backup folder C:\Cumulus\backup\daily\20120828000000\
28/08/2012 00:00:00.467 : === Day reset complete
FTP File is:-
open linux11.digiweb.net.nz
janterconz
xxxxxxxx
cd www/weather/data
put c:\cumulus\data\dayfile.txt
bye
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dayfile.txt not being uploaded

Post by steve »

And no error reported. But I don't know whether all errors from within a batch file (e.g. a path problem as Mark suggests) would get reported back to Cumulus. You could try changing your batch file to use full path names for the ftps command and the daily.ftp parameter.
Steve
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Dayfile.txt not being uploaded

Post by Super-T »

I was just reading the wiki and I see you do it slightly differnetly but I have tried the wiki way and that didn't work but I will try again overnight.
I just assumed that as the bat file worked manually it would run from Cumulus. Even tried lowercase everything as I've been caught by that before.

Tried the wiki way and get upload errors.
I am using MoveIt to get the FTPS so maybe that makes a difference?

Maybe I should just try it in the Scheduler.
Last edited by Super-T on Tue 28 Aug 2012 9:38 am, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Dayfile.txt not being uploaded

Post by steve »

Note that for testing purposes you could put the command in the 'program' box, rather than having to wait until midnight for each run.
Steve
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Dayfile.txt not being uploaded

Post by Super-T »

True :-)

Tried that but nothing uploaded.
I upload at 5 minutes.

I'll try the scheduler overnight.
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Dayfile.txt not being uploaded

Post by Super-T »

Seemd to work OK overnight. I added the first line of the batch file

cd\cumulus\ftp-data\
ftps -a -s:daily.ftp
pause

Even though Cumulus was pointed at the right location, it didn't find the ftp file. Same applied with the Task Scheduler as that was in c:\windows\system32 directory.

The pause is just to leave the dos window open for me to see what happened and will remove now.

Looks like the path was the problem....thanks all :-)
Post Reply