marinawheel-pages
Red Lodge Mountain

Snow Sensor Test Page

snow sensor data:

Test with static html

Base

location:base
mypath:
the ID: " 2554
sensor url: |http://border.redlodgemountain.com:8005/?command=NewestRecord&table=Public|

sensor settings :Array ( [sensor_url] => http://border.redlodgemountain.com:8005/?command=NewestRecord&table=Public [quality_metric_min] => 150 [quality_metric_max] => 210 )
Array ( [BattV] => 13.75456 [PTemp_C] => 8.501339 [PTemp_F] => 47.30241 [WindSpeed] => 6.576 [WindDir] => 271.2967 [stringWindDir] => "W" [WindChillCelcius] => 44.14926 [WindChillFarenheit] => 44.14926 )
Fresh Sensor Data

Q out of range, using instead of as last good snow reading
New Snow: 0
Temp: 47
Wind:
Quality Value:
Quality Metric:
WindSpeed: 6.576
WindSpeed Avg:
stringWindDir: "W"

Mid Mountain

location:mid-mountain
mypath:
the ID: " 2553
sensor url: |http://166.167.241.76:8094/?command=NewestRecord&table=Public|

sensor settings :Array ( [sensor_url] => http://166.167.241.76:8094/?command=NewestRecord&table=Public [quality_metric_min] => 150 [quality_metric_max] => 210 )
Array ( [BattV] => 12.82184 [PTemp_C] => 9.323704 [PTemp_F] => 48.78266 [DT] => 35.67 [Q] => 168 [TCDT] => 36.27367 [New_Snow] => -0.01 [QM] => "Good Quality " )
Fresh Sensor Data

Q within range, caching -0.01 as good snow reading
New Snow: 0
Temp: 49
Wind:
Quality Value: 168
Quality Metric: "Good Quality "
WindSpeed:
WindSpeed Avg:
stringWindDir:

noaa weather

Location slug: " red-lodgethe ID: " 2552
feed url: |https://forecast.weather.gov/MapClick.php?lat=45.1902223&lon=-109.3507143&unit=0&lg=english&FcstType=dwml|

fresh array
SimpleXMLElement Object ( [@attributes] => Array ( [version] => 1.0 ) [head] => SimpleXMLElement Object ( [product] => SimpleXMLElement Object ( [@attributes] => Array ( [concise-name] => dwmlByDay [operational-mode] => developmental [srsName] => WGS 1984 ) [creation-date] => 2019-09-19T06:18:37-06:00 [category] => current observations and forecast ) [source] => SimpleXMLElement Object ( [production-center] => Billings, MT [credit] => https://www.weather.gov/byz [more-information] => http://www.nws.noaa.gov/forecasts/xml/ ) ) [data] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => forecast ) [location] => SimpleXMLElement Object ( [location-key] => point1 [point] => SimpleXMLElement Object ( [@attributes] => Array ( [latitude] => 45.2 [longitude] => -109.35 ) ) [area-description] => 5 Miles W Red Lodge MT [height] => 7395 ) [moreWeatherInformation] => http://forecast.weather.gov/MapClick.php?lat=45.2&lon=-109.35 [time-layout] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p6h-n1-1 [start-valid-time] => 2019-09-19T07:00:00-06:00 [end-valid-time] => 2019-09-25T18:00:00-06:00 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p12h-n13-1 [start-valid-time] => Array ( [0] => 2019-09-19T07:00:00-06:00 [1] => 2019-09-19T18:00:00-06:00 [2] => 2019-09-20T06:00:00-06:00 [3] => 2019-09-20T18:00:00-06:00 [4] => 2019-09-21T06:00:00-06:00 [5] => 2019-09-21T18:00:00-06:00 [6] => 2019-09-22T06:00:00-06:00 [7] => 2019-09-22T18:00:00-06:00 [8] => 2019-09-23T06:00:00-06:00 [9] => 2019-09-23T18:00:00-06:00 [10] => 2019-09-24T06:00:00-06:00 [11] => 2019-09-24T18:00:00-06:00 [12] => 2019-09-25T06:00:00-06:00 ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p24h-n7-1 [start-valid-time] => Array ( [0] => 2019-09-19T07:00:00-06:00 [1] => 2019-09-20T06:00:00-06:00 [2] => 2019-09-21T06:00:00-06:00 [3] => 2019-09-22T06:00:00-06:00 [4] => 2019-09-23T06:00:00-06:00 [5] => 2019-09-24T06:00:00-06:00 [6] => 2019-09-25T06:00:00-06:00 ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p24h-n6-2 [start-valid-time] => Array ( [0] => 2019-09-19T18:00:00-06:00 [1] => 2019-09-20T18:00:00-06:00 [2] => 2019-09-21T18:00:00-06:00 [3] => 2019-09-22T18:00:00-06:00 [4] => 2019-09-23T18:00:00-06:00 [5] => 2019-09-24T18:00:00-06:00 ) ) ) [parameters] => SimpleXMLElement Object ( [@attributes] => Array ( [applicable-location] => point1 ) [temperature] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => maximum [units] => Fahrenheit [time-layout] => k-p24h-n7-1 ) [name] => Daily Maximum Temperature [value] => Array ( [0] => 55 [1] => 41 [2] => 45 [3] => 53 [4] => 54 [5] => 54 [6] => 55 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => minimum [units] => Fahrenheit [time-layout] => k-p24h-n6-2 ) [name] => Daily Minimum Temperature [value] => Array ( [0] => 39 [1] => 38 [2] => 39 [3] => 42 [4] => 42 [5] => 42 ) ) ) [probability-of-precipitation] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => 12 hour [units] => percent [time-layout] => k-p12h-n13-1 ) [name] => 12 Hourly Probability of Precipitation [value] => Array ( [0] => 20 [1] => 60 [2] => 90 [3] => 80 [4] => 60 [5] => 30 [6] => SimpleXMLElement Object ( ) [7] => SimpleXMLElement Object ( ) [8] => 30 [9] => 20 [10] => SimpleXMLElement Object ( ) [11] => 20 [12] => 20 ) ) [weather] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p12h-n13-1 ) [name] => Weather Type, Coverage, Intensity [weather-conditions] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Mostly Sunny then Slight Chance T-storms ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Showers Likely ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Rain Likely then Rain ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Rain ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Chance Rain/Snow then Rain Likely ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Chance Rain then Partly Cloudy ) ) [6] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Sunny ) ) [7] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Partly Cloudy ) ) [8] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Chance Rain ) ) [9] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Slight Chance Rain then Partly Cloudy ) ) [10] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Mostly Sunny ) ) [11] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Slight Chance Rain ) ) [12] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Sunny then Slight Chance Rain ) ) ) ) [conditions-icon] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => forecast-NWS [time-layout] => k-p12h-n13-1 ) [name] => Conditions Icon [icon-link] => Array ( [0] => http://forecast.weather.gov/DualImage.php?i=sct&j=hi_tsra&jp=20 [1] => http://forecast.weather.gov/newimages/medium/nshra60.png [2] => http://forecast.weather.gov/DualImage.php?i=ra&j=ra&ip=60&jp=90 [3] => http://forecast.weather.gov/newimages/medium/nra80.png [4] => http://forecast.weather.gov/DualImage.php?i=ra_sn&j=ra&ip=40&jp=60 [5] => http://forecast.weather.gov/DualImage.php?i=nra&j=nsct&ip=30 [6] => http://forecast.weather.gov/newimages/medium/few.png [7] => http://forecast.weather.gov/newimages/medium/nsct.png [8] => http://forecast.weather.gov/newimages/medium/ra30.png [9] => http://forecast.weather.gov/DualImage.php?i=nra&j=nsct&ip=20 [10] => http://forecast.weather.gov/newimages/medium/sct.png [11] => http://forecast.weather.gov/newimages/medium/nra20.png [12] => http://forecast.weather.gov/DualImage.php?i=few&j=ra&jp=20 ) ) [hazards] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p6h-n1-1 ) [name] => Watches, Warnings, and Advisories [hazard-conditions] => SimpleXMLElement Object ( [hazard] => SimpleXMLElement Object ( [@attributes] => Array ( [headline] => Winter Weather Advisory ) [hazardTextURL] => http://forecast.weather.gov/showsigwx.php?warnzone=MTZ067&warncounty=MTC009&firewxzone=MTZ126&local_place1=5+Miles+W+Red+Lodge+MT&product1=Winter+Weather+Advisory ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => ) [name] => Watches, Warnings, and Advisories [hazard-conditions] => SimpleXMLElement Object ( [hazard] => SimpleXMLElement Object ( [@attributes] => Array ( [headline] => Hazardous Weather Outlook ) [hazardTextURL] => http://forecast.weather.gov/showsigwx.php?warnzone=MTZ067&warncounty=MTC009&firewxzone=MTZ126&local_place1=5+Miles+W+Red+Lodge+MT&product1=Hazardous+Weather+Outlook ) ) ) ) [wordedForecast] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p12h-n13-1 [dataSource] => byzNetcdf [wordGenerator] => markMitchell ) [name] => Text Forecast [text] => Array ( [0] => A 20 percent chance of showers and thunderstorms after noon. Mostly sunny, with a high near 55. West wind 6 to 13 mph becoming northeast in the afternoon. [1] => A chance of showers and thunderstorms before 9pm, then showers likely and possibly a thunderstorm between 9pm and midnight, then showers likely after midnight. Mostly cloudy, with a low around 39. Northeast wind 6 to 10 mph becoming west northwest after midnight. Chance of precipitation is 60%. [2] => Rain likely, then rain and possibly a thunderstorm after noon. Temperature falling to around 39 by 1pm. West wind 7 to 13 mph becoming north in the afternoon. Chance of precipitation is 90%. [3] => Rain and possibly a thunderstorm before midnight, then rain likely. Temperature rising to around 41 by 11pm. West wind 11 to 13 mph. Chance of precipitation is 80%. [4] => A chance of rain and snow before noon, then rain likely. Partly sunny, with a high near 45. West wind 9 to 13 mph. Chance of precipitation is 60%. Little or no snow accumulation expected. [5] => A 30 percent chance of rain before midnight. Partly cloudy, with a low around 39. [6] => Sunny, with a high near 53. [7] => Partly cloudy, with a low around 42. [8] => A 30 percent chance of rain, mainly after noon. Partly sunny, with a high near 54. [9] => A 20 percent chance of rain before midnight. Partly cloudy, with a low around 42. [10] => Mostly sunny, with a high near 54. [11] => A 20 percent chance of rain. Partly cloudy, with a low around 42. [12] => A 20 percent chance of rain. Sunny, with a high near 55. ) ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => current observations ) [location] => SimpleXMLElement Object ( [location-key] => point1 [point] => SimpleXMLElement Object ( [@attributes] => Array ( [latitude] => 45.156944 [longitude] => -109.360556 ) ) [area-description] => TIMBERCREST, MT [height] => 6400 ) [moreWeatherInformation] => https://www.wrh.noaa.gov/total_forecast/other_obs.php?wfo=byz&zone=MTZ067 [time-layout] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local ) [layout-key] => k-p1h-n1-1 [start-valid-time] => 2019-09-19T05:15:00 ) [parameters] => SimpleXMLElement Object ( [@attributes] => Array ( [applicable-location] => point1 ) [temperature] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => apparent [units] => Fahrenheit [time-layout] => k-p1h-n1-1 ) [value] => 44 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => dew point [units] => Fahrenheit [time-layout] => k-p1h-n1-1 ) [value] => 28 ) ) [humidity] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => relative [time-layout] => k-p1h-n1-1 ) [value] => 53 ) [weather] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p1h-n1-1 ) [name] => Weather Type, Coverage, Intensity [weather-conditions] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => NA ) ) [1] => SimpleXMLElement Object ( [value] => SimpleXMLElement Object ( [visibility] => NA ) ) ) ) [conditions-icon] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => forecast-NWS [time-layout] => k-p1h-n1-1 ) [name] => Conditions Icon [icon-link] => NULL ) [direction] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => wind [units] => degrees true [time-layout] => k-p1h-n1-1 ) [value] => 288 ) [wind-speed] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => gust [units] => knots [time-layout] => k-p1h-n1-1 ) [value] => 8 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => sustained [units] => knots [time-layout] => k-p1h-n1-1 ) [value] => 5 ) ) [pressure] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => barometer [units] => inches of mercury [time-layout] => k-p1h-n1-1 ) [value] => NA ) ) ) ) )
fresh data string: 2019-09-19T06:18:37-06:00 current observations and forecast Billings, MT https://www.weather.gov/byz http://www.nws.noaa.gov/forecasts/xml/ point1 5 Miles W Red Lodge MT 7395 http://forecast.weather.gov/MapClick.php?lat=45.2&lon=-109.35 k-p6h-n1-1 2019-09-19T07:00:00-06:00 2019-09-25T18:00:00-06:00 k-p12h-n13-1 2019-09-19T07:00:00-06:00 2019-09-19T18:00:00-06:00 2019-09-20T06:00:00-06:00 2019-09-20T18:00:00-06:00 2019-09-21T06:00:00-06:00 2019-09-21T18:00:00-06:00 2019-09-22T06:00:00-06:00 2019-09-22T18:00:00-06:00 2019-09-23T06:00:00-06:00 2019-09-23T18:00:00-06:00 2019-09-24T06:00:00-06:00 2019-09-24T18:00:00-06:00 2019-09-25T06:00:00-06:00 k-p24h-n7-1 2019-09-19T07:00:00-06:00 2019-09-20T06:00:00-06:00 2019-09-21T06:00:00-06:00 2019-09-22T06:00:00-06:00 2019-09-23T06:00:00-06:00 2019-09-24T06:00:00-06:00 2019-09-25T06:00:00-06:00 k-p24h-n6-2 2019-09-19T18:00:00-06:00 2019-09-20T18:00:00-06:00 2019-09-21T18:00:00-06:00 2019-09-22T18:00:00-06:00 2019-09-23T18:00:00-06:00 2019-09-24T18:00:00-06:00 Daily Maximum Temperature 55 41 45 53 54 54 55 Daily Minimum Temperature 39 38 39 42 42 42 12 Hourly Probability of Precipitation 20 60 90 80 60 30 30 20 20 20 Weather Type, Coverage, Intensity Conditions Icon http://forecast.weather.gov/DualImage.php?i=sct&j=hi_tsra&jp=20 http://forecast.weather.gov/newimages/medium/nshra60.png http://forecast.weather.gov/DualImage.php?i=ra&j=ra&ip=60&jp=90 http://forecast.weather.gov/newimages/medium/nra80.png http://forecast.weather.gov/DualImage.php?i=ra_sn&j=ra&ip=40&jp=60 http://forecast.weather.gov/DualImage.php?i=nra&j=nsct&ip=30 http://forecast.weather.gov/newimages/medium/few.png http://forecast.weather.gov/newimages/medium/nsct.png http://forecast.weather.gov/newimages/medium/ra30.png http://forecast.weather.gov/DualImage.php?i=nra&j=nsct&ip=20 http://forecast.weather.gov/newimages/medium/sct.png http://forecast.weather.gov/newimages/medium/nra20.png http://forecast.weather.gov/DualImage.php?i=few&j=ra&jp=20 Watches, Warnings, and Advisories http://forecast.weather.gov/showsigwx.php?warnzone=MTZ067&warncounty=MTC009&firewxzone=MTZ126&local_place1=5+Miles+W+Red+Lodge+MT&product1=Winter+Weather+Advisory Watches, Warnings, and Advisories http://forecast.weather.gov/showsigwx.php?warnzone=MTZ067&warncounty=MTC009&firewxzone=MTZ126&local_place1=5+Miles+W+Red+Lodge+MT&product1=Hazardous+Weather+Outlook Text Forecast A 20 percent chance of showers and thunderstorms after noon. Mostly sunny, with a high near 55. West wind 6 to 13 mph becoming northeast in the afternoon. A chance of showers and thunderstorms before 9pm, then showers likely and possibly a thunderstorm between 9pm and midnight, then showers likely after midnight. Mostly cloudy, with a low around 39. Northeast wind 6 to 10 mph becoming west northwest after midnight. Chance of precipitation is 60%. Rain likely, then rain and possibly a thunderstorm after noon. Temperature falling to around 39 by 1pm. West wind 7 to 13 mph becoming north in the afternoon. Chance of precipitation is 90%. Rain and possibly a thunderstorm before midnight, then rain likely. Temperature rising to around 41 by 11pm. West wind 11 to 13 mph. Chance of precipitation is 80%. A chance of rain and snow before noon, then rain likely. Partly sunny, with a high near 45. West wind 9 to 13 mph. Chance of precipitation is 60%. Little or no snow accumulation expected. A 30 percent chance of rain before midnight. Partly cloudy, with a low around 39. Sunny, with a high near 53. Partly cloudy, with a low around 42. A 30 percent chance of rain, mainly after noon. Partly sunny, with a high near 54. A 20 percent chance of rain before midnight. Partly cloudy, with a low around 42. Mostly sunny, with a high near 54. A 20 percent chance of rain. Partly cloudy, with a low around 42. A 20 percent chance of rain. Sunny, with a high near 55. point1 TIMBERCREST, MT 6400 https://www.wrh.noaa.gov/total_forecast/other_obs.php?wfo=byz&zone=MTZ067 k-p1h-n1-1 2019-09-19T05:15:00 44 28 53 Weather Type, Coverage, Intensity NA Conditions Icon NULL 288 8 5 NA
weather array:
SimpleXMLElement Object ( [@attributes] => Array ( [version] => 1.0 ) [head] => SimpleXMLElement Object ( [product] => SimpleXMLElement Object ( [@attributes] => Array ( [concise-name] => dwmlByDay [operational-mode] => developmental [srsName] => WGS 1984 ) [creation-date] => 2019-09-19T06:18:37-06:00 [category] => current observations and forecast ) [source] => SimpleXMLElement Object ( [production-center] => Billings, MT [credit] => https://www.weather.gov/byz [more-information] => http://www.nws.noaa.gov/forecasts/xml/ ) ) [data] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => forecast ) [location] => SimpleXMLElement Object ( [location-key] => point1 [point] => SimpleXMLElement Object ( [@attributes] => Array ( [latitude] => 45.2 [longitude] => -109.35 ) ) [area-description] => 5 Miles W Red Lodge MT [height] => 7395 ) [moreWeatherInformation] => http://forecast.weather.gov/MapClick.php?lat=45.2&lon=-109.35 [time-layout] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p6h-n1-1 [start-valid-time] => 2019-09-19T07:00:00-06:00 [end-valid-time] => 2019-09-25T18:00:00-06:00 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p12h-n13-1 [start-valid-time] => Array ( [0] => 2019-09-19T07:00:00-06:00 [1] => 2019-09-19T18:00:00-06:00 [2] => 2019-09-20T06:00:00-06:00 [3] => 2019-09-20T18:00:00-06:00 [4] => 2019-09-21T06:00:00-06:00 [5] => 2019-09-21T18:00:00-06:00 [6] => 2019-09-22T06:00:00-06:00 [7] => 2019-09-22T18:00:00-06:00 [8] => 2019-09-23T06:00:00-06:00 [9] => 2019-09-23T18:00:00-06:00 [10] => 2019-09-24T06:00:00-06:00 [11] => 2019-09-24T18:00:00-06:00 [12] => 2019-09-25T06:00:00-06:00 ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p24h-n7-1 [start-valid-time] => Array ( [0] => 2019-09-19T07:00:00-06:00 [1] => 2019-09-20T06:00:00-06:00 [2] => 2019-09-21T06:00:00-06:00 [3] => 2019-09-22T06:00:00-06:00 [4] => 2019-09-23T06:00:00-06:00 [5] => 2019-09-24T06:00:00-06:00 [6] => 2019-09-25T06:00:00-06:00 ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local [summarization] => 12hourly ) [layout-key] => k-p24h-n6-2 [start-valid-time] => Array ( [0] => 2019-09-19T18:00:00-06:00 [1] => 2019-09-20T18:00:00-06:00 [2] => 2019-09-21T18:00:00-06:00 [3] => 2019-09-22T18:00:00-06:00 [4] => 2019-09-23T18:00:00-06:00 [5] => 2019-09-24T18:00:00-06:00 ) ) ) [parameters] => SimpleXMLElement Object ( [@attributes] => Array ( [applicable-location] => point1 ) [temperature] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => maximum [units] => Fahrenheit [time-layout] => k-p24h-n7-1 ) [name] => Daily Maximum Temperature [value] => Array ( [0] => 55 [1] => 41 [2] => 45 [3] => 53 [4] => 54 [5] => 54 [6] => 55 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => minimum [units] => Fahrenheit [time-layout] => k-p24h-n6-2 ) [name] => Daily Minimum Temperature [value] => Array ( [0] => 39 [1] => 38 [2] => 39 [3] => 42 [4] => 42 [5] => 42 ) ) ) [probability-of-precipitation] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => 12 hour [units] => percent [time-layout] => k-p12h-n13-1 ) [name] => 12 Hourly Probability of Precipitation [value] => Array ( [0] => 20 [1] => 60 [2] => 90 [3] => 80 [4] => 60 [5] => 30 [6] => SimpleXMLElement Object ( ) [7] => SimpleXMLElement Object ( ) [8] => 30 [9] => 20 [10] => SimpleXMLElement Object ( ) [11] => 20 [12] => 20 ) ) [weather] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p12h-n13-1 ) [name] => Weather Type, Coverage, Intensity [weather-conditions] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Mostly Sunny then Slight Chance T-storms ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Showers Likely ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Rain Likely then Rain ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Rain ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Chance Rain/Snow then Rain Likely ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Chance Rain then Partly Cloudy ) ) [6] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Sunny ) ) [7] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Partly Cloudy ) ) [8] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Chance Rain ) ) [9] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Slight Chance Rain then Partly Cloudy ) ) [10] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Mostly Sunny ) ) [11] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Slight Chance Rain ) ) [12] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => Sunny then Slight Chance Rain ) ) ) ) [conditions-icon] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => forecast-NWS [time-layout] => k-p12h-n13-1 ) [name] => Conditions Icon [icon-link] => Array ( [0] => http://forecast.weather.gov/DualImage.php?i=sct&j=hi_tsra&jp=20 [1] => http://forecast.weather.gov/newimages/medium/nshra60.png [2] => http://forecast.weather.gov/DualImage.php?i=ra&j=ra&ip=60&jp=90 [3] => http://forecast.weather.gov/newimages/medium/nra80.png [4] => http://forecast.weather.gov/DualImage.php?i=ra_sn&j=ra&ip=40&jp=60 [5] => http://forecast.weather.gov/DualImage.php?i=nra&j=nsct&ip=30 [6] => http://forecast.weather.gov/newimages/medium/few.png [7] => http://forecast.weather.gov/newimages/medium/nsct.png [8] => http://forecast.weather.gov/newimages/medium/ra30.png [9] => http://forecast.weather.gov/DualImage.php?i=nra&j=nsct&ip=20 [10] => http://forecast.weather.gov/newimages/medium/sct.png [11] => http://forecast.weather.gov/newimages/medium/nra20.png [12] => http://forecast.weather.gov/DualImage.php?i=few&j=ra&jp=20 ) ) [hazards] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p6h-n1-1 ) [name] => Watches, Warnings, and Advisories [hazard-conditions] => SimpleXMLElement Object ( [hazard] => SimpleXMLElement Object ( [@attributes] => Array ( [headline] => Winter Weather Advisory ) [hazardTextURL] => http://forecast.weather.gov/showsigwx.php?warnzone=MTZ067&warncounty=MTC009&firewxzone=MTZ126&local_place1=5+Miles+W+Red+Lodge+MT&product1=Winter+Weather+Advisory ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => ) [name] => Watches, Warnings, and Advisories [hazard-conditions] => SimpleXMLElement Object ( [hazard] => SimpleXMLElement Object ( [@attributes] => Array ( [headline] => Hazardous Weather Outlook ) [hazardTextURL] => http://forecast.weather.gov/showsigwx.php?warnzone=MTZ067&warncounty=MTC009&firewxzone=MTZ126&local_place1=5+Miles+W+Red+Lodge+MT&product1=Hazardous+Weather+Outlook ) ) ) ) [wordedForecast] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p12h-n13-1 [dataSource] => byzNetcdf [wordGenerator] => markMitchell ) [name] => Text Forecast [text] => Array ( [0] => A 20 percent chance of showers and thunderstorms after noon. Mostly sunny, with a high near 55. West wind 6 to 13 mph becoming northeast in the afternoon. [1] => A chance of showers and thunderstorms before 9pm, then showers likely and possibly a thunderstorm between 9pm and midnight, then showers likely after midnight. Mostly cloudy, with a low around 39. Northeast wind 6 to 10 mph becoming west northwest after midnight. Chance of precipitation is 60%. [2] => Rain likely, then rain and possibly a thunderstorm after noon. Temperature falling to around 39 by 1pm. West wind 7 to 13 mph becoming north in the afternoon. Chance of precipitation is 90%. [3] => Rain and possibly a thunderstorm before midnight, then rain likely. Temperature rising to around 41 by 11pm. West wind 11 to 13 mph. Chance of precipitation is 80%. [4] => A chance of rain and snow before noon, then rain likely. Partly sunny, with a high near 45. West wind 9 to 13 mph. Chance of precipitation is 60%. Little or no snow accumulation expected. [5] => A 30 percent chance of rain before midnight. Partly cloudy, with a low around 39. [6] => Sunny, with a high near 53. [7] => Partly cloudy, with a low around 42. [8] => A 30 percent chance of rain, mainly after noon. Partly sunny, with a high near 54. [9] => A 20 percent chance of rain before midnight. Partly cloudy, with a low around 42. [10] => Mostly sunny, with a high near 54. [11] => A 20 percent chance of rain. Partly cloudy, with a low around 42. [12] => A 20 percent chance of rain. Sunny, with a high near 55. ) ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => current observations ) [location] => SimpleXMLElement Object ( [location-key] => point1 [point] => SimpleXMLElement Object ( [@attributes] => Array ( [latitude] => 45.156944 [longitude] => -109.360556 ) ) [area-description] => TIMBERCREST, MT [height] => 6400 ) [moreWeatherInformation] => https://www.wrh.noaa.gov/total_forecast/other_obs.php?wfo=byz&zone=MTZ067 [time-layout] => SimpleXMLElement Object ( [@attributes] => Array ( [time-coordinate] => local ) [layout-key] => k-p1h-n1-1 [start-valid-time] => 2019-09-19T05:15:00 ) [parameters] => SimpleXMLElement Object ( [@attributes] => Array ( [applicable-location] => point1 ) [temperature] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => apparent [units] => Fahrenheit [time-layout] => k-p1h-n1-1 ) [value] => 44 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => dew point [units] => Fahrenheit [time-layout] => k-p1h-n1-1 ) [value] => 28 ) ) [humidity] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => relative [time-layout] => k-p1h-n1-1 ) [value] => 53 ) [weather] => SimpleXMLElement Object ( [@attributes] => Array ( [time-layout] => k-p1h-n1-1 ) [name] => Weather Type, Coverage, Intensity [weather-conditions] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [weather-summary] => NA ) ) [1] => SimpleXMLElement Object ( [value] => SimpleXMLElement Object ( [visibility] => NA ) ) ) ) [conditions-icon] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => forecast-NWS [time-layout] => k-p1h-n1-1 ) [name] => Conditions Icon [icon-link] => NULL ) [direction] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => wind [units] => degrees true [time-layout] => k-p1h-n1-1 ) [value] => 288 ) [wind-speed] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => gust [units] => knots [time-layout] => k-p1h-n1-1 ) [value] => 8 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => sustained [units] => knots [time-layout] => k-p1h-n1-1 ) [value] => 5 ) ) [pressure] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => barometer [units] => inches of mercury [time-layout] => k-p1h-n1-1 ) [value] => NA ) ) ) ) )