Automatically Creating and exporting a File

Discussion about upload/download of data, import/export of foreign formats, etc.
Post Reply
gibsonmb
Posts: 12
Joined: Thu Apr 22, 2010 8:30 pm

Automatically Creating and exporting a File

Post by gibsonmb » Tue Jan 18, 2011 11:46 am

Could anybody give me a bit of guidance on how I might automatically create a daily file of certain weather parameters from the meteoplug server and place it on a host accessible from the internet to which I have an ftp account and password? I know how to create tables etc.

skyewright
Posts: 69
Joined: Tue Mar 16, 2010 12:05 pm
Location: Isle of Skye
Contact:

Re: Automatically Creating and exporting a File

Post by skyewright » Fri Jan 21, 2011 2:01 pm

gibsonmb wrote:Could anybody give me a bit of guidance on how I might automatically create a daily file of certain weather parameters from the meteoplug server and place it on a host accessible from the internet to which I have an ftp account and password?
Do you have access to a CRONTAB? If so you could set up a task in that, e.g. something using wget?

If you have a PC running at the appropriate time of day you could make a http call from there, then upload the file by ftp; it should be possible to automate both those steps, e.g. using the scheduler.

Or if you also run Meteohub there is probably a way to work it from there by using CRONTAB to make a http call and place the resulting file where it will get swept up by the ftp (in the /var/run/meteohub/uploads/ folder?).

I've not though about the detail, but those are the routes I'd be investigating if I wanted to do such a thing (as I may do someday!)...
David

gibsonmb
Posts: 12
Joined: Thu Apr 22, 2010 8:30 pm

Re: Automatically Creating and exporting a File

Post by gibsonmb » Fri Jan 21, 2011 9:12 pm

Thanks, that give me some ideas.... I'l read up a bit on CRONTAB and try that route. It is for some agricultrual software that predicts scab on hard fruit hence my newly installed two leaf wetness sensors. The lady wants a daily CSV file dropped in her ftp host ( I have the account and password for it). Would you beleive it, just started to play with this and whilst in London this week the CF card failed in my ALIX1D. This has happend before and very freaky, it turns out to be 1 year ago to the hour!!! I've just ordered an industrial CF card. Once received and my meteohub rebuilt I'll get on with this little excercise. Thanks again.

Post Reply