Page 2 of 3

Re: Meteobridge Weather XML

PostPosted: Fri Sep 13, 2019 10:46 am
by norcoscia
That one is a version 3 (at least that is what one of the Amazon buyers received according to the amazon posts) - I did my best googling the heck out of the list but no luck finding one that would flash via web interface.

Seems like buying one that has already been flashed from ambient weather is an option but that starts to add up when you figure in the station cost - wish I could find a 25 dollar router - I will keep looking with my fingers crossed.

Re: Meteobridge Weather XML

PostPosted: Sat Sep 14, 2019 8:00 am
by norcoscia
So I located a <23 dollar (new) V1 TP-LINK and it is on its way - I have done more reading and have a question about the GhostXML plugin.

Once I get everything running I'm assuming the plug-in will return values like the ones in the photo below.

My question is how do I map those values into indigo devices (and how are the devices created). Or do I need to create a variables for each value and (if so) - how does the info get into the variable. Is that all handled by the plug-in or will I need a python script (please say no).

Anyway thanks for all the help so far and I think this will eventually be a big upgrade for my weather station :-)

Re: Meteobridge Weather XML

PostPosted: Sat Sep 14, 2019 9:57 am
by DaveL17
With the GhostXML plugin, you create a device that represents the data source you want to gather data from--in this case the Meteobridge device. The device will have states that contain all the data provided. The instructions for how to use the plugin are found here.

Note that the plugin imports all data as strings. Therefore, to use the data for math-based operations, you'll need to convert it yourself. For displaying on a control page, no adjustments are needed (unless you want to make the data prettier).

Re: Meteobridge Weather XML

PostPosted: Sat Sep 14, 2019 10:02 am
by norcoscia
Perfect, thanks!

Re: Meteobridge Weather XML

PostPosted: Sat Sep 14, 2019 10:04 am
by DaveL17
Sure thing. Note that there is a post above that explains the settings that we've used to connect to the Meteobridge API.

Re: Meteobridge Weather XML

PostPosted: Thu Sep 19, 2019 6:18 am
by norcoscia
Thanks so much for helping Korey - set it up and it is working great - so much better than my last setup.

Dave, as usual your plug-in is working great - fantastic job!!!!!!!

Re: Meteobridge Weather XML

PostPosted: Thu Sep 19, 2019 6:26 am
by DaveL17
Glad to hear that it's working for you. I noted it above, but all the data are imported as strings. To do math, you're going to have to convert them yourself.

Re: Meteobridge Weather XML

PostPosted: Thu Sep 19, 2019 6:49 am
by norcoscia
OK, got it - not sure if I need to do any math with the info but I guess I'll figure that out as I go!

Thanks again!

Re: Meteobridge Weather XML

PostPosted: Thu Sep 19, 2019 9:08 am
by Korey
norcoscia wrote:
OK, got it - not sure if I need to do any math with the info but I guess I'll figure that out as I go!

Thanks again!



Great news!

I use the adaptors plugin to convert wind speed & temp to imperial values.

Re: Meteobridge Weather XML

PostPosted: Thu Sep 19, 2019 9:14 am
by norcoscia
Thanks Korey - I'm sure that will come in handy :-)

Re: Meteobridge Weather XML

PostPosted: Mon Sep 30, 2019 6:41 am
by norcoscia
Did you figure out how to change the wind direction from degrees to something that looks like SE or SW or NNW - (like it is displayed on the weather flow page)? Can adapters plug-in do that?

Re: Meteobridge Weather XML

PostPosted: Thu Oct 03, 2019 10:10 am
by Korey
norcoscia wrote:
Did you figure out how to change the wind direction from degrees to something that looks like SE or SW or NNW - (like it is displayed on the weather flow page)? Can adapters plug-in do that?



I have not.

I'm sure there is a way to Convert ยบ to N W S E using python, we just need the smart python guys to chime in!

Re: Meteobridge Weather XML

PostPosted: Thu Oct 03, 2019 10:29 am
by norcoscia
I could do it but it would take a million lines of code - someone smart could do it in just a few lines :-)

Re: Meteobridge Weather XML

PostPosted: Thu Oct 03, 2019 10:54 am
by forestfield
How about 1 line...

Assuming wind direction is in a python variable called dir, then

Code: Select all
wind_direction = ['N','NE','E','SE','S','SW','W','NW'][int(((dir+22.5)%360)/45)]


should be about right, assuming you want 8 compass points

Re: Meteobridge Weather XML

PostPosted: Thu Oct 03, 2019 11:05 am
by norcoscia
Wow, thanks - how about the next lottery number :-)