Added WD Export File Format

Discussion about generation of graphs and tables
Post Reply
User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Added WD Export File Format

Post by admin » Sun Mar 28, 2010 11:35 pm

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".

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

Re: Added WD Export File Format

Post by skyewright » Tue Mar 30, 2010 10:54 am

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. :D

David
David

patonnet74
Posts: 5
Joined: Tue Apr 06, 2010 7:33 pm

Re: Added WD Export File Format

Post by patonnet74 » Tue Apr 06, 2010 7:53 pm

Will it be possible to schedule exports of csv data via ftp?

Alan

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Added WD Export File Format

Post by admin » Tue Apr 06, 2010 8:02 pm

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 ;-)

patonnet74
Posts: 5
Joined: Tue Apr 06, 2010 7:33 pm

Re: Added WD Export File Format

Post by patonnet74 » Tue Apr 06, 2010 8:31 pm

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...

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Added WD Export File Format

Post by admin » Tue Apr 06, 2010 10:19 pm

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?

patonnet74
Posts: 5
Joined: Tue Apr 06, 2010 7:33 pm

Re: Added WD Export File Format

Post by patonnet74 » Wed Apr 07, 2010 8:09 am

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

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

Re: Added WD Export File Format

Post by skyewright » Wed Apr 07, 2010 1:34 pm

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?
David

patonnet74
Posts: 5
Joined: Tue Apr 06, 2010 7:33 pm

Re: Added WD Export File Format

Post by patonnet74 » Wed Apr 07, 2010 2:34 pm

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 :D )

Cheers,
Alan

patonnet74
Posts: 5
Joined: Tue Apr 06, 2010 7:33 pm

Re: Added WD Export File Format

Post by patonnet74 » Wed Apr 07, 2010 3:13 pm

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

Post Reply