🤖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

    Scheduled Pinned Locked Moved General
    4 Posts 2 Posters 7.0k Views
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post