Comments (7)
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.
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.
Related Issues (20)
- Change colors font HOT 4
- Incorrect precipitation from Met Office Weather Integration HOT 1
- Vertical View [FR]
- Uncaught TypeError: css is not a function HOT 6
- v1.4.7 doesn't load HOT 8
- almost all versions except master won't load HOT 4
- not working HOT 18
- Icons do not load the first time on iPhone companion app HOT 1
- Versions 1.4.7 and 1.5.0 not tagged as releases HOT 3
- Night time icons not correctly loading
- Pressure is reported incorrectly when you click on the card HOT 1
- Feature Request: Ability to edit details HOT 1
- Time format does not follow Home assistant settings HOT 1
- Chrome and app crashes on some android devices
- Suggestion for better animated icons
- Units don't follow setting in HA HOT 2
- Project looks abandoned, last update was Sep 2, 2021 HOT 1
- Shows the same data for hourly and daily HOT 7
- Higher CPU Load by animated icons HOT 1
- Entity not available: openweathermap
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.