Animated weather icons: May I have your votes please

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Animated weather icons: May I have your votes please

Post by Lokonli »

As reported in another post the animated weather icons used in Dashticz result in quite some processor load.
whoami wrote: Saturday 27 November 2021 12:01
Further, I found a bug that leads to further increasing processor load over time.

The current animated weather icons within Dashticz make use of relatively old (?) technology (canvas block).

To reduce processor load two alternatives exist:
* SVG icons
* HTML/CSS

Examples of SVG icons:
https://bas.dev/projects/weather-icons
https://www.amcharts.com/free-animated- ... her-icons/

Examples of css/html based weather icons:
https://devsnap.me/css-weather-icons

For now, I think I will go for: https://bas.dev/projects/weather-icons
weathericons.jpg
weathericons.jpg (27.55 KiB) Viewed 1698 times
The picture above shows static, non-animated weather icons, because the forum doesn't support svg files. If you want to see animated versions click on one of the links.

Please let me know your preference this week. This weekend I'll remove the current animated weather icons, and replace them with the alternative solution that is having most votes.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Animated weather icons: May I have your votes please

Post by EdwinK »

Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
madpatrick
Posts: 659
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Animated weather icons: May I have your votes please

Post by madpatrick »

looking good !
I'll also go for : https://bas.dev/projects/weather-icons

Does it need any change in the blocks ?
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
epost
Posts: 11
Joined: Sunday 27 December 2020 14:28
Target OS: -
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by epost »

Krenstik
Posts: 45
Joined: Saturday 13 June 2020 12:51
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Krenstik »

User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by HansieNL »

I like these icons: https://www.alessioatzeni.com/portfolio/meteocons/
Is it possible to have an option to use your own icons or make that things too complex?
Blah blah blah
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Lokonli »

Most votes for Bas.
First proto is working:
basmilius.jpg
basmilius.jpg (71.99 KiB) Viewed 1651 times
The icons are animated (but you can't see)

This are the line-icons. There is also set of filled icons.

I will check Alessio as well.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Lokonli »

HansieNL wrote: Monday 29 November 2021 22:02 I like these icons: https://www.alessioatzeni.com/portfolio/meteocons/
Is it possible to have an option to use your own icons or make that things too complex?
This are static icons, but they are easy to add. I'll do that as well.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Lokonli »

I've just released 3.8.7

There is a new block parameter for the weatherblock: icons

Set this to 'line', 'fill', 'static' or 'meteo'.
weather_icons.jpg
weather_icons.jpg (93.58 KiB) Viewed 1559 times
The top 3 icon sets in the picture are dynamic icons (but you can't see in the static picture above)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Animated weather icons: May I have your votes please

Post by EdwinK »

Like it
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Animated weather icons: May I have your votes please

Post by sammyke007 »

I like it a lot!
One request: is a static 'line' (with color) also an option please?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Lokonli »

sammyke007 wrote: Monday 06 December 2021 10:41 I like it a lot!
One request: is a static 'line' (with color) also an option please?
You have to change the svg files a little. I don't have plans to do that, but you can do it yourself.

Create a new folder: ./custom/weathericons/linestatic
Copy all files from ./img/weathericons/line to ./custom/weathericons/linestatic

set the weather block parameter 'icons' to 'linestatic'

Open the svg files in the linestatic folder, and remove the transform part.
As an example, for 01d.svg (rotating sum) remove the following part to make it static:

Code: Select all

<animateTransform attributeName="transform" dur="45s" from="0 32 32" repeatCount="indefinite" to="360 32 32" type="rotate"/>
You can also change colors if needed. The following part defines the color, which can be easily changed as well:

Code: Select all

stroke="#f59e0b"
Enjoy :)

If more people ask for the static line icons, I'll add them as predefined set.
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Animated weather icons: May I have your votes please

Post by jake »

I like it too.

The icons are quite a bit bigger than previous ones and therefore taking more real estate than is good for my layout. Can they be scaled through css? If so, how can this be done?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Lokonli »

jake wrote: Monday 06 December 2021 13:14 I like it too.

The icons are quite a bit bigger than previous ones and therefore taking more real estate than is good for my layout. Can they be scaled through css? If so, how can this be done?
See here for a temporarily fix:
viewtopic.php?p=283390#p283390

I'll make the icons somewhat smaller.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Animated weather icons: May I have your votes please

Post by sammyke007 »

Lokonli wrote: Monday 06 December 2021 12:24
sammyke007 wrote: Monday 06 December 2021 10:41 I like it a lot!
One request: is a static 'line' (with color) also an option please?
You have to change the svg files a little. I don't have plans to do that, but you can do it yourself.

Create a new folder: ./custom/weathericons/linestatic
Copy all files from ./img/weathericons/line to ./custom/weathericons/linestatic

set the weather block parameter 'icons' to 'linestatic'

Open the svg files in the linestatic folder, and remove the transform part.
As an example, for 01d.svg (rotating sum) remove the following part to make it static:

Code: Select all

<animateTransform attributeName="transform" dur="45s" from="0 32 32" repeatCount="indefinite" to="360 32 32" type="rotate"/>
You can also change colors if needed. The following part defines the color, which can be easily changed as well:

Code: Select all

stroke="#f59e0b"
Enjoy :)

If more people ask for the static line icons, I'll add them as predefined set.
Already on it, but I'll have to continue with the last files later this evening. If you like, I can merge it to your branch after testing?
User avatar
madpatrick
Posts: 659
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Animated weather icons: May I have your votes please

Post by madpatrick »

Lokonli wrote: Monday 06 December 2021 13:54
jake wrote: Monday 06 December 2021 13:14 I like it too.

The icons are quite a bit bigger than previous ones and therefore taking more real estate than is good for my layout. Can they be scaled through css? If so, how can this be done?
See here for a temporarily fix:
viewtopic.php?p=283390#p283390

I'll make the icons somewhat smaller.
I like this size. If you ask me it much better
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Animated weather icons: May I have your votes please

Post by Lokonli »

madpatrick wrote: Monday 06 December 2021 18:56
Lokonli wrote: Monday 06 December 2021 13:54
jake wrote: Monday 06 December 2021 13:14 I like it too.

The icons are quite a bit bigger than previous ones and therefore taking more real estate than is good for my layout. Can they be scaled through css? If so, how can this be done?
See here for a temporarily fix:
viewtopic.php?p=283390#p283390

I'll make the icons somewhat smaller.
I like this size. If you ask me it much better
The big ones or the small ones? (I'm talking about the icons now)
User avatar
madpatrick
Posts: 659
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Animated weather icons: May I have your votes please

Post by madpatrick »

Uhhhh. I think the big ones.
I didn’t change any setting, but did only the git update yesterday.
The icons were changed to the animated afterwards.
So, the default setting or default icons ?

How can i check this?
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
whoami
Posts: 73
Joined: Tuesday 31 March 2020 22:31
Target OS: -
Domoticz version:
Location: Dutch
Contact:

Re: Animated weather icons: May I have your votes please

Post by whoami »

Lokonli wrote: Monday 06 December 2021 12:24
sammyke007 wrote: Monday 06 December 2021 10:41 I like it a lot!
One request: is a static 'line' (with color) also an option please?
You have to change the svg files a little. I don't have plans to do that, but you can do it yourself.

Create a new folder: ./custom/weathericons/linestatic
Copy all files from ./img/weathericons/line to ./custom/weathericons/linestatic

set the weather block parameter 'icons' to 'linestatic'

Open the svg files in the linestatic folder, and remove the transform part.
As an example, for 01d.svg (rotating sum) remove the following part to make it static:

Code: Select all

<animateTransform attributeName="transform" dur="45s" from="0 32 32" repeatCount="indefinite" to="360 32 32" type="rotate"/>
You can also change colors if needed. The following part defines the color, which can be easily changed as well:

Code: Select all

stroke="#f59e0b"
Enjoy :)

If more people ask for the static line icons, I'll add them as predefined set.

Yes please, thank you for adjusting this.
Static coloured icons I would appreciate.

It still looks like the animated icons are still using a lot of cpu.
Do you see any improvements?
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Animated weather icons: May I have your votes please

Post by sammyke007 »

Yeah, I'm using an "older" Huawei Mediapad T5 and static is a lot better instead of moving. It keeps lagging. Old tab, I know, but good enough for Dashzticz.

You can pull the latest beta, it contains the 'linestatic' option since 7/12/21.
Last edited by sammyke007 on Sunday 12 December 2021 13:53, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest