Does anyone have a script for parsing weather data. noah provides a free xylophone but I’m having trouble parsing it…basically because I don’t know what I’m doing. 🙂
]]>
I would suggest to use FcstType=json, this way you don’t need to use an XML parser, this is directly usable in JavaScript using var data = JSON.parse(json_text);
< ![CDATA[
xylophone?
Do you have a link on what you are trying to parse?
]]>
< ![CDATA[
NOAA Xml…. Sorry…. :-(… Auto correct….
http://forecast.weather.gov/MapClick.php?lat=35.1479&lon=-81.8628&unit=0&lg=english&FcstType=dwml
I think that is the link to the xml
]]>
< ![CDATA[
Quite a lot of data to extract 😉
I would suggest to use FcstType=json, this way you don’t need to use an XML parser, this is directly usable in JavaScript using var data = JSON.parse(json_text);
Then the biggest issue is to display these data.
]]>
< ![CDATA[
Thanks Pierre. I plan on using the script in tasker to trim down the info. Looks like I’ll be doing some research on that later tonight 😁
]]>
< ![CDATA[
Awesome, please share what you figure out.
]]>
< ![CDATA[
Sub
]]>