[RELEASE] HousePanel Dashboard for SmartThings and Hubitat

I forgot to mention that the latest update includes a feature that automatically creates an html frame file for your city of choice after you provide the city name and a location code on the updated Options page. The new options page input looks as follows:

Your city, country, and the AccuWeather location code are provided in the circled fields. This will generate a file called “frame2.html” that can be added to any page as a frame tile and the AccuWeather icon for your location will be shown.

The only catch is you need to obtain the location code for your city. To do this, open www.accuweather.com in a Chrome or Edge desktop browser, and enter your city in the upper right corner, and inspect the contents of the widget showing the weather as I am showing below.

In the inspection window, expand the wrap-content section and look for a div class=“column-1 clearfix” section. In that section look for the URL of the widget. Embedded in that URL will be the city name to use, the region name, and the location code you need. This is illustrated below for Dallas TX, USA.

So putting this all together for Dallas we have: City = dallas-tx, Region = us, Location Code = 351194 and the resulting AccuWeather widget on screen looks as expected:
image

One last catch - is the frame may not refresh, so you may need to close the browser and reload it to clear out the cache. I’m working on a fix for this.

[EDIT] I fixed this using a get variable added to the src. I will post later. Also working on trying to automate all of the steps above.

1 Like