Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU consumption - Feature request: configurable polling time #22

Open
ramack opened this issue Jul 13, 2023 · 1 comment
Open

CPU consumption - Feature request: configurable polling time #22

ramack opened this issue Jul 13, 2023 · 1 comment

Comments

@ramack
Copy link
Contributor

ramack commented Jul 13, 2023

May I propose to make the polling time a configuration option?

I recognized a high CPU load (around 15-20%) by the shelly-1pm driver which is really an issue in my beaglebone base VenusOS, taking care of also 4 BMSs with the serial-driver.

It looks like the driver is polling 4 times per second and in my setup the shelly data is really low priority compared to the batteries, which I poll only every 5 seconds to keep the system up, so I'd appreciate if I could reduce the CPU load by increasing the poll interval for the shelly.

As a default value I would even propose to go for 1 second...

@emuman049
Copy link

Makes sense. For now, you could increase the value in line 64 to 1000 or more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants