[OBSOLETE] Weather Station Tile 2.0

Seems to be working.

Great to hear! Now I am trying to do the following:

However to no success. It looks OK in the screenshot but that 27 is a static and it wont update. How do I set the label of a tile to that of another tile?

Just updated, now I can read the tiles, thank you.

You removed the “Weather” output capability from this Device Handler, which is present in the original. That weather output provides a combined output which looks really pretty in ActionTiles. Had to revert back to original.

Agreed - bummer. Just read the whole thread trying to find a solution for that.

@takissd
Is there any way to add 2 fields?

  1. Day’s Forecast High
  2. Day’s Forecast Low

And is there an associated attribute that we could poll via core/webcore to use in pistons?
(For piston use such as: If today’s high is forecast above 100, send txt message. "forecast high is {variable})

I really need a way to pull daily high (low would be nice too) forecast temp not just the real time temp.

1 Like

hello @cozdabuch, i just checked all the fields i can parse from the service and there is no forecast data that can be parsed. There is only a link, which is pretty much the same thing as your screenshot, but not the data. To see whats available you can go under logging and click on your device type, and refresh your weather device on your phone and you will see the fields.
For me for example the fields are:

obs --> [wind_gust_mph:0, precip_1hr_metric: 0, precip_today_metric:0, pressure_trend:0, forecast_url:http://www.wunderground.com/US/CA/San_Diego.html, history_url:http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KCASANDI399, estimated:[:], weather:Clear, windchill_string:NA, station_id:KCASANDI399, UV:4.0, observation_epoch:1498061867, wind_gust_kph:0, precip_1hr_in:0.00, observation_time:Last Updated on June 21, 9:17 AM PDT, feelslike_string:76.3 F (26 C), temp_f:76.3, local_tz_long:America/Los_Angeles, relative_humidity:69%, temp_c:24.6, image:[title:Weather Underground, link:http://www.wunderground.com, url:http://icons.wxug.com/graphics/wu2/logo_130x80.png], solarradiation:551, visibility_mi:10.0, observation_location:[full:Scripps Ranch Jerabek, San Diego, California, elevation:758 ft, state:California, longitude:-117.077995, latitude:32.916039, country_iso3166:US, country:US, city:Scripps Ranch Jerabek, San Diego], wind_mph:0.0, heat_index_c:NA, precip_today_string:0.00 in (0 mm), observation_time_rfc822:Wed, 21 Jun 2017 09:17:47 -0700, feelslike_f:76.3, heat_index_f:NA, feelslike_c:26, heat_index_string:NA, ob_url:http://www.wunderground.com/cgi-bin/findweather/getForecast?query=32.916039,-117.077995, dewpoint_string:66 F (19 C), local_tz_offset:-0700, wind_kph:0, windchill_f:NA, windchill_c:NA, wind_degrees:117, pressure_in:29.77, dewpoint_c:19, pressure_mb:1008, icon:clear, local_time_rfc822:Wed, 21 Jun 2017 09:18:01 -0700, precip_1hr_string:0.00 in ( 0 mm), icon_url:http://icons.wxug.com/i/c/k/clear.gif, wind_dir:ESE, dewpoint_f:66, nowcast:, display_location:[zip:92131, magic:1, full:San Diego, CA, elevation:239.9, state:CA, wmo:99999, longitude:-117.08000183, latitude:32.91999817, state_name:California, country_iso3166:US, country:US, city:San Diego], visibility_km:16.1, temperature_string:76.3 F (24.6 C), local_tz_short:PDT, local_epoch:1498061881, wind_string:Calm, precip_today_in:0.00]

1 Like

Thanks for the reply! I see what you mean.
Do you know of any other weather source that I can pull the high/low forecast data from? Related to this DH or not, I want to find a way to pull that data into ST. Ideas?

You need to use the forecast data feature - check this out:

https://www.wunderground.com/weather/api/d/docs?d=data/forecast

You can access the data in there with webCoRE by reading

$weather.forecast.<dynamic parameters from here>

for example:

$weather.forecast.forecast.txt_forecast.forecastday[0].fcttext

or for the UK users:

$weather.forecast.forecast.txt_forecast.forecastday[0].fcttext_metric

To get immediate low:

$weather.forecast.forecast.simpleforecast.forecastday[0].low.fahrenheit

and to get the next high:

$weather.forecast.forecast.simpleforecast.forecastday[0].high.fahrenheit

Replace fahrenheit with celsius to get the metric values.

Import this in webCoRE, save it, refresh the page, then hit the Test button.

The output:

║Today's forecast: Mostly cloudy. Lows overnight in the low 80s.
║Today's low: 80
║Today's high: 90
4 Likes

How do you format the current conditions correctly?

I’m tried like this so far:
{$weather.conditions.temp_f}
{$weather.temp_f]

I keep getting null regardless of how I tried to format it.
Current Conditions list is on this link but doesn’t really say how to correctly format it.: https://www.wunderground.com/weather/api/d/docs?d=data/conditions&MR=1

Try {$weather.conditions.current_observation.temp_f}

That worked, thanks.

1 Like

I’ve got this setup and using with ActionTiles, one thing I notice is that the temp recordings appear a few degrees higher than expected. I haven’t entered a postcode so using my hub location which is set correctly. Which service does this use to get it’s weather info? I will check on there to see if the readings are as expected.

I’m thinking about doing some warnings for my skylight windows when it rains. Is there any specific reason why this handler doesn’t implement the water sensor capability? Seems water: true/false would translate nicely to this, and make it easy to use with other smartapps and integrations.

I guess I’ll get it to work in webcore anyway, but my programmer OCD kicked in. :wink:

A,

1 Like

Trying to install this app and keep getting error about something not supported???
Trying copying code from 1st page and from raw. Same result. If I try the Githup update nothing shows up there.

Are you adding it as a device handler, and not an app?

Yep, my mistake. Just realized it. Works fine as device handler.

2 Likes

How did you get this into ActionTiles?

Just go through all the devices for your location in ActionTiles and select the Weather Station thing.
Then when you are setting up your dashboard, select it for the appropriate Tab.

in the device config i have it set to an international location zipcode in asia. after waiting 30 mins not seeing any data in the device details. does the weather data work for any zipcode or are there some limitations to which zipcodes it will work for?

thanks.

1 Like