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

    glitchgod

    @glitchgod

    0
    Reputation
    683
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    glitchgod Unfollow Follow

    Latest posts made by glitchgod

    • MMM-Buttons update node error installed 48 need 57

      I recently updated my MagicMirror to the most recent version using

      git pull && npm install
      

      after a long 10 minutes due to 1 year worth of never updating. I did a

      sudo reboot
      

      and was welcomed to a black screen. So i dug through the logs

      pi@Magic_Mirror:~/MagicMirror $ pm2 show 0
       Describing process with id 0 - name MagicMirror
      ┌───────────────────┬────────────────────────────────────────────┐
      │ status            │ online                                     │
      │ name              │ MagicMirror                                │
      │ restarts          │ 0                                          │
      │ uptime            │ 21m                                        │
      │ script path       │ /home/pi/MagicMirror/installers/mm.sh      │
      │ script args       │ N/A                                        │
      │ error log path    │ /home/pi/.pm2/logs/MagicMirror-error-0.log │
      │ out log path      │ /home/pi/.pm2/logs/MagicMirror-out-0.log   │
      │ pid path          │ /home/pi/.pm2/pids/MagicMirror-0.pid       │
      │ interpreter       │ bash                                       │
      │ interpreter args  │ N/A                                        │
      │ script id         │ 0                                          │
      │ exec cwd          │ /home/pi/MagicMirror                       │
      │ exec mode         │ fork_mode                                  │
      │ node.js version   │ N/A                                        │
      │ watch & reload    │ ✔                                          │
      │ unstable restarts │ 0                                          │
      │ created at        │ 2018-02-20T06:18:41.419Z                   │
      └───────────────────┴────────────────────────────────────────────┘
       Revision control metadata
      ┌──────────────────┬────────────────────────────────────────────────┐
      │ revision control │ git                                            │
      │ remote url       │ https://github.com/MichMich/MagicMirror.git    │
      │ repository root  │ /home/pi/MagicMirror                           │
      │ last update      │ 2018-08-12T18:38:47.286Z                       │
      │ revision         │ 6aa156d95667b230264fd99c5df877b25759e710       │
      │ comment          │ Merge pull request #1343 from MichMich/develop │
      │ branch           │ master                                         │
      └──────────────────┴────────────────────────────────────────────────┘
       Add your own code metrics: http://bit.ly/code-metrics
       Use `pm2 logs MagicMirror [--lines 1000]` to display logs
       Use `pm2 monit` to monitor CPU and Memory usage MagicMirror
      pi@Magic_Mirror:~/MagicMirror $ pm2 logs MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines:
      0|MagicMir | Error: The module '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build/Release/epoll.node'
      0|MagicMir | was compiled against a different Node.js version using
      0|MagicMir | NODE_MODULE_VERSION 50. This version of Node.js requires
      0|MagicMir | NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
      0|MagicMir | the module (for instance, using `npm rebuild` or `npm install`).
      0|MagicMir |     at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
      0|MagicMir |     at Object.Module._extensions..node (module.js:671:18)
      0|MagicMir |     at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
      0|MagicMir |     at Module.load (module.js:561:32)
      0|MagicMir |     at tryModuleLoad (module.js:504:12)
      0|MagicMir |     at Function.Module._load (module.js:496:3)
      0|MagicMir |     at Module.require (module.js:586:17)
      0|MagicMir |     at require (internal/module.js:11:18)
      0|MagicMir |     at bindings (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/bindings/bindings.js:81:44)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/epoll.js:1:192)
      
      /home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines:
      0|MagicMir |
      0|MagicMir | Starting MagicMirror: v2.4.1
      0|MagicMir | Loading config ...
      0|MagicMir | Loading module helpers ...
      0|MagicMir | No helper found for module: MMM-ModuleToggle.
      0|MagicMir | Initializing new module helper ...
      0|MagicMir | Module helper loaded: MMM-DropboxWallpaper
      0|MagicMir | Loading module helpers ...
      0|MagicMir | No helper found for module: MMM-ModuleToggle.
      0|MagicMir | Initializing new module helper ...
      0|MagicMir | Module helper loaded: MMM-DropboxWallpaper
      0|MagicMir | Whoops! There was an uncaught exception...
      0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | Launching application.
      
      ^X^C
      

      I went ahead and did what it suggested with the npm rebuild and just lowered the node error to 48 instead of 50.

      I’m confused as to what this means and how to fix this, since before the update it was working.

      (MMM-Buttons is used to swap between modules,
      1- Blank screen only background
      2-Calendar (custom sized)
      3-Weather (custom sized)
      4-Wunderlist (custom sized))

      posted in Troubleshooting
      G
      glitchgod
    • GPIO in MMM: ModuleToggle with MMM-Buttons is randomly working

      Issue comes from the buttons requiring an insane amount of presses to trigger, sometimes never triggering, and on rare occasions 2 of the 4 will work perfectly.

      The goal was to have an easy way to have buttons, in this case 4, and each have their certain modules.
      Using code from http://razzpisampler.oreilly.com/ch07.html

      import RPi.GPIO as GPIO
      import time
      
      GPIO.setmode(GPIO.BCM)
      
      GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
      
      while True:
          input_state = GPIO.input(18)
          if input_state == False:
              print('Button Pressed')
              time.sleep(0.2)
      
      

      I tested each one button with their own GPIO and each worked every time, so with this knowledge i know the buttons and the wiring is right.

      The code for the config is:

       modules: [
                      {
                      module: 'MMM-ModuleToggle',
                      config: {
                      hide: ["clock"]
                          }
                      },
                      {
                        module: 'MMM-Buttons',
                          config: {
                              buttons: [
                                  {
                                      pin: 23,
                                      name: "Button_One",
                                      shortPress: {
                                          notification: "MODULE_TOGGLE",
                                          payload: {hide: [], show: ["calendar", "clock"], toggle:[]}
                                      },
                                      longPress: undefined
                                  },
                                  {
                                      pin: 13,
                                      name: "Button_Two",
                                      shortPress: {
                                          notification: "MODULE_TOGGLE",
                                          payload:  {hide: ["calendar", "clock"], show: [], toggle:[]}
                                      },
                                      longPress:  undefined
                                  }
                              ]
                          }
      
      

      As stated they work, but at very random time.

      Im wondering if im suppose to like preload the knowledge to use GPIO ahead of the booting of the actual Magic Mirror program, or something like, or am i missing a step.

      Thank you in advance.

      posted in Troubleshooting
      G
      glitchgod
    • RE: MMM-CalendarExt cant get the calendar to show

      After re enabling all the modules it seems

      “MMM-ethereum”

      causes it not to show up.
      The way i found out is commenting out each module one by one

      Just for future

      posted in Troubleshooting
      G
      glitchgod
    • RE: MMM-CalendarExt cant get the calendar to show

      Alright it’s up and running.
      Thank you Sean
      the steep by steep fix you have given was excellent :)

      posted in Troubleshooting
      G
      glitchgod
    • RE: MMM-CalendarExt cant get the calendar to show

      @Sean said in MMM-CalendarExt cant get the calendar to show:

      r

      alright ran the dev mode in the proper directory
      the screen that showed up looks like the Chrome’s “F12” option

      There were no errors or issues highlighed or showing the X on them, however the calendar somewhat showed up in a weird way after i commented out everything but the calendar.

      It showed up in the bottom left with only "Tuesday /Wensday/ Thurday/ Friday " and a single calendar line.

      Picture proof

      Im still running with the Default script

      {
        module: 'MMM-CalendarExt',
        position: "top_left",
        config: {
          calendars: [
            {
              url: "http://mlb.am/tix/mariners_schedule_full"
            }
          ]
        }
      },
      

      SSSoo some progress

      After letting the SSH run for a few minutes an error did show up

      Starting MagicMirror: v2.1.3
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Module helper loaded: MMM-CalendarExt
      All module helpers loaded.
      Starting server on port 8080 ...
      Server started ...
      Connecting socket for: MMM-CalendarExt
      Sockets connected & modules started ...
      Whoops! There was an uncaught exception...
      { Error: listen EADDRINUSE 127.0.0.1:8080
          at Object.exports._errnoException (util.js:1050:11)
          at exports._exceptionWithHostPort (util.js:1073:20)
          at Server.setupListenHandle [as _listen2] (net.js:1263:14)
          at listenInCluster (net.js:1304:12)
          at doListen (net.js:1428:7)
          at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
          at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:10)
        code: 'EADDRINUSE',
        errno: 'EADDRINUSE',
        syscall: 'listen',
        address: '127.0.0.1',
        port: 8080 }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Launching application.
      pm2 log mm
      
      
      posted in Troubleshooting
      G
      glitchgod
    • RE: MMM-CalendarExt cant get the calendar to show

      okay here it is
      pm2 log mm

      pi@MagicMirror:~ $ pm2 log mm --lines 1000
      [TAILING] Tailing last 1000 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error-0.log last 1000 lines:
      0|mm       |
      0|mm       | npm ERR! Linux 4.9.52-v7+
      0|mm       | npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      0|mm       | npm ERR! node v6.11.4
      0|mm       | npm ERR! npm  v3.10.10
      0|mm       | npm ERR! code ELIFECYCLE
      0|mm       | npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
      0|mm       | npm ERR! Exit status 1
      0|mm       | npm ERR!
      0|mm       | npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh'.
      0|mm       | npm ERR! Make sure you have the latest version of node.js and npm installed.
      0|mm       | npm ERR! If you do, this is most likely a problem with the magicmirror package,
      0|mm       | npm ERR! not with npm itself.
      0|mm       | npm ERR! Tell the author that this fails on your system:
      0|mm       | npm ERR!     sh run-start.sh
      0|mm       | npm ERR! You can get information on how to open an issue for this project with:
      0|mm       | npm ERR!     npm bugs magicmirror
      0|mm       | npm ERR! Or if that isn't available, you can get their info via:
      0|mm       | npm ERR!     npm owner ls magicmirror
      0|mm       | npm ERR! There is likely additional logging output above.
      0|mm       |
      0|mm       | npm ERR! Please include the following file with any support request:
      0|mm       | npm ERR!     /home/pi/MagicMirror/npm-debug.log
      0|mm       | [811:1006/062246.323684:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
      0|mm       | #0 0x00000139f0c0 
      0|mm       | #1 0x0000013ae0be 
      0|mm       | #2 0x0000009d3172 
      0|mm       |
      0|mm       | [812:1006/064303.600583:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
      0|mm       | #0 0x00000139f0c0 
      0|mm       | #1 0x0000013ae0be 
      0|mm       | #2 0x0000009d3172 
      0|mm       |
      0|mm       | [807:1006/065119.128269:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
      0|mm       | #0 0x00000139f0c0 
      0|mm       | #1 0x0000013ae0be 
      0|mm       | #2 0x0000009d3172 
      0|mm       |
      
      /home/pi/.pm2/logs/mm-out-0.log last 1000 lines:
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXWLP] SCANNING: /home/
      0|mm       | [DBXWLP] SCANNING: /home/Apps/
      0|mm       | [DBXWLP] SCANNING: /home/Apps/background_pi_magicMirror
      0|mm       | [DBXWLP] SCANNING: /Apps/background_pi_magicMirror
      0|mm       | [DBXWLP] SCANNING: /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXWLP] SCANNING: /home/Apps/background_pi_magicMirror
      0|mm       | [DBXWLP] SCANNING: /Apps/background_pi_magicMirror
      0|mm       | [DBXWLP] SCANNING: /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXWLP] DOWNLOAD_ERROR /background_pi_magicMirror
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      
      0|mm       | [DBXPIC] No scanned images in Dropbox.
      
      
      

      and
      npm, start dev

      pi@MagicMirror:~ $ npm start dev
      npm ERR! Linux 4.9.52-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "dev"
      npm ERR! node v6.11.4
      npm ERR! npm  v3.10.10
      npm ERR! path /home/pi/package.json
      npm ERR! code ENOENT
      npm ERR! errno -2
      npm ERR! syscall open
      
      npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
      npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
      npm ERR! enoent This is most likely not a problem with npm itself
      npm ERR! enoent and is related to npm not being able to find a file.
      npm ERR! enoent
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/npm-debug.log
      
      
      posted in Troubleshooting
      G
      glitchgod
    • MMM-CalendarExt cant get the calendar to show

      My hope is to create a plain Calendar for the entire month on a 23in monitor and has 3 different calendar sources. The calendar would sit in the top left underneath the current date and time, and this calendar would take up majority of the screen but leave room for some weather modules on the top right. That’s all this thing is going to be used for.

      My issue is that I cant seem to get this calendar to show.

      My code from going section by section:

      {
      	module: 'MMM-CalendarExt',
      	position: "top_left", //anywhere. It is not related to real position of view
      	config: { // Read below
      	  system: {
      		  show: ['daily'],
      		  locale: '', //when omitted, default value would be your system default locale by moment.js
      		  showEmptyView: 1,
      		  fullDayEventLocalize: 1,
      		  redrawInterval: 30*60*1000, //minimum 60000
      		  useProfileConfig: 0,
      		  startProfile: ''
      		},
      		defaultView: {
      		  position: 'bottom_bar',
      		  positionOrder: -1,
      		  overflowRolling: 0,
      		  overflowHeight: 0,
      		  overflowDuration: 2,
      		  timeFormat: 'HH:mm',
      		  dateFormat: "MMM Do",
      		  fullDayEventDateFormat: "MMM Do",
      		  ellipsis: 0,
      		  limit:0,
      		  oneLineEvent:0,
      		  replaceTitle:[],
      		  classPattern:[],
      		  classPatternWhere:["title"],
      		  symbolPattern:[],
      		  symbolPatternWhere:["title"]
      		},
      		views: {
      			month: {
      				showWeeks: 1,
      				weeksTitle: 'weeks',
      				weeksFormat: 'wo',
      				weekdayFormat: 'dd',
      				titleFormat : 'D',
      				overTitleFormat : 'MMM D',
      				monthTitleFormat: "MMMM",
      			},
      		},
               defaultCalendar: {
      		  profiles: [],
      		  views: [],
      		  symbol: "",
      		  styleName: "",
      		  replaceTitle:[],
      		  classPattern: [],
      		  classPatternWhere: ["title"],
      		  symbolPattern: [],
      		  symbolPatternWhere: ["title"],
      		  maxEntries:50,
      		  maxDays:180,
      		  interval: 1800000,
      		},
      
      	  calendars: [
      		  {
      			name: "Stars",
      			url: "webcal://cantonbecker.com/astronomy-calendar/astrocal.ics",
      		  },
      		  {
      			name: "US Holiday",
      			url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
      			maxEntries: 50,
      			maxDays:365,
      			interval: 24*60*60*1000,
      		  }
      		],
      	},
      }
      

      this code resulted in a giant nothing showing.

      I then tried what Im guessing is the basic defualt

      {
        module: 'MMM-CalendarExt',
        position: "top_left",
        config: {
          calendars: [
            {
              url: "http://mlb.am/tix/mariners_schedule_full"
            }
          ]
        }
      },
      

      Still nothing showed up.

      Advice on whats up

      posted in Troubleshooting
      G
      glitchgod