MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    [Coding] update time from every 1 second to scheduled time

    Scheduled Pinned Locked Moved Development
    21 Posts 2 Posters 3.4k Views 2 Watching
    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.
    • K Offline
      kent79 @sdetweil
      last edited by

      @sdetweil

      I have tested again. But it is still not up to date while past 0:00 :(

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @kent79
        last edited by

        @kent79 did u edit the code and change the constant back?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kent79 @sdetweil
          last edited by

          @sdetweil

          of course. I have still no idea

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @kent79
            last edited by

            @kent79 if you edit the constant so it is 5 minutes from now, does it trigger?

            the fetch will still get today’s time

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 2 Replies Last reply Reply Quote 0
            • K Offline
              kent79 @sdetweil
              last edited by sdetweil

              @sdetweil

              I find out line 41 coding is wrong, the correct value is “MS_in_day = 10006060*24”. I have tested and work fine now. Thanks.

              Orginal:
              let MS_in_day =

              20*60*60*1000+8*60*1000  //24*60*60*1000;
              

              New:

              let MS_in_day = 1000*60*60*24;
              
              S 1 Reply Last reply Reply Quote 0
              • K Offline
                kent79 @sdetweil
                last edited by

                @sdetweil

                1.png

                Combined the lunar script to default clock module. It looks great. Thank you again for your great help. :)

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @kent79
                  last edited by

                  @kent79 correct . I told you that I had changed the constant to test trigger
                  and that you had to change it back

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 2 / 3
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy