MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. sdetweil
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S Do not disturb
    • Profile
    • Following 0
    • Followers 110
    • Topics 92
    • Posts 21,389
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Default weather module stuck loading after latest MM update

      @Peter ok, two things…

      you ALSO have to add

      weatherEndpoint: "/onecall",
      

      to each config, as this is required for the 3.0 api

      this makes it work with my 3.0 apikey

      Screenshot at 2024-10-08 06-09-51.png

      second,
      in the forum, when you post config, or log info, please use the code block wrapper… else the quotes get changed to workd processing type which JS doesn’t understand

      to do
      paste the text into the editor, blank line above and below
      select the text just pasted
      hit the </> button above the editor

      posted in Troubleshooting
      S
      sdetweil
    • RE: Cannot find module 'undici' - 'npm install' doesn't work

      @Klinge yes it says we need node 20.18.1 or above
      https://forum.magicmirror.builders/topic/19271/version-2-30-0-requires-updated-nodejs-warning-for-pi0w-installations

      anyhow quickest way
      install tool to allow changing node versions

      sudo npm install n -g
      sudo n 20.18.1
      

      now do the MagicMirror install

      cd ~/MagicMirror
      npm run install-mm 
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: MM install script failure on fresh install of Raspian

      @unfriendlydevice I updated the installer script for the condition you found.

      I would suggest reflashing the sd card before starting

      posted in Troubleshooting
      S
      sdetweil
    • RE: Cal EXT3 - understanding transforming

      @_V_

      all in one… there is only ONE eventTransformer, it has to do ALL the work for ALL events

      I used else if here… if it matched the first, there is no reason to check again

      eventTransformer: (ev) => {
           if (ev.title.search("Geburtstag") > -1) {ev.color= "#ff00ff"; }
           else if (ev.title.search("Arzt") > -1) {ev.color= "#ff0000"; };
      return ev; 
      },
      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM_RTSPStream & ffmpeg

      @ge see https://github.com/evroom/MMM-MPlayer

      posted in Troubleshooting
      S
      sdetweil
    • RE: The MagicMirror build gift for my GF

      if you got an api key before IBM closed free access, the api key still works (for how long I don’t know)… mine still does

      posted in Show your Mirror
      S
      sdetweil
    • RE: Your help is needed! Looking for new moderators!

      I’ll be glad to help

      posted in Forum
      S
      sdetweil
    • RE: Help choosing more than one item from an array

      ok, your source ‘lifeFormArray’ is a hash… good for looking up randomly

      now to get the user specified list into something usable, split is the way as already posted

      // if user specified something
      if(this.config.lifeForms.length >0 )
      {
           // split will return an array with only one entry if no comma found
           this.config.user_keys=this.config.lifeForms.split(',');
      }
      else
           // add an entry to a special lifeFormArray entry for missing config info
           this.config.user_keys.push("none");
      

      now, you want random, or walk the array of user_keys?

      function getRandomInt(max) {
        return Math.floor(Math.random() * Math.floor(max));
      } 
      
      // get one of the user specified data keys, using random
      var key=this.config.user_keys[this.getRandomInt(this.config.user_keys.length)];
      
      // append that id value to the url.
      this.url = "http://eol.org/api/pages/1.0.json?batch=false&id=" +this.lifeFormArray.key;
      

      its unclear if u wanted all or just one…

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-SleepWake using external motion detection source

      @elleclouds ok…
      the motion module needs a video device…

      run these two commands

      sudo apt-get install v4l-utils
      v4l2-ctl --list-devices
      

      find the ‘camera’ device in the list
      mine shows

      odroid@odroid:~/MagicMirror$ v4l2-ctl --list-devices
      s5p-mfc-dec (platform:11000000.codec):
              /dev/video10
              /dev/video11
      
      s5p-jpeg encoder (platform:11f50000.jpeg):
              /dev/video30
              /dev/video31
      
      s5p-jpeg encoder (platform:11f60000.jpeg):
              /dev/video32
              /dev/video33
      
      exynos-gsc gscaler (platform:13e00000.video-scaler):
              /dev/video20
      
      exynos-gsc gscaler (platform:13e10000.video-scaler):
              /dev/video21
      
      UVC Camera (046d:0825) (usb-xhci-hcd.3.auto-1.2):
              /dev/video0
      

      the last is the camera…

      so, in the motion.conf,

      set the line videodevice to the value returned for the camera, in my case /dev/video0

      # Videodevice to be used for capturing  (default /dev/video0)
      
      
      # for FreeBSD default is /dev/bktr0
      videodevice  /dev/video0
      

      after changing the config file
      either do

      ps -ef | grep motion
           get the process id (pid) use below
      kill -s SIGHUP pid
      

      mine is

      odroid@odroid:~/MagicMirror$ ps -ef | grep motion
      root      7756     1  0 Mar08 ?        00:14:21 motion
      

      pid = 7756

      or reboot

      posted in System
      S
      sdetweil
    • RE: Raspberry 2 clean install showing as black screen

      there is a bug in the electron browser that causes the black screen.

      i did

      npm remove electron
      npm install electron@1.7.9

      and it works fine now…

      someone posted another solution to issue 1243

      posted in Troubleshooting
      S
      sdetweil
    • RE: My 2-hour Google Home-enabled Magic Mirror (full guide)

      @zach awesome… thanks… another set of interesting info… had not seen pi-top before

      posted in Show your Mirror
      S
      sdetweil
    • RE: Your help is needed! Looking for new moderators!

      @MichMich thanks for the trust…

      posted in Forum
      S
      sdetweil
    • RE: Help choosing more than one item from an array

      @justjim1220 make sure to add an entry to the lifeFormArray that matches the string you define for ‘none’ (no user entry supplied)

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-JarvisFace

      @t-architecture99 could u provide a little more info… someone might be able to help you

      posted in System
      S
      sdetweil
    • RE: Error Installing Dependencies Permission Denied

      you can’t install in Desktop… its protected…

      use your home folder… then make a shortcut to start the mirror

      posted in Troubleshooting
      S
      sdetweil
    • RE: My 1st Smart Mirror Quest

      nice work!!

      posted in Show your Mirror
      S
      sdetweil
    • New forum, daily recycles as we get things settled.

      as we have transitioned the Forum to new systems and newer NodeBB software, we are still finding things we need to adjust…

      so daily we will need to restart … its about 5pm US eastern time… only down for a couple minutes…

      thanks for your patience

      posted in Forum
      S
      sdetweil
    • RE: MMM-DHT-Sensor

      @steff92 if u have a keyboard press ctrl-shift-i ( letter i) to open debug console.

      Or start mirror in Dev mode, not full screen

      npm start Dev

      Alt-tab will also walk u between the available windows

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-Hotword

      @hayman those are YOUR user Id and password on GitHub, right?

      posted in System
      S
      sdetweil
    • RE: Rasbian Stretch screensaver disable

      this Debian Stretch: deactivate screen blanking

      says

      add those lines to

      /home/pi/.config/lxsession/LXDE-pi/autostart 
      

      note that is a file that is USER based…

      posted in Troubleshooting
      S
      sdetweil
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 86
    • 87
    • 10 / 87