• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-compliment showing evening compliment anytime

Scheduled Pinned Locked Moved Solved Troubleshooting
24 Posts 2 Posters 4.8k 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.
  • S Offline
    selyjohns
    last edited by Dec 2, 2021, 9:17 PM

    Hi,

    I’ve a problem with MMM-compliment that showing evening compliment at anytime…

    The config is correct.
    I’ve adding hour configuration to be sure with morningStartTime, morningEndTime, afternoonStartTime and afternoonEndTime but problem persist…my MM say good night on morning…

    The date/time of my rpi3 is correct…any idea ?

    Thank you

    S 1 Reply Last reply Dec 2, 2021, 10:00 PM Reply Quote 0
    • S Offline
      sdetweil @selyjohns
      last edited by Dec 2, 2021, 10:00 PM

      @selyjohns did u look at any issues in the module github , issues tab?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Dec 3, 2021, 1:49 PM Reply Quote 0
      • S Offline
        selyjohns @sdetweil
        last edited by Dec 3, 2021, 1:49 PM

        @sdetweil No, nothing…

                        {
                                module: 'compliments',
                                position: 'lower_third',
                                config: {
                                        morningStartTime:3,
                                        morningEndTime:10,
                                        afternoonStartTime:13,
                                        afternoonEndTime:18,
                                        remoteFile: 'compliments.json'
                                        }
                        },
        

        compliments.json is stored in MagicMirror/modules/default/compliments/ :) This part is good.

        S 1 Reply Last reply Dec 3, 2021, 2:08 PM Reply Quote 0
        • S Offline
          sdetweil @selyjohns
          last edited by Dec 3, 2021, 2:08 PM

          @selyjohns ok, one thing

          MMM-compliment means some external additional module

          module: ‘compliments’,

          means the one shipped with MagicMirror…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Dec 3, 2021, 2:17 PM Reply Quote 0
          • S Offline
            selyjohns @sdetweil
            last edited by Dec 3, 2021, 2:17 PM

            @sdetweil said in MMM-compliment showing evening compliment anytime:

            @selyjohns ok, one thing
            MMM-compliment means some external additional module
            module: ‘compliments’,
            means the one shipped with MagicMirror…

            Oh OK, not evident.
            I speak about the module ‘compliments’, integrated with MM in default folder :)

            S 1 Reply Last reply Dec 3, 2021, 2:25 PM Reply Quote 0
            • S Offline
              sdetweil @selyjohns
              last edited by Dec 3, 2021, 2:25 PM

              @selyjohns well, you have a gap

                                              morningEndTime:10,
                                              afternoonStartTime:13,
              

              can’t have a gap

              else it the same as ANY OTHER time but morning or afternoon…

              so 10:01->>> 12:59 OR 18:01 ->>>> 02:59

              note the defaults are

              		morningStartTime: 3,
              		morningEndTime: 12,
              		afternoonStartTime: 12,
              		afternoonEndTime: 17,
              

              morning 3-12, afternoon 12-17, rest 17-3

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Dec 3, 2021, 2:55 PM Reply Quote 0
              • S Offline
                selyjohns @sdetweil
                last edited by Dec 3, 2021, 2:55 PM

                @sdetweil Ok, but i’ve added this configuration because i had the problem with default configuration.
                I can delete it. Normally we don’t need this, right ?

                S 1 Reply Last reply Dec 3, 2021, 2:57 PM Reply Quote 0
                • S Offline
                  sdetweil @selyjohns
                  last edited by Dec 3, 2021, 2:57 PM

                  @selyjohns if u don’t need a different time set, then you would use the default…

                  all I was saying is that you have a gap in the time, and the code design demands no gap.

                  the code has
                  morning
                  afternoon
                  everything else

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Dec 3, 2021, 3:04 PM Reply Quote 0
                  • S Offline
                    selyjohns @sdetweil
                    last edited by Dec 3, 2021, 3:04 PM

                    @sdetweil Ok thank you.
                    Trying with no specific configuration -> MM say “goodnight” or “good evening” but it’s only 4 PM
                    Trying with specifig configuration with no gap, same result :(

                                    {
                                            module: 'compliments',
                                            position: 'lower_third',
                                            config: {
                                                    morningStartTime:3,
                                                    morningEndTime:12,
                                                    afternoonStartTime:12,
                                                    afternoonEndTime:18,
                                                    remoteFile: 'compliments.json'
                                                    }
                                    },
                    
                    S 1 Reply Last reply Dec 3, 2021, 3:09 PM Reply Quote 0
                    • S Offline
                      sdetweil @selyjohns
                      last edited by Dec 3, 2021, 3:09 PM

                      @selyjohns what does the remotefile look like?

                      I just want the things to the left of :

                      default is this

                      		compliments: {
                      			anytime: ["Hey there sexy!"],
                      			morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"],
                      			afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"],
                      			evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"],
                      			"....-01-01": ["Happy new year!"]
                      		},
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Dec 3, 2021, 3:25 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        8/24
                        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