Meteobridge Weather XML

Posted on
Fri Sep 13, 2019 10:46 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

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.
Attachments
2019-09-13_09-40-27.jpeg
2019-09-13_09-40-27.jpeg (117.24 KiB) Viewed 4888 times

_______
Norm

Posted on
Sat Sep 14, 2019 8:00 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

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 :-)
Attachments
2019-09-14_06-51-31.jpeg
2019-09-14_06-51-31.jpeg (46.52 KiB) Viewed 4869 times

_______
Norm

Posted on
Sat Sep 14, 2019 9:57 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Meteobridge Weather XML

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

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Sep 14, 2019 10:02 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

Perfect, thanks!

_______
Norm

Posted on
Sat Sep 14, 2019 10:04 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Meteobridge Weather XML

Sure thing. Note that there is a post above that explains the settings that we've used to connect to the Meteobridge API.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Sep 19, 2019 6:18 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

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!!!!!!!
Attachments
2019-09-19_05-16-06.jpeg
2019-09-19_05-16-06.jpeg (73.69 KiB) Viewed 4824 times

_______
Norm

Posted on
Thu Sep 19, 2019 6:26 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Meteobridge Weather XML

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.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Sep 19, 2019 6:49 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

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!

_______
Norm

Posted on
Thu Sep 19, 2019 9:08 am
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Meteobridge Weather XML

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.
Attachments
Screen Shot 2019-09-19 at 8.06.25 AM.png
Screen Shot 2019-09-19 at 8.06.25 AM.png (464.58 KiB) Viewed 4797 times

--
Korey

Posted on
Thu Sep 19, 2019 9:14 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

Thanks Korey - I'm sure that will come in handy :-)

_______
Norm

Posted on
Mon Sep 30, 2019 6:41 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

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?

_______
Norm

Posted on
Thu Oct 03, 2019 10:10 am
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Meteobridge Weather XML

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!

--
Korey

Posted on
Thu Oct 03, 2019 10:29 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

I could do it but it would take a million lines of code - someone smart could do it in just a few lines :-)

_______
Norm

Posted on
Thu Oct 03, 2019 10:54 am
forestfield offline
Posts: 83
Joined: Dec 29, 2014
Location: West Sussex

Re: Meteobridge Weather XML

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

Posted on
Thu Oct 03, 2019 11:05 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Meteobridge Weather XML

Wow, thanks - how about the next lottery number :-)

_______
Norm

Who is online

Users browsing this forum: No registered users and 1 guest