Skip to content

scheduler question #6

Locked Answered by aaguiar10
rdyvptnm asked this question in Q&A
Sep 1, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The app updates every 30 minutes during the hours specified in the README / website (9am-4:30pm ET), but the data itself is 15 minutes delayed.

For the scheduler I entered time constraints that follow the APScheduler documentation . Normally 0-4 for crontab days is Sun-Thu but for this module it's Mon-Fri. As for the UTC timezone I've recently removed it to keep both the scheduler and options data consistent with one timezone "America/New_York" and resolve potential issues with daylight saving time. However, you are free to change it to the zone you'd like.

Some examples below:

# scheduler is triggered at time specified in timezone
sched.add_job(
    sensor,
    CronTrigger.from_crontab(
…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdyvptnm
Comment options

Answer selected by aaguiar10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants