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

Script doesn't seem to be polling per ONSTAR_REFRESH env var #136

Closed
darrendavid opened this issue Mar 7, 2024 · 2 comments
Closed

Script doesn't seem to be polling per ONSTAR_REFRESH env var #136

darrendavid opened this issue Mar 7, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@darrendavid
Copy link

I recently switched to this script from the original michaelwoods version. I have a vestigial ENV var from the original config of ONSTAR_REFRESH=1800000 to set the polling interval to 30m, however, the script is not polling at that interval. It polls once on launch and publishes updated values, then never polls Onstar again.

I don't see a mention of ONSTAR_REFRESH in the Readme, is this still a valid ENV var for setting the polling interval?

@BigThunderSR
Copy link
Owner

BigThunderSR commented Mar 7, 2024

Yes, that should be working. My Home Assistant add-on uses this code as well and both my cars refresh according to the value set via that parameter.

The default value in the code is 30 minutes, so you don't need to set that parameter unless you want to change it to something other than 30 minutes.

Could you please comment out that parameter from your config and see what happens?

Also, does your log not show any activity after 30 minutes or what exactly are you seeing in the logs to indicate that subsequent polls aren't taking place?

@darrendavid
Copy link
Author

I actually just switched to the HA Add-On version of the script (thank you, that's so clean!) so this is likely a moot point.

@BigThunderSR BigThunderSR added the question Further information is requested label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants