Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED How can I add more time periods for MMM-compliments?

    Requests
    4
    20
    2532
    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
      sdetweil @DæmonEyes last edited by

      @dæmoneyes openweathermap… I do not know… sorry…

      DæmonEyes 1 Reply Last reply Reply Quote 0
      • DæmonEyes
        DæmonEyes @sdetweil last edited by

        @sdetweil hey no problem, it seems to be working fine, so I guess I shouldn’t worry about it.

        If I may ask one more question, should I do anything about the yellow warning ‘Electron Security Warning’?

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @DæmonEyes last edited by

          @dæmoneyes if your mirror was open to the internet, then I would say yes

          DæmonEyes 1 Reply Last reply Reply Quote -1
          • DæmonEyes
            DæmonEyes @sdetweil last edited by

            @sdetweil Hmm ok, besides weather and quote of the day, I’m not really connecting to the net for anything so I guess that’s fine.
            Thanks again for helping me solve this!

            1 Reply Last reply Reply Quote 0
            • S
              SaschaSP last edited by

              @DæmonEyes you only make changes in
              MagicMirror/modules/default/compliments/MMM-Compliments.js
              and of corse in the
              MagicMirror/config/config.js?

              Can your Post your changes here in the Forum?
              Here is a nice “HowTo” post a code into the Forum for better reading https://forum.magicmirror.builders/topic/4247/how-to-post-code-on-the-forum-for-absolute-beginners

              Thank you

              DæmonEyes 1 Reply Last reply Reply Quote 0
              • DæmonEyes
                DæmonEyes @SaschaSP last edited by

                @saschasp Actually I only had to make changes in the MMM-compliments.js and not the config.js
                I just had to make changes at those 3 places that I showed in the imgur link I had posted and it works great.
                sdetweil helped my find the missing comma that was causing the problem with the npm start dev prompt and now it works great.

                I now have 5 time periods and 3 compliments for each period. If I think of more compliments, I’ll probably add a 4th compliment for each period.

                1 Reply Last reply Reply Quote 0
                • DæmonEyes
                  DæmonEyes last edited by

                  Is it normal for the default modules to reset to factory settings when updating MM?
                  Just did the MM update to 2.7.1 and noticed my compliments module has reset to its original compliments and time periods.

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

                    yes, the default modules are part of the base… and will be reset… altho you should have been warned by git

                    if u did a git stash, then u can get those changes back

                    DæmonEyes 1 Reply Last reply Reply Quote 0
                    • DæmonEyes
                      DæmonEyes @sdetweil last edited by

                      @sdetweil Oh ok, I just did my first stash now.
                      So let’s say I had done a stash before I had updated; how would I retrieve it after updating?

                      (So I know what to do next time)

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sdetweil @DæmonEyes last edited by

                        @DæmonEyes git stash pop

                        i don’t know if you can pop one file at a time

                        (ps… google is your friend!)

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy