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.

    compliments updateIntervall not working

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 3 Posters 2.0k Views 3 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @AnduriI
      last edited by

      @andurii

      Well, your config above is now set to 60 minutes. Are you saying that it still rotates every 30 seconds? (the default).

      Just as a test, would your try updateInterval: 60*60*1000, It really should be working as is.

      Create a working config
      How to add modules

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        AnduriI @Mykle1
        last edited by AnduriI

        @mykle1 yeah it is still updating every 30s now. I will test your value and report back.

        edit: btw it is set to 600 seconds => 10 minutes

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @AnduriI
          last edited by

          @andurii said in compliments updateIntervall not working:

          yeah it is still updating every 30s now. I will test your value and report back.
          edit: btw it is set to 600 seconds => 10 minutes

          My bad. 10 minutes it is. Duh!

          Have you modified the compliments module files in any way? Are you working with more than one config.js file? (I’ve done this) Sounds as if the module is not seeing the config changes

          Create a working config
          How to add modules

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            AnduriI @Mykle1
            last edited by

            @mykle1 still not working and changing every 30 seconds…
            I have not modified anything of the compliments files and am not using multiple configs (don’t actually know how to do that). I can add new compliments to the list and they are shown, so it’s not a general problem of not seeing the config. Seems more specific to the updateIntervall, as I tried different values without any changes in the mirror.

                            {
                                    module: "compliments",
                                    position: "lower_third",
                                    updateInterval: 5*60*1000,
                                    config: {
                                            compliments: {
                                            anytime: [
                                            "Hallo",
                                            "Guten Tag"
                                            ],
                                            morning: [
                                            "Guten Morgen!",
                                            "Hab einen schönen Tag!",
                                            "Hast du gut geschlafen?"
                                            ],
                                            afternoon: [
                                            "Du siehst toll aus!"
                                            ],
                                            evening: [
                                            "Du siehst klasse aus!"
                                            ]
                                            }
                                    }
                            },
            
            1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer
              last edited by cowboysdude

              … You have to do this way:
              Time format can be anyway 4 * 60 * 1000 or 60000 [60 seconds]

                                    ``` {
              	          disabled: false,
              		 module: "compliments",
              		position: "lower_third",
              		config: { 
                                  updateInterval: 60000,  
                                  compliments: { 
                                             anytime: [ 
                                                   "Hallo", 
                                                   "Guten Tag" 
                                                     ],                       
                                                   }
              	                  },```
              
              Mykle1M 1 Reply Last reply Reply Quote 1
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @cowboysdude
                last edited by

                @cowboysdude

                Oh good catch. I didn’t even see that. :thumbsup:

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AnduriI
                  last edited by

                  thank you guys… you are totaly right.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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