-
Notifications
You must be signed in to change notification settings - Fork 971
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
How can I setup a schedule for exact minute of every hour? #144
Comments
I have a similar requirement. |
+1 |
@mickey9801 This is really simple. The whole schedule package implementation is sequential. And, you could solve the problem like this. while True: What this will do is it will run the code every 15, 30, 45 minutes. |
Some work on that happening here: #116 |
@fauzanm You would only need to schedule |
Exactly, so the @fauzanbaigm solution wouldn't work correctly, i.e. it wouldn't run at exactly e.g. 12:30, but it would run at e.g. 12:38. I need this functionality as well. |
I have setup a raspberry pi for read temperature and humidity from sensor and I would like it to publish those data to a MQTT broker at 00,15,30,45 minute of every hour, like weather report of observatory . How can I setup this schedule?
I have setup a schedule like this:
schedule.every(15).minutes.do(read_n_publish)
but it can only run the job every 15 minute from the time I start run the program.The text was updated successfully, but these errors were encountered: