mlamberts78 / weather-chart-card

Custom weather card with charts.
MIT License
311 stars 38 forks source link

Show Time/Date High CPU Usage #234

Open c3r63ru5 opened 2 months ago

c3r63ru5 commented 2 months ago

Describe the bug I was trying to find the reason for an unresponsive dashboard (RaspBerry Pi 3) which was using 100% CPU (1 Core) constantly. I looked at CPU usage and tasks in WebDev and found a lot of instances pointing to the date function of the weather-chart-card. Before investigating any further, I disabled date and time and CPU usage went down to normal.

To Reproduce Steps to reproduce the behavior:

  1. Enable date and time in the card configuration, leave the rest on defaults.
  2. Reload the Frontend (I cleared cache and rebooted to make sure) and check CPU usage of the Browser
  3. Disable date and time and
  4. Repeat step 2

Expected behavior Normal CPU Usage

Desktop (please complete the following information):

Additional context Not sure if that makes a difference have not tested any further to isolate the issue but I am using card-mod and other custom components on the same dashboard that might make a difference.