Comments (7)
I'm going to close this as not going to fix/upstream issue.
If your device can't handle it, disable the animation.
from weather-card.
There is no heavy code in this card, and the animation is just css, nothing heavy. I don't think the CPU is from this card.
But you can disable the animation by setting the icons
option to a path with static icons. https://github.com/bramkragten/weather-card/tree/master/icons/static
from weather-card.
I can confirm this card might cause some CPU stress, probably the way the browser handles the animations.
I've created a test view just for it, and I can hear the CPU fan going up while displaying it and going silent when removed from the UI, and I'm running a Core i7.
Further investigation shows ~20% increase in CPU usage and ~20°C in temperature.
Disabling the animations as suggested by @bramkragten solves the issue, but you need to be running the local script.
from weather-card.
What browser do you use? CSS animations should be very resource-friendly. Maybe your browser/OS/... doesn't support hardware acceleration or something?
from weather-card.
oh sorry forgot to mention, Google Chrome, latest release.
from weather-card.
I get similar performance issues with the mobile app when using this integration. Very noticeable on my older Samsung Galaxy Tab A6 (2017).
from weather-card.
I have just found I have the same issue.
Using rasberry pi (latest OS and Chromium) as touch screen browser (HA runs on different platform).
When the weather card is enabled the CPU usage is ~190% and PI core temperature easily reaches 65-70C and rising (with big heatsink):
When the weather card is disabled (nothing else changed) CPU usage is <5% (chromium is showing 0%) and PI core temperature drops to ~50C (very fast):
Tested it also on my Windows 10 desktop with latest chrome and also saw jump of 30% in CPU usage when weather card was enabled. Tried it on EDGE browser and also saw 40% jump in CU usage.
from weather-card.
Related Issues (20)
- Entity not available: openweathermap
- [FR] Daily / Hourly forecast HOT 5
- [BUG] Card doesn't support new weather entitles without forecast attributes HOT 3
- Ability to show every other hour in hourly forest
- Dark mode
- [Feature Request] Make weather.com entity data compatible with Card HOT 4
- Add tap_action
- DWD weather forecast doesnt show up HOT 17
- Uncaught error from Firefox 122.0 on Windows 10 Error: Failed to execute 'define' on 'CustomElementRegistry'
- My custom wheater card stopped working in HA 2024.4 HOT 1
- Does not show the forecast in HA 2024.4 HOT 23
- Not showing forecast since update 2024.4 HOT 1
- Card stopped working with Environment Canada HOT 5
- Hourly forecast not displayed HOT 12
- "forecast: true" not working anymore for `weather.openweathermap` HOT 1
- Chinese Weekday Alignment
- impossible to have the 5 day forecast HOT 17
- Show only one icon HOT 1
- configuration errors detected
- Forecast not showing HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weather-card.