Page 1 of 1
Added WD Export File Format
Posted: Sun Mar 28, 2010 11:35 pm
by admin
I just added a feature to the chart generation engine that allows generation of CSV data. Please see an example for generation of Weather Display import data at the end of Gallery in the Wiki. Definition is also part of chart templates, named "_csv".
Re: Added WD Export File Format
Posted: Tue Mar 30, 2010 10:54 am
by skyewright
Wonderful! Thank you very much.
CSV (and similar) export is something I remember wishing for in Meteohub way way back. This development further illustrates the power / advantage of the client / server concept.
David
Re: Added WD Export File Format
Posted: Tue Apr 06, 2010 7:53 pm
by patonnet74
Will it be possible to schedule exports of csv data via ftp?
Alan
Re: Added WD Export File Format
Posted: Tue Apr 06, 2010 8:02 pm
by admin
No, it is more designed as a pull service. That means, any other computer can ask Meteoplug server for CSV data via HTTP request and Meteoplug will deliver. On a Linux machine you can use "wget" to receive data like this "wget -O outputfile.csv
https://www.meteoplug.com/meteochart.cg ... timeframe=........ When you put this into your computers time scheduling (crontab or so) data will be polled at given intervals.
To my knowledge "wget" is also available for Windows, but this is not my preferred playground
Re: Added WD Export File Format
Posted: Tue Apr 06, 2010 8:31 pm
by patonnet74
I was hoping I could send the data direct to my website, guess not
Will you make this feature available on meteohub?
It seems that for this to work for me I would need to upload to meteoplug from my meteohub, use wget on the meteohub to pull it down, then ftp to my website. That seems like many extra steps...
Re: Added WD Export File Format
Posted: Tue Apr 06, 2010 10:19 pm
by admin
May be there is a more easy way to achieve what you are looking for. I don't think that WD export data or other CSV data is something very useful on your web server, but may be I am wrong.
What service do you want to have realized on your home page where you do need WD export like data for?
Re: Added WD Export File Format
Posted: Wed Apr 07, 2010 8:09 am
by patonnet74
The reason for wanting this data is I would like to be able to create my own javascript graphs using the different 'buckets' of time.
I have previously used the WDL export, but I'd like the info more granular, for instance if I am graphing the last 24 hours I would like more than a reading once per hour to be graphed.
Cheers,
Alan
Re: Added WD Export File Format
Posted: Wed Apr 07, 2010 1:34 pm
by skyewright
Hi Alan,
Depending on your hosting deal you may well have access to a "crontab" (a scheduling mechanism), in which case grabing the CSV's could be quite automatic - i.e. you schedule a wget that calls a specific URL at the frequency of your choice.
If I have your domain correct I think you may use 1&1? If so, a quick google found
this brief tutorial on setting up crontab entries with 1&1.
Does that Help?
Re: Added WD Export File Format
Posted: Wed Apr 07, 2010 2:34 pm
by patonnet74
Good thinking!
My domain is registered on 1and1 but the hosting is actually through 5quidhosts, I've just checked and I do seem to have access to cron jobs.
Thanks for the tip, looks like that'll do nicely! (And of course means I'll need to get my meteoplug subscription
)
Cheers,
Alan
Re: Added WD Export File Format
Posted: Wed Apr 07, 2010 3:13 pm
by patonnet74
Yep, a big thanks to you David.
That works a treat, of course it means I'll actually need to get round to doing all the things I've been thinking about on my website!
Cheers,
Alan