Python Forum
Running an action only between certain times
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running an action only between certain times
#5
(Mar-15-2023, 06:04 AM)alexbca Wrote: I'm still seeing the function run outside of the hours 2am-7am.
Could you replace
print("LightsActivated")
by
print("LightsActivated", now.hour, now.minute, now.second, now)
and post the output here to see it fail. I find it hard to believe.
alexbca likes this post
Reply


Messages In This Thread
RE: Running an action only between certain times - by Gribouillis - Mar-15-2023, 07:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pixel color and action Sartre 4 2,201 Apr-13-2023, 03:26 AM
Last Post: Sartre
  Checkbox itens with a button to run action Woogmoog 3 1,001 Dec-19-2022, 11:54 AM
Last Post: Woogmoog
Question Running an action only if time condition is met alexbca 5 1,397 Oct-27-2022, 02:15 PM
Last Post: alexbca
  Code running many times nad not just one? korenron 4 1,419 Jul-24-2022, 08:12 AM
Last Post: korenron
  rtmidi problem after running the code x times philipbergwerf 1 2,472 Apr-04-2021, 07:07 PM
Last Post: philipbergwerf
  Running Ajax multiple times on button click? CaptainCsaba 1 2,166 Mar-11-2020, 02:17 PM
Last Post: CaptainCsaba
  Have an amount of time to perform and action CookieGamez2018 1 2,992 Dec-21-2018, 07:12 AM
Last Post: Gribouillis
  action on MQTT while long loop is running runboy 4 6,155 Oct-05-2018, 11:57 PM
Last Post: runboy
  Hourly action resetter with threading? alex36540 3 3,379 Jan-10-2018, 07:13 AM
Last Post: Gribouillis
  recursive action elhetch 6 5,365 Jun-06-2017, 04:23 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020