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.
    SnilleS Offline
    • Profile
    • Following 0
    • Followers 5
    • Topics 18
    • Posts 268
    • Groups 1

    Posts

    Recent Best Controversial
    • 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
    • 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
    • RE: MMM-doomsDay - The countdown module,

      Hi there! I just posted a PR to you on github, adding the “passed” text via the config. And also let the “toWhat” event to still be shown when the event has passed (makes more sense i think if you use the “passed” text.) :)

      posted in Utilities
      SnilleS
      Snille
    • MMM-Profilepicture - Add individual background pictures to your profiles.

      Description:

      A simple module to add a background picture to the selected profile. This module works well with the MMM-ProfileSwitcher module. Set the URL to the users picture, then set the class for each user on each instans of the module in your config.

      Screenshots:

      Janes Profile:
      Jane
      Johns Profile:
      John

      Download:

      [card:Snille/MMM-Profilepicture]


      Version 0.1

      • Initial version.
      posted in Utilities
      SnilleS
      Snille
    • RE: Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...

      Bonus for anyone who wounder why I wanted to do this…

      I’m a user of “Alexa” (Amazons Echo Dot). I have 6 dots in my house. I wanted to be able to interact with the mirror with Alexa. And, yes I know there are lot’s of modules and stuff out there for this. But I have tried and not been satisfied with different modules/solutions that I found.

      Now, It happens I already use a small software called “HA-Bridge” for controlling all kind of things using Alexa (for example all my lights via Z-Wave using a Fibaro HC2 controller). So this software can be configured to “visit” URL:s when called up on with a voice command though Alexa (in reality HA emulates a Philips HUE light that Alexa can “find” under “Smart House”, that give 3 different commands: On, off and dim.). This opens up a sea of opportunities as you can imagine. :)

      So, now I say: “Alexa, turn on Snilles Mirror” to view my profile. (Switches to my profile)
      Or: “Alexa, turn off Mirror Screen.” (Monitor off)
      Or: “Alexa, turn off Mirror” (Shutdown the mirror)
      And so on…
      Yes… Imagine the possibilities. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...

      @Jopyth said in Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...:

      %22Snille%22

      Oh! Works! :) I can’t believe that I did not try that… Thank you! :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...

      @mortenbirkelund {“status”:“Unexpected token P in JSON at position 1”}

      Tried that… :)

      posted in Troubleshooting
      SnilleS
      Snille
    • Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...

      Hi all,
      I’m trying to switch profiles with the MMM-Remote-Control module via notifications to the MMM-ProfileSwitcher module.
      But I can’t get it to work. I do get the MMM-ProfileSwitcher to “switch” but only to a profile called [object Object].
      My profile in this case is called “Snille”.
      The Profile Switcher work otherwise with the MMM-Touch-Navigation module, so it’s not broken otherwise. :)

      Iv’e tried with the following URL (and variants of that):
      http://MagicMirorIP:8080/remote?action=NOTIFICATION&notification=CURRENT_PROFILE&payload={“Profile”:“Snille”}
      As long as the “json” is ok at the end I get the “Switched to profile [object Object]” on the mirror. But, of course I don’t have any “[object Object]” profile. :)
      I do get a: {“status”:“success”} from the MMM-Remote-Control as well (as long as the “json” string is ok as well).
      Anybody have any idea? :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: IR Frame doesn't rotate

      @cowboysdude Actually it was quite fast only 8 days! :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: IR Frame doesn't rotate

      @cowboysdude Hehe, I’m still waiting for my mirror. Have not yet tested with any glass, just have it leaned against the monitor right now. :) I hope my work can supply a Pilkington MirrorView mirror, if not that’s what I’m going to buy.

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: IR Frame doesn't rotate

      @cowboysdude I bought this one: https://www.aliexpress.com/item/32-points-32-Inch-IR-Multi-touch-overlay-kit-without-glass-for-Interactive-Table-Multi-Touch/1195149819.html
      And I can actually “zoom” the on the mirror (in the electron browser) which means that multitouch works (at least for two points). :)

      posted in Troubleshooting
      SnilleS
      Snille
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 10 / 14