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

Not an issue but I need help to trigger programmaticaly an update #21

Open
sstraus opened this issue Nov 17, 2024 · 1 comment
Open

Comments

@sstraus
Copy link

sstraus commented Nov 17, 2024

Hi Loren, is there a way to programmatically trigger an update? I'm checking the timestamp of many temperature sensors and if it's older than 1 day, I want to reset the temperature and trigger an update to have the value reflected in all readers. Is this possible?

@lorenwest
Copy link
Owner

There's no API for pushing an update for a value that hasn't changed. The simplest thing would be to set up an interval timer to change temperature by a fraction on every interval. Not enough to significantly change the value of temperature, but just enough that it's different from the current state to trigger an update.

As an open source project the other possibilities are limitless.

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