[OWM] Store / cache icon files in a local folder and minor code improvements #6533
[OWM] Store / cache icon files in a local folder and minor code improvements #6533
Conversation
Hm, I assume the sunrise/sunset information is no "sensor" weather data at all, but purely calculated by OWM, right? If so, it completely duplicates the functionality of the Astro binding, which already provides all this (and much more). I would thus suggest to not duplicate such a feature here (especially with the all the configuration like offset/earliest/latest, which clearly targets shutter automation). |
No, I do not think so. The OWM documentation does not tell anything about that. I assume the values are calculated. It is true that I copied a lot of functionality from the Astro binding. Adding the event handling here provides no general advantages. I am personally interested only in the sunrise/sunset triggers of the Astro binding thus - for my own sake - I can avoid using the Astro binding and would not loose any of the features. |
That's a very weak argument for duplicating a lot of code - I'd definitely vote for removing it from this binding. |
Yes, I agree. I will remove it. |
I removed the event handling. |
Hm, I was actually talking about the "the sunrise/sunset information", i.e. the channels themselves - there shouldn't be any good reason to use them instead of the Astro binding... |
- Removed UTF-8 constant - Store / cache image files in a local folder - Reduced discovery timeout - Added log output in case the daily forecast is not available Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Alright, I removed them completely. |
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.
Thanks!
Signed-off-by: Christoph Weitkamp github@christophweitkamp.de