You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple cars, so would like to call this with a cron job, once for each car. You could handle this case by checking if the ONSTAR_REFRESH environment variable is 0 (or -1) and instead of sleeping, just exit, eg:
if (onstarConfig.refreshInterval >= 0)
logger.info('Updates complete, sleeping.');
else
return process.exit();
The text was updated successfully, but these errors were encountered:
I have multiple cars, so would like to call this with a cron job, once for each car. You could handle this case by checking if the
ONSTAR_REFRESH
environment variable is 0 (or -1) and instead of sleeping, just exit, eg:The text was updated successfully, but these errors were encountered: