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 4019) - 03 April 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

Cumulus Toolbox - Dayfile

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
ant30
Posts: 18
Joined: Thu 16 Apr 2015 4:19 pm
Weather Station: WS2307
Operating System: Win7 32bit
Location: Slovenia
Contact:

Cumulus Toolbox - Dayfile

Post by ant30 »

Hey,
last few days I put my dayfile data to Mysql manually with this HTTP remote command
(http://www.myserver.com/ImportCumulusFi ... ayfile.txt )
This command is working. My data are stored in database.

Now I wanna do this with cronjobs but i dont know how to write a cronjob command.
Is it the same command (http://www.myserver.com/ImportCumulusFi ... n10log.txt)?
I try do this with Cumulus Toolbox on tab "Remote commands" but i cant do anything on this tab? Why?

Thanks for help
Image
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Cumulus Toolbox - Dayfile

Post by water01 »

Because if you want to run a Cron job that has to be on your Website Server, which if you want to run Cron is either Unix or Linux server.

Most web site providers run a Cpanel or equivalent on the server and in there is usually a way to set up a Cron job, or you have to do it with a terminal on the server and add the Cron job with crontab -e.

My server provides the Cpanel and I added the dayfile to the Cron at 15 minutes past midnight (Cumulus Toolbox uploads the file at 10 minutes past midnight (my Cumulus system rolls over at Midnight)) and then added this line

Code: Select all

 php /home/dmjsyste/public_html/weather/ImportCumulusFile.php type=dayfile key=********* table=DayData file=dayfile.txt 
David
Image
User avatar
pernaczy
Posts: 133
Joined: Thu 15 Nov 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: Windows 7
Location: Niesiolowice, Northern Poland
Contact:

Re: Cumulus Toolbox - Dayfile

Post by pernaczy »

"ant30"
1. For safety reason you just should remowe both links from your post. The "key" is clearly visible.
2.
ant30 wrote:Hey,
I try do this with Cumulus Toolbox on tab "Remote commands" but i cant do anything on this tab? Why?
I'm not an expert in this matter but I'm doing this with CumulusToolbox. I have attached two files with my CumulusToolbox setup.
Maybe this will help.
Regards,
Piotr
You do not have the required permissions to view the files attached to this post.
The day when I have learned something is not the lost one.
Ignorance can be corrected with the help of a book. Stupidity requires a shotgun and a shovel.

Image
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Cumulus Toolbox - Dayfile

Post by water01 »

I think you have missed the point. He says he wants to "Now I wanna do this with cronjobs but i dont know how to write a cronjob command." via Toolbox and this is not possible, it is only possible on his Web Server.
David
Image
ant30
Posts: 18
Joined: Thu 16 Apr 2015 4:19 pm
Weather Station: WS2307
Operating System: Win7 32bit
Location: Slovenia
Contact:

Re: Cumulus Toolbox - Dayfile

Post by ant30 »

Hey,
thanks both for help and quick response.

I will try do this with cronjob and if this dont work i will go with Cumulus toolbox.
I allreday have cronjob on server side for real.php command and its working, with dayfile i was having problems.
I hope i will end this problem in this days with yours help.

"pernaczy"
Thanks for warrning but those links are from Cumulus Wiki page. I put on post those link just for example.

Thanks
Image
ant30
Posts: 18
Joined: Thu 16 Apr 2015 4:19 pm
Weather Station: WS2307
Operating System: Win7 32bit
Location: Slovenia
Contact:

Re: Cumulus Toolbox - Dayfile

Post by ant30 »

It works with cron jobs :clap:
Image
Post Reply