-
Notifications
You must be signed in to change notification settings - Fork 88.7k
CHAD-5315 Update SmartWeather Station Tile DTH #38387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5f893d5
to
e458bd8
Compare
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)) | ||
There was a problem hiding this comment.
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.
There was a problem hiding this 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
…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
Update SmartWeather Station Tile to ensure backwards compatibility with SmartApps and compatibility with the new client.