Added WD Export File Format
Added WD Export File Format
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".
-
- Posts: 69
- Joined: Tue Mar 16, 2010 12:05 pm
- Location: Isle of Skye
- Contact:
Re: Added WD Export File Format
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
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
David
-
- Posts: 5
- Joined: Tue Apr 06, 2010 7:33 pm
Re: Added WD Export File Format
Will it be possible to schedule exports of csv data via ftp?
Alan
Alan
Re: Added WD Export File Format
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
To my knowledge "wget" is also available for Windows, but this is not my preferred playground
-
- Posts: 5
- Joined: Tue Apr 06, 2010 7:33 pm
Re: Added WD Export File Format
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...
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
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?
What service do you want to have realized on your home page where you do need WD export like data for?
-
- Posts: 5
- Joined: Tue Apr 06, 2010 7:33 pm
Re: Added WD Export File Format
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
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
-
- Posts: 69
- Joined: Tue Mar 16, 2010 12:05 pm
- Location: Isle of Skye
- Contact:
Re: Added WD Export File Format
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?
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
-
- Posts: 5
- Joined: Tue Apr 06, 2010 7:33 pm
Re: Added WD Export File Format
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
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
-
- Posts: 5
- Joined: Tue Apr 06, 2010 7:33 pm
Re: Added WD Export File Format
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
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