Skip to content

Conversation

dkirker
Copy link
Contributor

@dkirker dkirker commented Jul 24, 2020

Update SmartWeather Station Tile to ensure backwards compatibility with SmartApps and compatibility with the new client.

@dkirker dkirker force-pushed the CHAD-5315 branch 2 times, most recently from 5f893d5 to e458bd8 Compare October 29, 2020 08:37
@dkirker
Copy link
Contributor Author

dkirker commented Nov 3, 2020

I've tested this and this works with existing smartapps (backwards compatibility) and with the mobile client and plugin. I also discovered that when using with a PWS ID (I didn't previously have one to test with, but got one from the community -- thanks!) you can take the geo-coordinates from the PWS and pass them to the APIs and get the rest of the forecast. So, that eliminates the need for "-" for the measurements.

I'd like to get this in production next Tuesday, so if it doesn't seem like we can merge it this morning I'll rebase it to staging.

def tf = new java.text.SimpleDateFormat("h:mm a")
tf.setTimeZone(TimeZone.getTimeZone(loc.ianaTimeZone))
tf.setTimeZone(TimeZone.getTimeZone(loc?.ianaTimeZone))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If loc is null what will this code do? You added the null check but I'm wondering if we need to skip the whole line if loc is null.

Copy link
Contributor

@greens greens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will go to staging today

@greens greens merged commit a51e2b4 into SmartThingsCommunity:master Nov 3, 2020
shinasys pushed a commit to shinasys/SmartThingsPublic that referenced this pull request Apr 29, 2021
…38387)

* CHAD-5315 Update SmartWeather Station Tile DTH

* Update capabilities

* General logic updates, and better support for PWS forecast and conditions

* Update city name logic to account for i18n

* Update polling logic -- poll once every 3 hours, `update()` reschedules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants