MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Snille
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 5
    • Topics 17
    • Posts 267
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: How to update.

      @izanbard Hello, added a restart of the mirror (via pm2) if an npm install has been done and also added “–production” to the npm install command. Sometimes the module-developer have lot’s of extra stuff added in the package list just for developing. :)
      I’m currently now running this script via CRON every night. :)

      #!/usr/bin/env bash
      
      updated=false
      
      cd /home/pi/MagicMirror
      echo "Checking for MagicMirror updates."
      git fetch
      if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]
      then
          echo "Found, updating..."
          git pull
          npm install
          updated=true
          echo "Update done."
      else
          echo "No update needed."
      fi
      echo ""
      
      cd modules
      
      for directory in *; do
          if [[ -d ${directory} && ${directory} != "node_modules" && ${directory} != "default" ]]; then
              echo "Checking for ${directory} updates."
              cd ${directory}
              git fetch
              if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then
                  echo "Found, updating ${directory}..."
                  git pull
                  if [[ -e "package.json" && -f "package.json" ]]; then
                      echo "package.joson changed for ${directory}, installing..."
                      npm install --production 
                      updated=true
                      echo "Update done."
                  fi
              else
                  echo "No update needed."
              fi
              echo ""
              cd ..
          fi
      done
      
      if $updated; then
          echo "Restart of MM needed, restarting now."
          pm2 restart mm
      fi
      echo "All done. :)"
      
      posted in Tutorials
      SnilleS
      Snille
    • RE: MMM-ModuleScheduler - Module Schedules and Notifications

      @ianperrin I have sent a PR to you adding an option to solve the problem. :)

      posted in System
      SnilleS
      Snille
    • RE: When weather updates module unhides...

      @Ralf Ok, this was (infact still is) my case:

      1. I have setup “profiles” showing different modules using MMM-ProfileSwitcher (triggerd by either MMM-Facial-Recognition, MMM-TouchNavigation or MMM-ModuleScheduler).
      2. When a “profile” is activated only the modules in that profile is suppose to be shown.

      For the moment the default “currentweather” and “weatherforecast” is set to show in only one of my defined profiles. However, when a profile that do not have (any one of) those modules is activated, the weather modules are hidden until they “update”, then they show them self even if the profile currently selected should not show them.

      Then I started to “lock” modules with the ProfileSwitcher and that solved the “popup-on-update-problem”, but that resulted in modules not showing up when triggered by ModulesScheduler instead. So I disabled locking again.

      Update: Forgot that I also have disabled the “schedule” for switching profiles. The reason being that if I have specified a profile to be shown at a specific time frame, I can not use the TouchNavigation to switch to another profile at any time because all the modules are locked by the Scheduler…

      So, for the moment, I still have the problem. However it’s only those two modules behaving this way so far. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: MMM-MovieInfo

      Hi there! Would there be a possibility to have a config option to set the number of movies to show (as a configurable table)?
      Also, I read that they now support TV-Shows as well… It would be cool to get that integrated as well :)

      Ex something like this would be cool…

      config: {
        columns: 2,
        titles: 6,
        type: {
          "tv": 1,
         "movie": 1,
        }
        discover: {
          "sort_by": "vote_average.desc"
        }
      }
      

      That would give a table that holds 2 columns with 6 rows altering TV-Shows and Movies, descending by votes… 8)

      posted in Entertainment
      SnilleS
      Snille
    • RE: Sonos Module

      @Atreo Hehe, yes. But let’s keep it to English anyway. :)
      You are using my “fork” of the “MMM-Sonos” right, if not some of the config-stuff will not work. :)
      This is my fork: https://github.com/Snille/MMM-Sonos

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Sonos Module

      @Atreo This is my “MMM-Sonos” config part…

      		{
      			module: "MMM-Sonos",
      			header: "Spelas på SONOS",
      			position: "top_center",
      			classes: "",
      			config: {
      				// The API is not om my RPi. It's on another server...
      				apiBase: "http://ip-of-the-api",
      				apiPort: 5005,
      				showAlbumArt: true,
      				showRoomName: true,
      				showPausedZone: false,
      				showStoppedRoom: false,
      				preRoomText: 'Rum: ',
      				preArtistText: 'Artist: ',
      				preTrackText: 'Spår: ',
      				preTypeText: 'Källa: ',
      				animationSpeed: 1000,
      				apiEndpoint: "zones",
      				exclude: ["Living-Room-SUB"]
      			}
      		},
      
      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Sonos Module

      @Atreo Hmm… Then it should be all good. Can you post your “MMM-Sonos” part of the config?

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Sonos Module

      @Atreo Do you get the “zones” up if you do: http://192.168.0.79:5005/zones ?
      You should get a list of all the zones and stuff. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Sonos Module

      Hi @Atreo do you have the http-sonos-api installed on your mirror or on another device?
      I had problems before I ran on a raspberry Pi when I ran the mirror in Server mode. Don’t know why though. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: MMM-doomsDay - The countdown module,

      @broberg I know, that’s why I only made it configurable. :) Then ppl don’t have to change your code to set their own message. :)

      posted in Utilities
      SnilleS
      Snille
    • 1
    • 2
    • 17
    • 18
    • 19
    • 20
    • 21
    • 26
    • 27
    • 19 / 27