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

MagicMirror v2.1.0 Update error

Scheduled Pinned Locked Moved Solved Troubleshooting
31 Posts 12 Posters 23.4k Views 12 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.
  • Y Offline
    yawns Moderator @schlachtkreuzer6
    last edited by Jan 2, 2017, 7:06 PM

    @schlachtkreuzer6 said in MagicMirror v2.1.0 Update error:

    @yawns so how do i change the comments if i should´t change the comments.js ? ^^

    I guess you are talking about compliments.js ?
    The readme clearly states how to add own compliments: https://github.com/MichMich/MagicMirror/blob/master/modules/default/compliments/README.md

    S 1 Reply Last reply Jan 2, 2017, 7:36 PM Reply Quote 0
    • S Offline
      schlachtkreuzer6 @yawns
      last edited by Jan 2, 2017, 7:36 PM

      @yawns oh sorry i mean the compliments… i don´t know why i wrote comments (maybe i need more coffee!)

      but if i want the default compliments to be in german, what do i need to change? That the git pull is working?

      Y S 2 Replies Last reply Jan 2, 2017, 7:54 PM Reply Quote 0
      • Y Offline
        yawns Moderator @schlachtkreuzer6
        last edited by Jan 2, 2017, 7:54 PM

        @schlachtkreuzer6
        The same approach. Add whatever you want to add, but do not modify the JavaScript module files.
        Create a compliments file or add them to your config file.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Steff @schlachtkreuzer6
          last edited by Jan 2, 2017, 8:25 PM

          @schlachtkreuzer6
          After your question I understood what I personally had done wrong, so I lost my German compliments, still have to confess this to my 8 year old boy who wrote them. Please find here an example with German text how you could modify your local config.js to show German comments:

                      {
                              module: 'compliments',
                              position: 'lower_third',
          
                              config:
                              {
                              compliments:
                                 {
                                 "morning" : [
                                      "Du siehst aber gut aus heute !",
                                      "Gut geschlafen ?",
                                      "Moin, Moin...."
                                      ],
                                  "afternoon" : [
                                      "Ab Fussball spielen !",
                                      "Lass uns auf den Abend vorbereiten....",
                                      "Musik hören ?"
                                      ],
                                  "evening" : [
                                      "Einen Cocktail ?",
                                      "Wow, Du bist aber heiss heute...",
                                      "Wollen wir heute abend weggehen ?"
                                      ]
                                 }
                              }
                      },
          
          B 1 Reply Last reply Jan 2, 2017, 8:31 PM Reply Quote 0
          • B Offline
            bhepler Module Developer @Steff
            last edited by Jan 2, 2017, 8:31 PM

            @Steff Remove the " from around the array names (morning, afternoon, evening).

            compliments:
                         {
                         morning : [
                              "Du siehst aber gut aus heute !",
                              "Gut geschlafen ?",
                              "Moin, Moin...."
                               ],
                          afternoon : [
                             "Ab Fussball spielen !",
                             "Lass uns auf den Abend vorbereiten....",
                              "Musik hören ?"
                              ],
                          evening : [
                              "Einen Cocktail ?",
                              "Wow, Du bist aber heiss heute...",
                              "Wollen wir heute abend weggehen ?"
                              ]
                         }
                      }
            
            1 Reply Last reply Reply Quote 0
            • S Offline
              Steff
              last edited by Jan 2, 2017, 8:36 PM

              @bhepler
              Thanks for your hint.
              I know the doc does not show them. However I understood the documentation that I will need them for an external file. So I wanted to be prepared for the move to an external file. I tested it with them inside the config.js file and it worked. Do you see any specific reason to remove them ?

              B 1 Reply Last reply Jan 3, 2017, 1:34 AM Reply Quote 0
              • S Offline
                Steff
                last edited by Steff Jan 2, 2017, 9:08 PM Jan 2, 2017, 9:08 PM

                I did try to configure an external compliments.json file, however it seems that it is not interpreted, since I do get again the default compliments.
                The file is located within the config directory.
                My configuration:

                { module: 'compliments', position: 'lower_third', config: { remoteFile: 'compliments.json' } },

                Do you have a hint what might be wrong ?

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bhepler Module Developer @Steff
                  last edited by Jan 3, 2017, 1:34 AM

                  @Steff Due to my own incompetence when dealing with javascript, the external file needs to have quotes around the array names. If you are expanding the arrays within the config.js file, then you must remove the quotes from around the names.
                  So this would work in the config.js file:

                  evening : [
                          "Einen Cocktail ?",
                          "Wow, Du bist aber heiss heute...",
                          "Wollen wir heute abend weggehen ?"
                          ]
                  

                  and this should work in the external compliments file:

                  "evening" : [
                          "Einen Cocktail ?",
                          "Wow, Du bist aber heiss heute...",
                          "Wollen wir heute abend weggehen ?"
                           ]
                  

                  It’s a bug. But I’m a Java programmer, not a Javascript programmer. I don’t know how to fix it.

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    ostfilinchen
                    last edited by Jan 3, 2017, 4:56 AM

                    Hi all,

                    After update my MM and want to open the mm via http://ip:8080 i get a blank Black screen. It comes on Win10 and also Android with Chrome.

                    The Majorfailure is, the rpi stop working. So i can only disconnect the power and connect again.

                    Has anybody else this issue?

                    Regals
                    Daniel

                    L 1 Reply Last reply Jan 3, 2017, 10:04 AM Reply Quote 0
                    • L Offline
                      lolobyte @ostfilinchen
                      last edited by Jan 3, 2017, 10:04 AM

                      @ostfilinchen

                      No, not such a major issue with the pi.

                      Can you access your pi with ssh?

                      Take a look at

                      https://forum.magicmirror.builders/topic/1326/ipwhitelist-howto/

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        14/31
                        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