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

'run_interval' does not change polling interval #96

Open
SuperMaximus1984 opened this issue Dec 8, 2022 · 2 comments
Open

'run_interval' does not change polling interval #96

SuperMaximus1984 opened this issue Dec 8, 2022 · 2 comments

Comments

@SuperMaximus1984
Copy link

Changing 'run_interval=120' to any other figure does not impact polling interval. It remains at default figure 30 seconds.
I need to make it 10 seconds. How?
Should I recreate containers, simple restart doesn't apply the new parameter.

@SuperMaximus1984
Copy link
Author

@ned-kelly , please help to sort this out. Thank you in advance!

@dev-null2019
Copy link

dev-null2019 commented Jul 6, 2023

Hello!
You can edit the last line in the file /opt/inverter-mqtt/entrypoint.sh inside the docker container.

watch -n 30 /opt/inverter-mqtt/mqtt-push.sh > /dev/null 2>&1

the lowest that works is 2 seconds

watch -n 2 /opt/inverter-mqtt/mqtt-push.sh > /dev/null 2>&1

With this I get updates around every 10s in Home Assistant - have to find out where the delay comes from. It is probably my mosquitto mqtt ...

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