¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Weather Data help


 

Need help pulling some weather data out of my new weather station. I got the Weather Underground node up, running, and talking to my PWS. Here's a screen shot of the data coming from the node. I need to know how to get one of these data parameters (let's say Wind direction) out of here and into just a numerical format for a gauge. I think it would be done with a Switch Node, but I'm honestly not sure of the settings. I've got the gauges all setup so no worries there. Just need help the steps to strip that info from all this. Any help would be greatly appreciated. Thanks.?


 

Since your data is in an array already you can just reference the array path in the gauges you are sending the msg to.? ?In your debug you will see some icons to the right of the objects. Here is an example:



I will use ipaddr as my example.? The right arrow is the path.? Click on it to get the array path:

payload.ipaddr

Now in your ui object you would reference it like this:



You can test this with a debug node by just referencing the array object instead of the entire msg.payload object:


--
Mick, W8BE


 

Might want to start here :?



Also as you hover over each property, on right hand side, there should be a copy value, copy path and pin value in the debug window.

I'm not sure if the gauge dashboard doesn't like something other than msg.payload, but you can try.? On your gauge tab, you could probably bring that value path directly in with mustache notation.? Replace {{msg.payload}} with the path of the property you want to display.? ie {{msg.observations[0].metric.winChill}} and see if that works for you.? If that doesn't work for you, you can use a change node to set msg.payload to the value of one of those properties and then feed it into a gauge node.??




Kyle
AA0Z


 

Ronald hopped on Zoom and got me all squared away. I'll be adding a flow to the group database for a wind warning that turns a rotor controller with excessive wind speed soon. Thanks everyone!?


 

So what solution did you end up with?
--
Mick, W8BE


 

Final solution was easily found with the Copy Path button button on the right. I totally forgot about that feature. Makes it really easy to pull the exact path needed. Once I had that it was easily pasted into a change node to turn that into msg.payload?


 

Very good.? That is what I was trying to point out.? ?Also if you were just dumping data into the gauge node you don't even need a change node.? ?You could just reference the array path.??

Regards
--
Mick, W8BE


 

Ahh very good to know! Thank you