Open ivanfitenko opened 3 months ago
Hello! Thank you for the pull request. There's no need to change all translations. only the default English needs to have strings added/changed - then the bot pulls that to the translation platform and updates everything else.
Thank you for clarification. Changes to non-default language files are removed now.
Except for the above comment, we've also got a problem with weather icon: The weather icon is shown in the screensaver only when the temperature is enabled and the user has selected the weather icon pack in the settings. In order to select the weather icon pack from the settings, the user needs to enable weather conditions.
So the setting visibility is dependent on weather conditions being enabled, and yet displaying is dependent on user enabling the temperature. We can easily make the change in the settings to either connect it to temperature or to make it completely independent. But the issue remains with the code itself where the display of the icon is connected to the temperature.
I personally like how currently the screensaver shows 28C - Mostly cloudy When they are shown separately it's less ideal for me.
Before you do any more work, let me think if I'm ok with the current change or not. I know we could introduce a new setting which would allow users to have this info separate or together - but I'm trying not to overcomplicate the settings - especially the additional info tab which already has a bunch of things.
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: