Fix support for weather providers without "Location" property (fixes NOAA weather add-on)#68
Fix support for weather providers without "Location" property (fixes NOAA weather add-on)#68ivanfitenko wants to merge 5 commits intovdb86:masterfrom
Conversation
* Remove dependency on "Location" property which is used and which is not nescessarily provided by weather add-ons
|
Hello! |
|
Thank you for clarification. Changes to non-default language files are removed now. |
| <setting id="cputemp" label="32266" type="bool" visible="eq(-13,true)" default="false"/> | ||
| <setting id="gputemp" label="32267" type="bool" visible="eq(-14,true)" default="false"/> | ||
| <setting id="hddtemp" label="32268" type="bool" visible="eq(-15,true)" default="false"/> | ||
| <setting id="fps" label="32269" type="bool" visible="eq(-15,true)" default="false"/> |
There was a problem hiding this comment.
There was a problem hiding this comment.
Oh, that's a really nasty error, sorry! Fixed in commit #ad44e24
|
Except for the above comment, we've also got a problem with weather icon: So the setting visibility is dependent on weather conditions being enabled, and yet displaying is dependent on user enabling the temperature. I personally like how currently the screensaver shows 28C - Mostly cloudy Before you do any more work, let me think if I'm ok with the current change or not. |
Until recently, I was using "Multi Weather" add-on with Kodi, and it was perfectly compatible with digitalclock screensaver. However, with Yahoo closing API access for new users, "Multi Weather" add-on became less useful out or the box, and was even marked as broken in Kodi's repo, so I had to switch to NOAA weather add-on. That, unfortunately, broke the screensaver, and the weather info was not shown anymore.
The issue appears to be caused by digitalclock plugin using "Weather.Location" property as an "umbrella validator" for data provided by weather add-on. This property is not provided by NOAA plugin, and it is not exposed by digitalclock plugin anyway, so with this PR I suggest to switch to explicitly validating the data that is going to be displayed, i.e. Weather.Temperature and Weather.Conditions .
Implementation notes: