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

    Posts

    Recent Best Controversial
    • RE: Calendar - maximumNumberOfDays

      @clumsy_ninja First, I just want to say you sent me down a really interesting rabbit hole.

      At first, I couldn’t get it to work. My development environment has the mirror mounted on the wall and I SSH into the Pi. I run a browser tab in Chrome with the developer options on so I can see the logs. This was surprisingly frustrating as I could not get the maximumNumberOfDays parameter to work. After much thrashing about, I discovered that the only way to get that parameter to work was to restart the mirror process, not just reload the browser page.

      So this configuration in my config.js works:

      {
      	module: 'calendar',
      	header: 'US Holidays',
      	position: 'top_left',
      	config: {
      		maximumNumberOfDays:120,
      		calendars: [
      			{
      			symbol: 'calendar-check-o ',
      			url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics',
      			},
      			{
      			symbol: 'imdb',
      			url: 'https://www.google.com/calendar/ical/pfutdblf1gi8jmfsvroh76f6jg%40group.calendar.google.com/public/basic.ics',
      			}
      		],
      	}
      },
      

      Which is all well and good, but the maximumNumberOfDays would not take effect until I restarted the mirror process: pm2 restart 0. After that, the mirror would show the correct events and refreshing the browser would also show the correct number of events. I’m guessing that the calendar module is creating a calendarfetcher at the beginning of the MagicMirror process and any changes to the config file will only take effect whenever the calendar interval hits (or when you restart the Mirror process). If you make your change and wait for the calendar module to refresh your calendar, your changes to the maximumNumberOfDays should take effect then.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: My mirror finally finished and installed

      @supersook - There are a few tools that can do this. I would recommend a router with a flush trim bit.

      Pull the acrylic out and very carefully lay it along the edge of a scrap piece of wood (a sheet of something would be ideal). The amount you want to remove from the acrylic should overhand the support sheet. Clamp it down good & hard.

      Set the depth so that the bearing rides along the support sheet and the bit trims the acrylic. Go fairly briskly as acrylic likes quick cuts. Slow cuts will have the bit rub against the acrylic and melt it. You may wish to practice on scrap a couple times first.

      posted in Show your Mirror
      bheplerB
      bhepler
    • RE: Bored during Quarantine

      @sgarg15 - I would recommend going through @Mykle1’s modules. Dude is a fiend with finding an API and creating a module around it. Just check out the list. Specifically, look at HumanClock, Lunartic and NatureCalendar.

      Beyond that, I suggest that you spend some quality time with the Modules -> Showcase section of the forums here.

      posted in General Discussion
      bheplerB
      bhepler
    • RE: Sun VS mirror

      FWIW, the professionals at TwoWayMirrors.com sell two way glass specifically for smart mirrors at 30% transparent. I have three of their mirrors and I’m quite pleased with them.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: How to implement specific module?

      @Jeff Installing new modules is a pretty easy process. In general, it goes like this:

      • Navigate to the modules directory at ~/MagicMirror/modules
      • Download the module code using git: git clone [url]
      • Run any commands that the module requires. This will vary by module
      • Update the config.js file to configure the new module. There should be an example in the module readme. sudo nano ~/MagicMirror/config/config.js
      • Restart your mirror so the new configuration will be implemented. npm restart
      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: Upgrading Mirror Mark II

      @Cr4z33 - I can do better than guess. I bought it from www.twowaymirrors.com. They have a rep, @twowaymirrors who is on this forum every so often. They were great and I pretty much only use them at this point.

      It’s their 50% transmission model, I think. I’d have to check the receipt.

      posted in Show your Mirror
      bheplerB
      bhepler
    • RE: MM with multiple monitors - is it doable?

      I built a mirror with two monitors in it. I ended up running two separate instances of the Magic Mirror framework. Despite having a PC with the graphics horsepower to do it, I ran into a couple of problems.

      You can definitely stretch one mirror over two monitors. If you’re putting the monitors next to each other behind the frame, this will work somewhat. You’ll still have a line of no pixels straight down the middle of your mirror. So long as you don’t put anything in the center fields, this can work.

      I attempted to run two instances of the Magic Mirror framework from one device. That also resulted in failure. I could not programatically guarantee that each interface would be displayed on a particular monitor. Sometimes it would double up and both would be displayed on the left monitor, sometimes it would work, and sometimes they would both be in the right monitor.

      Now it has two devices running two instances and it works okay. At some point this summer I’m going to add a third monitor and run them all off of their own Raspi.

      posted in General Discussion
      bheplerB
      bhepler
    • RE: How to display the mirror remotely?

      Why aren’t you just hitting the mirror with a web browser? The browser will render the mirror more-or-less exactly as it will be displayed. You won’t be able to use any module with a peripheral, such as a microphone or IP camera. But for layout, fonts and the like it will speed things up immeasurably.

      Add your computer to the ipWhiteList and restart the mirror process. Point your browser at http://[mirror ip address]:8080

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: Facial Recognition - customize your mirror for every user!

      @schlachtkreuzer6 Check out the tutorial I wrote for Motion & the mirror. Pretty much the part you’ll have to figure out is how to get a script to update the mirror. Motion can be configured to run a script, save a file, stream a video, etc. from an IP camera. There’s also a streaming server integrated into it, so you could probably put the contents of the IP camera into the stream from motion, and then use an IFRAME to display the stream’s output.

      In my research, I found a lot of information on the Motion software, including a couple that were specifically about running Motion on a Raspberry Pi as a security system. Once you have that configured, the next part is just figuring out how to send an alert to your mirror and how you want to display it.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: Upgrading Mirror Mark II

      @hayman - Nope. Three pi, one for each monitor. One of them is acting as a gateway onto our secured network. It brokers the VPN connection and then provides DHCP and internet access to the other two. This way, all three Pi are connected to the internet via some VM in… Sydney, I think. It depends on how they have it configured this week.

      The network is the company product, so the mirror is a constant demonstration. (not that you can tell on the two monitors just playing video, but it’s the thought that counts).

      posted in Show your Mirror
      bheplerB
      bhepler
    • RE: Minimal depth of a frame for the magic mirror

      Some users have created fairly thin magic mirrors by using laptop screens and driver boards. The laptop screens are thinner than conventional LCD monitors.

      The downside is that you’re limited to the display size of a laptop screen.

      posted in General Discussion
      bheplerB
      bhepler
    • RE: Magic Mirror on Windows 8.1 tablet?

      @roxx - Try installing the MMM-RemoteControl module and the associated mobile phone app. It should let you change/install all sorts of things from your phone.

      I don’t think Win8.1 enables RDP, so I think you would have to install either a VNC or SSH host on your tablet. That would let you have access to the file system from your regular computer to change your config.js. You can just hit your tablet from the web browser on your desktop/laptop in order to evaluate the config. Once you make a change, just refresh your browser.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: Facial Recognition - customize your mirror for every user!

      @YourhighnessLeender Check your capitalization. Your training script output was ‘Johannes’ and your config.js has ‘johannes’.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: Best Magic Mirror Build !

      Great video! And your mirror looks awesome. You did a fabulous job on both.

      posted in Show your Mirror
      bheplerB
      bhepler
    • RE: Portrait Mode

      @johnnyboy said in Portrait Mode:

      Not sure why, but my preferences show exactly the same options as Strech did… there is no Screen Configuration.

      Yeah, that’s a puzzler. Let me do some research and see if I can’t figure out what’s going on. It’s possible that I forgot a step. How embarassing.

      posted in General Discussion
      bheplerB
      bhepler
    • RE: Attempting To Update

      @justjim1220 He already got that one.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: Fitbit

      @Oliver_Tooth I was able to successfully install the Fitbit module and get it to pull information from the web API. It took a little tweaking, but I did get it to work.

      Problems I encountered:

      • Python was not installed. I had to install it and figure out how to install “pip”.
      • Fitbit doesn’t make their developer area visible off their main website. I ended up bouncing through their forums first.
      • Example config file on the module GitHub page contains errors. The character after config: should be {, not [.
      • The secret key and appID field values need to be surrounded by single quotes, something not explained in the readme file.

      Here’s the relevant portion of my config.sys file.

      {
              module: 'MMM-fitbit',
              position: 'bottom_left',
              config: {
                      credentials: {
                              client_id: '000XX0',
                              client_secret: 'abbacadabba1234567890',
                              },
                      resources: [
                              'steps',
                              'floors',
                              'caloriesOut',
                              'distance',
                              'activeMinutes',
                              'sleep',
                              'heart'
                              ],
                      update_interval: 60
                      }
      },
      

      When you run npm start the MMM-Fitbit python script will run and kick out a few lines in the console. I’m not entirely sure what it’s doing, but here’s what mine reads:

      Set credential request recieved.
      { client_id: '000XX0',
        client_secret: 'abbacadabba1234567890' }
      Initial run request recieved.
      Running getData.py
      results: [{"message":"credentials.ini exists","type":"status"},{"message":"Writing credentials to credentials.ini","type":"status"},{"message":"Writing id: 000XX0 and secret: abbacadabba1234567890","type":"status"},{"message":"Credentials write successful","type":"status"}]
      

      When I ran the setupAccess.py script, it failed to modify the credentials.ini file. I ended up editing it manually and plugging in my application ID and my secret key. The format is simple. Spaces before & after the = and no quotes around the ID or key.

      posted in Troubleshooting
      bheplerB
      bhepler
    • RE: This my first MagicMirror aka Dashboard

      The monitor stand is definitely unique. Good looking build.

      posted in Show your Mirror
      bheplerB
      bhepler
    • RE: What's the best way to block out area of mirror that doesn't have a monitor behind it?

      I use black construction paper and tape it to the back of the glass. It sounds like the challenge is to get the paper attached without visible adhesive.

      You might be able to use a spray adhesive. There are a couple types that are designed for attaching wood laminate. A light & even coat could work. You would have complete blackout with the paper instead of additional reduction in transmission like you would with the window foil.

      posted in General Discussion
      bheplerB
      bhepler
    • RE: PM2 does not start the Magic Mirror

      @dariocas - First, check to see if anything pm2 related still exists on your Pi: type pm2 status all. If you get a table in reply, then pm2 is there, you just need to configure it.

      If you get “command not found” then you’ll need to install pm2 manually: npm install pm2 -g. Once that finishes, you’ll want to initalize pm2 with pm2 startup. It will do a mess of things and at the end it will output a command for you to enter. This is important! You need to copy that command from the output and paste it into the command line. That will enable pm2 to start when the Pi reboots.

      Give it a go and let us know what you find.

      posted in Troubleshooting
      bheplerB
      bhepler
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 11 / 13