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

External Compliments list limitations and randomness

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 2 Posters 4.6k 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.
  • A Offline
    Anhalter42 @RE_Magic_Mirror
    last edited by May 17, 2017, 6:59 PM

    @RE_Magic_Mirror If you don’t use ‘anytime’ or any of the weather-based options, then this problem indeed doesn’t apply to you. However, it’s not much effort to make, so I suggest you test using the develop branch anyway.

    The statement you quoted just means, that you can switch to the develop branch by navigating into the MagicMirror main directory and then using the command git checkout develop (and git pull).

    Have you applied statistical hypothesis tests? Human brains (=intuition) are bad at estimating probabilities, it might be just correct as it is?! I’ve used a file with around 15 compliments and for me it seems to work fine. I can’t think of a reason, why the probability distribution should change with numbers of entries…

    R 1 Reply Last reply May 17, 2017, 8:53 PM Reply Quote 0
    • R Offline
      RE_Magic_Mirror @Anhalter42
      last edited by May 17, 2017, 8:53 PM

      @Anhalter42 I knew this guy and he was having a problem with git checkout develop because when he did that it said error: your local changes to compliments.js would be overwritten and then it said Aborting.

      A 1 Reply Last reply May 18, 2017, 1:13 PM Reply Quote 0
      • A Offline
        Anhalter42 @RE_Magic_Mirror
        last edited by May 18, 2017, 1:13 PM

        @RE_Magic_Mirror “this guy” probably made some changes to the compliments.js file. If you didn’t do any changes to the source code itself, then changing branches (like updating MM) should be a piece of cake. You don’t lose anything by trying. Either it doesn’t work and doesn’t change anything (“aborting”) or you can change back at anytime (git checkout master, git pull).

        Btw, what do you mean by “seems to break it” when talking about the larger list?

        R 1 Reply Last reply May 18, 2017, 1:45 PM Reply Quote 0
        • R Offline
          RE_Magic_Mirror @Anhalter42
          last edited by May 18, 2017, 1:45 PM

          @Anhalter42 I think the only changes to the compliments.js would be the location of the remote file, I think there was just the issue because it automatically aborted git checkout master because of that error. But putting a stock compliments.js file in the directory and then git checkout master, get pull gave an already updated message.

          What I meant is I when i used the full size list it would only display the stock compliments but reduced list in the remote file work.

          I basically debugged the problem by adding compliments to the remote file in chunks until I was satisfied with the amount. It seems to be working now with about 115 compliments per morning, afternoon, evening. I think i am going to call that a victory and move on to the next project. PIR alexa and sound reactive led.

          Thank you for your help.

          A 1 Reply Last reply May 18, 2017, 2:25 PM Reply Quote 0
          • A Offline
            Anhalter42 @RE_Magic_Mirror
            last edited by May 18, 2017, 2:25 PM

            @RE_Magic_Mirror maybe there was a comma missing somewhere in the large amount of lines (sometimes not easy to spot). Good to hear you got it to work properly.

            One more note: you should never need to do changes to compliments.js (or any other source code file). Like for (nearly) every module, it should be sufficient to change the config file (and sometimes extra remote files like for example the compliments file). In particular, the location of the external compliments file should be defined in the config file.

            1 Reply Last reply Reply Quote 1
            • R Offline
              RE_Magic_Mirror
              last edited by May 22, 2017, 3:10 PM

              @Anhalter42 one thing that has come up, now at the top center of the MM screen a notification stating that there is a magicmirror update and I am 12 comments behind on the develop branch. What do I need to do to either stay updated or should i just (git checkout master, git pull)?

              A 1 Reply Last reply May 22, 2017, 11:21 PM Reply Quote 0
              • A Offline
                Anhalter42 @RE_Magic_Mirror
                last edited by May 22, 2017, 11:21 PM

                @RE_Magic_Mirror Well…it depends.

                • If switching to develop branch fixed your problem, then you want to stay at develop until the changes are merged into the master branch. Until then, you can either update (see https://github.com/MichMich/MagicMirror#updating-your-magicmirror) or decide to ignore updates. If you don’t want to see the notification, you have to disable the update notification module.
                • If it did not help with your problem, then you are usually better off using the master branch, so I would suggest to switch back to master.
                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  8/10
                  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