MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

compliments updateIntervall not working



  • Hi,

    I really like the idea of the mirror making compliments to the one in front of it (and my wife and all other female visitors like this too 🙂 )
    But with the standard update intervall it changes way to fast for my liking. I tried to change this, but it didn’t had any effekt. Maybe someone here can help me out.

                    {
                            module: "compliments",
                            position: "lower_third",
                            updateInterval: 600000,
                            config: {
                                       compliments: {
                                       anytime: [
                                       "Hallo"
                                       ],
                                       morning: [
                                       "Guten Morgen!",
                                       "Hab einen schönen Tag!",
                                       "Hast du gut geschlafen?"
                                       ],
                                       afternoon: [
                                       "Du siehst toll aus!"
                                           ],
                                       evening: [
                                       "Du siehst klasse aus!"
                                       ]
                                 }
                            }
                    },
    

  • Project Sponsor Module Developer

    @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.



  • @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


  • Project Sponsor Module Developer

    @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



  • @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!"
                                    ]
                                    }
                            }
                    },
    

  • Project Sponsor Module Developer

    … 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" 
                                           ],                       
                                         }
    	                  },```

  • Project Sponsor Module Developer

    @cowboysdude

    Oh good catch. I didn’t even see that. 👍



  • thank you guys… you are totaly right.


Log in to reply