Automatically Creating and exporting a File
Automatically Creating and exporting a File
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.
-
- Posts: 69
- Joined: Tue Mar 16, 2010 12:05 pm
- Location: Isle of Skye
- Contact:
Re: Automatically Creating and exporting a File
Do you have access to a CRONTAB? If so you could set up a task in that, e.g. something using wget?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?
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
Re: Automatically Creating and exporting a File
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.