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 264
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: All of a sudden SSH is really lagging/slow.

      @Mar If you get in to SSH, check if you have a HUGE file called “core” in your MagicMirror directory. If you do, delete it. I have had the same issue, EVERYTHING get’s slow and eventually you cant do anything. I noticed the file on my second install (again) and deleted it before it died. Now I’m trying to find how this file get’s created. It should not be there.

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      @strawberry-3.141 Oh! :) That’s why… Thank you.

      posted in System
      SnilleS
      Snille
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      @strawberry-3.141 Hmm… Can’t get it to work… Even deleted the “node_modules” before doing npm install in the mm dir, then also went in to the “vendor” dir and did the same… Still no pictures in the remote… However, I do get the “fontawesome” icons on other modules (my own included) so the pictures are there. :)

      posted in System
      SnilleS
      Snille
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      @Jopyth I have lost the “Back” button on my remote see pic…
      Update: Just realized I have actually lost all the “icons”… :)
      I’m on the “development” branch (both on the mirror and on your module).

      I have recently reinstalled my mirror (today actually) but before that it worked…
      Have I missed something?
      0_1490124914596_backmissing.jpg

      posted in System
      SnilleS
      Snille
    • RE: ipWhitelist HowTo

      @mochman Will do, thank you, no idea what changed the behavior. :) But at least I have a totally fresh install now! :)

      posted in Tutorials
      SnilleS
      Snille
    • RE: ipWhitelist HowTo

      @mochman Hmm… Clearly I have missunderstood something. I thought this: “::ffff:10.0.0.1/120” was to allow my 10.0.0.x network to access, I have used that from the beginning and it has worked. But yesterday it stopped working. So I added as you suggested “10.0.0.1/24” and it works… So, Thank you! :)

      In the instructions in the first post, it’s suppose to be “::ffff:10.0.0.1/120” for a full C-Net. But… Not any more obviously. :)

      Thanks again! I’m all happy now!

      posted in Tutorials
      SnilleS
      Snille
    • RE: ipWhitelist HowTo

      Hi all, anybody else having trouble accessing the mirror remotely? I have reinstalled mm (development branch and nodejs v7.7.3), default config. only added allow access from my “lan”.
      The mirror shows up on the local screen, so it works.

      Mirrors IP: 10.0.0.112/24

      ipWhitelist: ["::ffff:10.0.0.1/120", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
      

      Still I get

      0|mm       | Access denied to IP address: 10.0.0.99
      

      In the log.

      My client IP: 10.0.0.99/24

      Just to be sure, here is my full config:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      	ipWhitelist: ["::ffff:10.0.0.1/120", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
      	language: "en",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check-o ",
      						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
      					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "New York",
      				locationID: "",  //ID from http://www.openweathermap.org
      				appid: "YOUR_OPENWEATHER_API_KEY"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "New York",
      				locationID: "5128581",  //ID from http://www.openweathermap.org
      				appid: "YOUR_OPENWEATHER_API_KEY"
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "New York Times",
      						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      Everything is default, no modules installed… What am I missing?!

      posted in Tutorials
      SnilleS
      Snille
    • 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
    • 1
    • 2
    • 16
    • 17
    • 18
    • 19
    • 20
    • 26
    • 27
    • 18 / 27