🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Alarms based on current time? M5Core2

    General
    2
    4
    5.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      babygirl1248
      last edited by

      Hello. I am working with the m5core2 and was really hoping there is a way to run alerts or functions based on the given time? I know the unit has an rtc im just not sure how to use it. Any recommendations or advice would be greatly apricated.

      A B 2 Replies Last reply Reply Quote 0
      • A
        AgreeDK @babygirl1248
        last edited by

        @babygirl1248 try look at this guide: https://randomnerdtutorials.com/esp32-timer-wake-up-deep-sleep/

        1 Reply Last reply Reply Quote 0
        • B
          babygirl1248 @babygirl1248
          last edited by

          @babygirl1248 said in Alarms based on current time? M5Core2:

          Hello. I am working with the m5core2 and was really hoping there is a way to run alerts or functions based on the given time? I know the unit has an rtc im just not sure how to use it. Any recommendations or advice would be greatly apricated.

          Thank you for that article, it did clue me into the rtc, however i need a way to run a function at like 7:30 and another at 15:00 and ive been playing with libraries all day with no luck

          A 1 Reply Last reply Reply Quote 0
          • A
            AgreeDK @babygirl1248
            last edited by

            @babygirl1248 i know you can write special code for the rtc, but have never try.
            Each time the esp32 is running, you can update the clock and after doing its job, calculate the time it should sleep to wake up at your selectede time and then make it sleep for that amount of sec.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post