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 18
    • Posts 268
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-videoplayer

      @sceetch Hi, This is what I’m running with 8 gigs of ram and an SSD. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: MMM-videoplayer

      @sceetch Hi! Are you running on a RPi? Not sure if it can handle the load of playing a 720p in the webbrowser (that is used for the mirror)… A RPi 4 may be able to? Not sure… I moved my mirror over to an Intel NUC to be able to play 1080p in full screen… :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: Touchscreen Mirror

      Hi @Schmaniel, yes. It works. That’s the way I have my Mirror setup. :) More info here…

      posted in Hardware
      SnilleS
      Snille
    • RE: What is your backup and restore method?

      @swvalenti Ok… :)
      You need a “server” (a location where you can “wget” files from for this to work.
      I have a specific backup directory on my own webserver, but you can use any server as long as you can wget from it.

      Then the “Toinstall” part is just me having more the one config files in the backup dir.
      Basically I have 2 different install possibility’s “house” and “NUC”.
      So my backup config files are named “config-house.js” and config-NUC.js".
      I enable the one I want to restore.

      “ConfigName” is the actual name of the config file when it’s copied to it’s destination. This is probably always going to be “config.js” for the MM2. :)

      “User” is in what directory the “MagicMirror” is located (when you cloned it).

      “Moddir” is where your modules will be installed (this is probably always going to the same for MM2 as well).

      “DownloadFrom” is where to download your backed up files from.

      Then it’s just two "array"s with the files and folders with the backup files and where to copy them when restoring.
      Files[1] = “file1-to-copy”
      Dirs[1] = “Where/to/copy/file-1”
      And so on…

      Files[3] Is the script I use to set the screen to sleep and wake it up (Using MMM-Remote-Control).
      Files[4] Is the script I use to automatically update the mirror and the modules (manually).

      Files[7-9] It’s the “compliment-files” (used in the compliments module).

      And Files[11] Is the MagicMirror start script I use (for starting the mirror with pm2).

      “Packfile” Is the name of the file to look for when installing moduls. If it’s there, the npm install will be executed when installing the module.

      Last but not least it’s all the git-repos for the modules I use in my mirror.
      These will be cloned in the “Moddir” and installed (with npm if “Packfile” exists").

      That’s about it. :)

      Let me know if you have any more questions. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: What is your backup and restore method?

      Hi there! Manual “backup” of the config, CSS and compliments files when I change them (just copying it to my server). Then when reinstalling, I’m using a script (that I can wget down to the new install) containing all modules to reinstall and it copy back the config, CSS and compliments from the backup location… :)

      See script below…

      #!/bin/bash
      
      ## ----------------------------------------------------------------------------
      ## Snilles automatic module clone and install script for MM2.
      ## ----------------------------------------------------------------------------
      
      ## Don't forget to add your public SSH key to your GIT profile!
      ## If you don't, nothing will be cloned!
      
      ## If you don't have an SSH key. This is how you get one.
      ## Generate SSH key(s).
      # cd ~
      # ssh-keygen -t rsa
      
      ## Press: Enter, Enter, Enter...
      
      ## See the public Key...
      # cat /home/pi/.ssh/id_rsa.pub
      
      ## Copy the SSH public key and add it to your GIT SSH keys on GitHUB.
      
      ## ----------------------------------------------------------------------------
      ## Config below.
      ## ----------------------------------------------------------------------------
      
      # System to install (what config to use).
      ## Housesystems Server Install
      Toinstall='house'
      ## NUC install (On the actual Mirror, this is not used anymore)
      #Toinstall='NUC'
      
      # Real Name of the config file.
      ConfigName='config.js'
      
      ## The Install Folder.
      ## Local install.
      ## On NUC
      #User='/home/snille'
      ## On Raspberry Pi
      #User='/home/pi'
      ## Install om Homesystems Server.
      User='/var/www/html/magicmirror'
      
      ## The module install directory.
      Moddir=$User'/MagicMirror/modules'
      
      ## Configuration and other files backup location (from previous installation).
      DownloadFrom='https://yoursite.com/mmbackup/'
      
      ## Configuration file. 
      Files[1]='config-'$Toinstall'.js'
      ## Where to put the Configuration file.
      Dirs[1]=$User'/MagicMirror/config/'
      
      ## Custom CSS file.
      Files[2]='custom.css'
      ## Where to put the CSS file.
      Dirs[2]=$User'/MagicMirror/css/'
      
      ## Custom screen on/off scripts.
      Files[3]='screen.sh'
      ## Where to put the screen script files.
      Dirs[3]=$User'/'
      
      ## Not used moved to "screen.sh"
      #Files[4]='turnoffscreen.sh'
      #Dirs[4]=$User'/'
      #Files[5]='turnonscreen.sh'
      #Dirs[5]=$User'/'
      
      ## Custom Magic Mirror update script.
      Files[6]='update.sh'
      ## Where to put the update script file.
      Dirs[6]=$User'/'
      
      ## Custom compliment files.
      Files[7]='compliments-Snille.json'
      ## Where to put the compliment file.
      Dirs[7]=$User'/MagicMirror/modules/default/compliments/'
      
      Files[8]='compliments-Camilla.json'
      Dirs[8]=$User'/MagicMirror/modules/default/compliments/'
      
      Files[9]='compliments-Louise.json'
      Dirs[9]=$User'/MagicMirror/modules/default/compliments/'
      
      #Files[10]='compliments-Martin.json'
      #Dirs[10]=$User'/MagicMirror/modules/default/compliments/'
      
      # Start file for the MagigMirror
      Files[11]='MacigMirror.sh'
      Dirs[11]=$User'/'
      
      ## Package file
      Packfile='package.json'
      
      ## All the modules repos from Git.
      Repos[1]='git@github.com:Snille/MMM-HideAll.git'
      Repos[2]='git@github.com:matteodanelli/MMM-cryptocurrency.git'
      Repos[3]='git@github.com:basknol/MMM-Globe.git'
      Repos[4]='git@github.com:Snille/MMM-Modulebar.git'
      Repos[5]='git@github.com:Snille/MMM-ModuleScheduler.git'
      Repos[6]='git@github.com:CatoAntonsen/MMM-MotionEye.git'
      Repos[7]='git@github.com:Gyran/MMM-plex-recently-added.git'
      Repos[8]='git@github.com:Snille/MMM-Profilepicture.git'
      Repos[9]='git@github.com:tosti007/MMM-ProfileSwitcher.git'
      Repos[10]='git@github.com:Jopyth/MMM-Remote-Control.git'
      Repos[11]='git@github.com:Snille/MMM-Sonos.git'
      Repos[12]='git@github.com:brobergp/MMM-TextClock.git'
      Repos[13]='git@github.com:tosti007/MMM-TouchNavigation.git'
      Repos[14]='git@github.com:bugsounet/MMM-Tools.git'
      Repos[15]='git@github.com:timdows/MMM-JsonTable.git'
      Repos[16]='git@github.com:derekn/MMM-TautulliActivity.git'
      #Repos[17]='git@github.com:Snille/MMM-IFTTT.git' # For development of the IFTTT module, the one below is used.
      Repos[18]='git@github.com:jc21/MMM-IFTTT.git'
      Repos[19]='git@github.com:NolanKingdon/MMM-MoonPhase.git'
      Repos[20]='git@github.com:Snille/MMM-homeassistant-sensors.git'
      #Repos[21]='git@github.com:schnibel/MMM-Memo.git' # Replaced by module below, I changed some things.
      Repos[22]='git@github.com:Snille/MMM-Memo.git'
      Repos[23]='git@github.com:almerica/MMM-ImageFit.git'
      Repos[24]='git@github.com:Snille/MMM-Videoplayer.git'
      Repos[25]='git@github.com:MartinGris/MMM-GoogleMaps-Tracking.git'
      
      ## ----------------------------------------------------------------------------
      
      ## Start!
      cd "$Moddir"
      for t in "${Repos[@]}"
      	do
      		git clone $t
      		#echo "Cloning $t"
      done
      
      echo "Cloning Done."
      echo "Now npm installing..."
      
      for f in *;
      	do
      		if [[ -d $f ]]; then
      			installmodule=$(basename $f)
      			[[ $installmodule =~ ^(default|node_modules)$ ]] && continue
      			cd "$installmodule"
      			if [ -e "$Packfile" ]; then
      #				npm install --production
      				npm install
      			fi
      			cd ".."
      		fi
      	done
      
      echo "Download and install done."
      echo "Now restoring backup files from $DownloadFrom."
      
      ## Counts through the array of files (and uses the dirs to know where to put them).
      for ((i=1; i<=${#Files[@]}; i++)); do
      	if [[ $(wget $DownloadFrom${Files[i]} -O-) ]] 2>/dev/null
      	then
      		wget $DownloadFrom${Files[i]}
      		printf 'Moving %s to %s...\n\n' "${Files[i]}" "${Dirs[i]}"
      		mv ${Files[i]} ${Dirs[i]}
      	fi
      done
      
      ## Rename the config.
      mv ${Dirs[1]}${Files[1]} ${Dirs[1]}$ConfigName
      
      echo "Installation and restore done!"
      echo "You can now start your Magic Mirror."
      
      exit
      
      
      posted in Troubleshooting
      SnilleS
      Snille
    • RE: New Bathroom-Mirror

      @kwaeksler Ah, ok, so controlled from the RPi I/O pins? :) I’m currently trying to control my leds from the serial-port (because I’m not running the mirror on a RPi), but I have not yet found a MM-module that supports talking to the serial-port (in the correct way). For the moment I’m have a Arduino Nano that CAN control the leds, but I want to send commands (via USB-Serial) to the Nano to do stuff with the leds… :)

      posted in Show your Mirror
      SnilleS
      Snille
    • RE: New Bathroom-Mirror

      @kwaeksler Looking good! How are you controlling the LEDs?

      posted in Show your Mirror
      SnilleS
      Snille
    • RE: MagicMirror 5"

      @lucas781 Nice! Great idea as well!

      posted in Show your Mirror
      SnilleS
      Snille
    • RE: My Smart Mirror

      @boybay7 Nice frame! Looking good!

      posted in Show your Mirror
      SnilleS
      Snille
    • RE: MMM-ModuleScheduler Loading Wrong Date

      @pattanner92 I noticed the same with the scheduler, normally cron has MAR as 3 but for some reson the scheduler does not. The month are from 0-11. :)

      posted in Troubleshooting
      SnilleS
      Snille
    • RE: MMM-Videoplayer - Play video files on your mirror

      @elitecybernet Hi! Yes, default is “no sound”, because if you set it to yes, it will not “autoplay”. But you can just change the option: muted to false.

      {
        module: 'MMM-Videoplayer',
        position: 'middle_center',
        config: {
          muted: false,
        }
      },
      

      Like so… :)

      posted in Entertainment
      SnilleS
      Snille
    • RE: Module position

      @George Oh, no, not really, but I’m sure it’s possible with CSS, so it would be in your “custom.css” file you should do what’s needed…
      Maybe some one else knows? :)

      posted in Forum
      SnilleS
      Snille
    • RE: Module position

      @George Hi, you use the defined “regions”: https://forum.magicmirror.builders/topic/286/regions
      Like this, this is from my config:

      		{
      			disabled: false,
      			module: "MMM-MoonPhase",
      			position: "top_right", // This is the region... 
      			config: {
      				updateInterval: 43200000,
      				hemisphere: "N",
      				resolution: "detailed",
      				basicColor: "white",
      				title: true,
      				phase: true,
      				x: 150,
      				y: 150,
      				alpha: 0.7
      			}
      		},
      
      posted in Forum
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @Karlberg Great! :)

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

      @Karlberg Hi, the module should be working. It sounds like you have something wrong with the token if HA reports failed logins…

      posted in Utilities
      SnilleS
      Snille
    • RE: MMM-Videoplayer - Play video files on your mirror

      Added a new function in v0.4. See first post…

      posted in Entertainment
      SnilleS
      Snille
    • RE: MMM-Videoplayer - Play video files on your mirror

      @BKeyport Oh! Good point! I’ll fix that. Thank you! :)

      posted in Entertainment
      SnilleS
      Snille
    • RE: MMM-Videoplayer - Play video files on your mirror

      @feigi Yes, as @sdetweil said, I’m not using a “node_helper” at all. It’s not needed for the player. It looks like it’s loading as it should. If you don’t see the video, try putting it in another region just to see if it plays. I have only tested the player on my mirror (Ubuntu server with XFCE desktop on a Intel NUC machine) and on a Ubuntu server (running in a container (LXC) then accessing the mirror from a Windows 10 machine in Chrome). And both of them are working… But I can imagine that the RPi may struggle…

      posted in Entertainment
      SnilleS
      Snille
    • RE: MMM-Videoplayer - Play video files on your mirror

      @dherl0623 Hm… I’m using the player in the region “fullscreen_below”. I have this player first in the config of all things that “can” show in the same region (that way it will always end up above the other things in the same region):

      {
      	disabled: false,
      	module: 'MMM-Videoplayer',
      	position: "fullscreen_below",
      	classes: "scheduler turn90",
      	config: {
      		random: true,
      		loop: true,
      		notification: "VIDEOPLAYER1",
      		videolist: ["http://your.site.com/video/clip1.mp4", 
      					"http://your.site.com/video/clip1.mp4", 
      					"http://your.site.com/video/clip2.mp4", 
      					"http://your.site.com/video/clip3.mp4", 
      					"http://your.site.com/video/clip4.mp4", 
      					"http://your.site.com/video/clip5.mp4", 
      					"http://your.site.com/video/clip6.mp4", 
      					"http://your.site.com/video/clip7.mp4", 
      					"http://your.site.com/video/clip8.mp4", 
      					"http://your.site.com/video/clip9.mp4", 
      					"http://your.site.com/video/clip10.mp4", 
      					"http://your.site.com/video/clip11.mp4"],
      		module_schedule: [
      			{from: '0 6 31 9 *', to: '5 6 31 9 *'},
      			{from: '2 7 31 9 *', to: '7 7 31 9 *'},
      			{from: '4 8 31 9 *', to: '9 8 31 9 *'},
      			{from: '6 9 31 9 *', to: '11 9 31 9 *'},
      			{from: '8 10 31 9 *', to: '13 10 31 9 *'},
      			{from: '10 11 31 9 *', to: '15 11 31 9 *'},
      			{from: '12 12 31 9 *', to: '17 12 31 9 *'},
      			{from: '14 13 31 9 *', to: '19 13 31 9 *'},
      			{from: '16 14 31 9 *', to: '21 14 31 9 *'},
      			{from: '18 15 31 9 *', to: '23 15 31 9 *'},
      			{from: '20 16 31 9 *', to: '25 16 31 9 *'},
      			{from: '22 17 31 9 *', to: '27 17 31 9 *'},
      			{from: '24 18 31 9 *', to: '29 18 31 9 *'},
      			{from: '26 19 31 9 *', to: '31 19 31 9 *'},
      			{from: '28 20 31 9 *', to: '33 20 31 9 *'},
      			{from: '30 21 31 9 *', to: '35 21 31 9 *'},
      			{from: '32 22 31 9 *', to: '37 22 31 9 *'},
      			{from: '34 23 31 9 *', to: '39 23 31 9 *'},
      		]
      	}
      },
      

      Then I have set the “classes” on this player to “scheduler turn90”, the first class is for the MMM-ModuleScheduler to work and the second is for the player to be turned 90 degrees and set to full screen.
      My CSS entry for this player looks like this:

      /* MMM-Videoplayer ----------------------------------*/
      .MMM-Videoplayer video {
          width: 1080px;
          height: 1920px;
      }
      
      .turn90 video {
          position: absolute;
          transform:rotate(90deg);
          transform-origin: bottom left;
          width: 100vh;
          height: 100vw;
          margin-top: -100vw;
          object-fit: cover;
      }
      /*****************************************************/
      

      That’s it. :)

      posted in Entertainment
      SnilleS
      Snille
    • RE: MMM-Videoplayer - Play video files on your mirror

      @dherl0623 Thank you! :) I’m going to use it soon to play spooky stuff from AtmosFX on Halloween, It’s going to be timed with module scheduler over whole day. Suddenly a ghost appear in the background… :)

      posted in Entertainment
      SnilleS
      Snille
    • 1 / 1