Templates
Moderator: Mattk
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Templates
I have recently started using a WeatherBridge with Davis Vantage Pro2. I'd like to be able to use the weather data locally, as if it were a feed from Weather Underground. Is there a way to create a template that determines what the Live Data as XML Service outputs? I'd like to have the output emulate the Weather Underground feed.
David
David
Re: Templates
The wiki "meteobridge.com" does provide information how to make use of templates.
Did you had a look there? Do you have questions on explanations given there?
I would like not to write here the same things already part of the wiki, but will
of course help when things do remain unclear...
Did you had a look there? Do you have questions on explanations given there?
I would like not to write here the same things already part of the wiki, but will
of course help when things do remain unclear...
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Re: Templates
Yes, I read the Wiki. That is where I picked up the information. But, it doesn't say what can be done with the templates or how to load them, as far as I can figure out. Once I have a template, can I store it on the device so that the Live Data (http://ip-of-meteobridge/cgi-bin/livedataxml.cgi) will use the template to format the data?
If there is some other place in the Wiki that I missed the information, just let me know.
David
If there is some other place in the Wiki that I missed the information, just let me know.
David
Re: Templates
As the meteobridge itself has no place where to store the template permanently, it does load it on demand from somewhere in the internet. so you have to place the template on your webserver and meteobridge does load from there.
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Re: Templates
Can it load from a local file system? I don't have a webserver running.
How do I get the livedataxml.cgi to use the template?
How do I get the livedataxml.cgi to use the template?
Re: Templates
Livedataxml.cgi will not make use of templates.
Ftp upload can load and fill a template, but it needs to come via http protocol from a server
in the internet or in your lan.
Ftp upload can load and fill a template, but it needs to come via http protocol from a server
in the internet or in your lan.
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Re: Templates
Maybe I should back up and state what I want to be able to do.
I would like to be able to point an application to the MeteoBridge and have it retrieve the data, similarly to retrieving it from Weather Underground. The livedataxml.cgi script looks like it is what I need, but the data it returns is less than I want, and not in the format I want (though that could be fixed in the application code). In the doc it says more data fields to come, but how soon? It would seem more obvious to me to let the user provide a template to determine what data and format to return.
Is there another way to do what I want? I don't think a push type interface will work - the application needs to do the polling.
Thanks,
David
I would like to be able to point an application to the MeteoBridge and have it retrieve the data, similarly to retrieving it from Weather Underground. The livedataxml.cgi script looks like it is what I need, but the data it returns is less than I want, and not in the format I want (though that could be fixed in the application code). In the doc it says more data fields to come, but how soon? It would seem more obvious to me to let the user provide a template to determine what data and format to return.
Is there another way to do what I want? I don't think a push type interface will work - the application needs to do the polling.
Thanks,
David
Re: Templates
ok, now i do better understand.
template mechanism is only used for push modes (email, twitter, ftp) right now.
I will have a look how this might be used in pull mode by requesting a certain URL
from the meteobridges web server. I guess that will an easy update, but up to now noone has
requested this.
is your program able to send http post request? or just http get?
template mechanism is only used for push modes (email, twitter, ftp) right now.
I will have a look how this might be used in pull mode by requesting a certain URL
from the meteobridges web server. I guess that will an easy update, but up to now noone has
requested this.
is your program able to send http post request? or just http get?
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Re: Templates
I'll try to find out. The quickest answer is, whatever is used to get data from Weather Underground.
I'm working with another developer who is willing to put in an interface that accepts a URL other than Weather Underground, as long as the interface is the same. I'm not sure if http get or http post request is used. The template would format the data into xml output.
I'm working with another developer who is willing to put in an interface that accepts a URL other than Weather Underground, as long as the interface is the same. I'm not sure if http get or http post request is used. The template would format the data into xml output.
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Re: Templates
The program pulls the data, and I think it's http get.
-
- Senior Boarder
- Posts: 47
- Joined: Thu May 16, 2013 6:39 am
Re: Templates
Any update on the possibility of adding this feature?
Re: Templates
It is there since June 1:
http://meteobridge.com/wiki/index.php/Forum
Please find details here (at the end):
http://meteobridge.com/wiki/index.php/Add-On_Services
http://meteobridge.com/wiki/index.php/Forum
Please find details here (at the end):
http://meteobridge.com/wiki/index.php/Add-On_Services
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Templates
That's very neat. Any chance of an equivalent in Meteohub &/or Meteoplug? Or have I missed something & it's already there?
Last edited by skyewright on Mon Jun 10, 2013 12:00 pm, edited 1 time in total.
Re: Templates
At the moment just for Meteobridge. Might be an option for Meteohub later on.
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Templates
Thanks for considering it. Not essential, but a nice alternative where appropriate.admin wrote:At the moment just for Meteobridge. Might be an option for Meteohub later on.
Maybe someday...
