Closed kubawolanin closed 7 years ago
Excellent work. This is a pleasant surprise. I can't wait to see this develop.
Ah, the obligatory weather widget :) Cool! - provided it doesn't leave a huge footprint on the codebase of course ;) How do you manage the icons?
Footprint? Same as other widgets I suppose. Icons are stored in separate svg files.
Ok cool. :)
I actually think the weather icons would be good candidates for building a proper ESH IconProvider (code), since they would be a scoped set with well-known names (and I realise this contrasts with those built-in user selectable backdrops, but the use case is different here).
You could even have an icon set picker populated with the /rest/iconsets
API endpoint result, letting users select their own weather iconset if they happen to have several registered. :)
The way I'm implementing it is slightly different, as I'm using animated climacons icon set and map each one of them to the corresponding "Condition" items value. Animation is based on css class inside svg elements. Maybe ability to change icons is a benefit - I'm not sure if I'd use it, though :) We may think of it in the future - right now I'd like to deliver basic functionality.
Cheers!
Wow, those animated icons certainly look nice! I checked the license and while attribution isn't required, a mention in the about.html is in order. Curious what you'll come up with!
Its already working? I downloaded the last version from habpanel and cannot see the weather widget.
I would love to use it as well. Where could I get it please?
I was pretty busy with my daily tasks lastly, but I'm back on the road. Yesterday I've merged latest and greatest HABPanel to my repo so I'm able to continue working on that widget. I will submit my pull request in upcoming week.
Implemented in #72
Hi Can I just donwload the weather widget code somewhere?
Hey @NCO3 (and pinging @korg1000 @neohusky too) I can finally answer - yes 🙂 I declined my previous pull request.
Here's my custom widget utilizing @ghys's animated iconset: https://community.openhab.org/t/custom-widget-current-weather/18216
I think we can close this issue now. Thank you, Kuba
Awesome. I'll try it out soon.
So I'm working on the weather widget for HABPanel :)
Right now I'm working on cleaning up the code (I have like 9 items to update from openHAB. It needs some a factory pattern of some sort to get it right). I also need to add more configurable options (like icon animation, maybe different layouts).
Let me know what you think!
I'm submitting this issue to start a discussion. Later, when my code will be polished and working, I'll post a pull request.
Cheers!