Page 1 of 1
Automatically Creating and exporting a File
Posted: Tue Jan 18, 2011 11:46 am
by gibsonmb
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.
Re: Automatically Creating and exporting a File
Posted: Fri Jan 21, 2011 2:01 pm
by skyewright
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!)...
Re: Automatically Creating and exporting a File
Posted: Fri Jan 21, 2011 9:12 pm
by gibsonmb
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.