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

    Posts

    Recent Best Controversial
    • RE: trouble with MMM-GoogleTrafficTimes

      it’s working now. Thank you for all of the help!

      Kevin

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      I see it, damn, I’ve stared at that for way too long, rebooting…

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      magicmirror@2.13.0 start /home/pi/MagicMirror
      ./run-start.sh $1 “dev”

      [2020-10-16 11:15:36.565] [LOG] Starting MagicMirror: v2.13.0
      [2020-10-16 11:15:36.775] [LOG] Loading config …
      [2020-10-16 11:15:36.823] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:73
      styledMapType: “transparent”,
      ^^^^^^^^^^^^^

      SyntaxError: Unexpected identifier
      at Module._compile (internal/modules/cjs/loader.js:723:23)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Module.require (internal/modules/cjs/loader.js:692:17)
      at require (internal/modules/cjs/helpers.js:25:18)
      at loadConfig (/home/pi/MagicMirror/js/app.js:70:12)
      at App.start (/home/pi/MagicMirror/js/app.js:217:3)
      at Object. (/home/pi/MagicMirror/serveronly/index.js:4:5)
      [2020-10-16 11:15:36.862] [LOG] Loading module helpers …
      [2020-10-16 11:15:37.496] [LOG] Initializing new module helper …
      [2020-10-16 11:15:37.507] [LOG] Module helper loaded: updatenotification
      [2020-10-16 11:15:37.525] [LOG] No helper found for module: helloworld.
      [2020-10-16 11:15:37.531] [LOG] All module helpers loaded.
      [2020-10-16 11:15:39.089] [LOG] Starting server on port 8080 …
      [2020-10-16 11:15:39.324] [LOG] Server started …
      [2020-10-16 11:15:39.335] [LOG] Connecting socket for: updatenotification
      [2020-10-16 11:15:39.346] [LOG] Sockets connected & modules started …
      [2020-10-16 11:15:39.354] [LOG]

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      yup, not quoted

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      yup, went through and did the install and such

       {
                              module: 'MMM-GoogleMapsTraffic',
                              position: 'bottom_left',
                              config: {
                                      key: '< my key>',
                                      lat: < my lat>,
                                      lng: < my long>,
                                      height: '300px',
                                      width: '300px'
                                      styledMapType: "transparent",
                                      disableDefaultUI: true,
                                      backgroundColor: 'hsla(0, 0%, 0%, 0)',
                                      markers: [
                                              {
                                                      lat: <my lat>,
                                                      lng: <my long>,
                                                      fillColor: '#9966ff'
                                              },
                                      ],
                              },
                      },
      
      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      yea, that’s the one I’m trying. I just tried that module only and it’s not working. I ran the install again and it is warning about grunt styles not being installed. Seems like it’s missing parts.

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      Hi Sam,

      ok, got it all running and it is working. Your script works very well. I tried adding MMM-GoogleMapsTraffic as well and that seems to kill the mirror. It says it can’t find the config file. As long as I leave that out, it’s working.

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      @sdetweil

      cool, I just want a couple modules so hopefully won’t b a problem. It’s flashing now so I’ll reach out after it’s running and installed

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      ok, I’ll try it, but I may need to grab another pi. Not sure the zero can handle the full version

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      @sdetweil

      np, I appreciate all the help. Here are the results:

      pi@raspberrypi:~ $ cd MagicMirror/
      pi@raspberrypi:~/MagicMirror $ ls -laF run-start.sh
      -rwxr-xr-x 1 pi pi 2980 Oct 15 16:56 run-start.sh*
      pi@raspberrypi:~/MagicMirror $ uname -a
      Linux raspberrypi 5.4.51+ #1333 Mon Aug 10 16:38:02 BST 2020 armv6l GNU/Linux
      pi@raspberrypi:~/MagicMirror $ pgrep Xorg
      pi@raspberrypi:~/MagicMirror $ which chromium-browser
      pi@raspberrypi:~/MagicMirror $

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      it looks ok, not complaining. Am I just missing the front end?

      /home/pi/.pm2/logs/MagicMirror-out.log last 100 lines:
      0|MagicMir |
      0|MagicMir | > magicmirror@2.13.0 start /home/pi/MagicMirror
      0|MagicMir | > ./run-start.sh $1
      0|MagicMir |
      0|MagicMir | [2020-10-15 17:13:43.975] [LOG] Starting MagicMirror: v2.13.0
      0|MagicMir | [2020-10-15 17:13:44.068] [LOG] Loading config …
      0|MagicMir | [2020-10-15 17:13:44.123] [LOG] Loading module helpers …
      0|MagicMir | [2020-10-15 17:13:44.147] [LOG] No helper found for module: alert.
      0|MagicMir | [2020-10-15 17:13:44.569] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:13:44.578] [LOG] Module helper loaded: updatenotification
      0|MagicMir | [2020-10-15 17:13:44.590] [LOG] No helper found for module: clock.
      0|MagicMir | [2020-10-15 17:13:48.255] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:13:48.263] [LOG] Module helper loaded: calendar
      0|MagicMir | [2020-10-15 17:13:48.267] [LOG] No helper found for module: compliments.
      0|MagicMir | [2020-10-15 17:13:48.270] [LOG] No helper found for module: currentweather.
      0|MagicMir | [2020-10-15 17:13:48.283] [LOG] No helper found for module: weatherforecast.
      0|MagicMir | [2020-10-15 17:13:48.482] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:13:48.490] [LOG] Module helper loaded: newsfeed
      0|MagicMir | [2020-10-15 17:13:48.501] [LOG] All module helpers loaded.
      0|MagicMir | [2020-10-15 17:13:49.375] [LOG] Starting server on port 8080 …
      0|MagicMir | [2020-10-15 17:13:49.542] [LOG] Server started …
      0|MagicMir | [2020-10-15 17:13:49.563] [LOG] Connecting socket for: updatenotification
      0|MagicMir | [2020-10-15 17:13:49.569] [LOG] Connecting socket for: calendar
      0|MagicMir | [2020-10-15 17:13:49.593] [LOG] Starting node helper for: calendar
      0|MagicMir | [2020-10-15 17:13:49.601] [LOG] Connecting socket for: newsfeed
      0|MagicMir | [2020-10-15 17:13:49.615] [LOG] Starting node helper for: newsfeed
      0|MagicMir | [2020-10-15 17:13:49.617] [LOG] Sockets connected & modules started …
      0|MagicMir | [2020-10-15 17:13:49.621] [LOG]
      0|MagicMir | Ready to go! Please point your browser to: http://localhost:8080
      0|MagicMir | [2020-10-15 17:14:28.183] [LOG] [SIGINT] Received. Shutting down server…
      0|MagicMir | [2020-10-15 17:14:28.210] [LOG] Stopping module helper: updatenotification
      0|MagicMir | [2020-10-15 17:14:28.218] [LOG] Stopping module helper: calendar
      0|MagicMir | [2020-10-15 17:14:28.221] [LOG] Stopping module helper: newsfeed
      0|MagicMir |
      0|MagicMir | > magicmirror@2.13.0 start /home/pi/MagicMirror
      0|MagicMir | > ./run-start.sh $1
      0|MagicMir |
      0|MagicMir | [2020-10-15 17:14:40.950] [LOG] Starting MagicMirror: v2.13.0
      0|MagicMir | [2020-10-15 17:14:41.041] [LOG] Loading config …
      0|MagicMir | [2020-10-15 17:14:41.092] [LOG] Loading module helpers …
      0|MagicMir | [2020-10-15 17:14:41.115] [LOG] No helper found for module: alert.
      0|MagicMir | [2020-10-15 17:14:41.477] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:14:41.485] [LOG] Module helper loaded: updatenotification
      0|MagicMir | [2020-10-15 17:14:41.489] [LOG] No helper found for module: clock.
      0|MagicMir | [2020-10-15 17:14:45.097] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:14:45.104] [LOG] Module helper loaded: calendar
      0|MagicMir | [2020-10-15 17:14:45.107] [LOG] No helper found for module: compliments.
      0|MagicMir | [2020-10-15 17:14:45.110] [LOG] No helper found for module: currentweather.
      0|MagicMir | [2020-10-15 17:14:45.123] [LOG] No helper found for module: weatherforecast.
      0|MagicMir | [2020-10-15 17:14:45.302] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:14:45.309] [LOG] Module helper loaded: newsfeed
      0|MagicMir | [2020-10-15 17:14:45.311] [LOG] All module helpers loaded.
      0|MagicMir | [2020-10-15 17:14:46.068] [LOG] Starting server on port 8080 …
      0|MagicMir | [2020-10-15 17:14:46.244] [LOG] Server started …
      0|MagicMir | [2020-10-15 17:14:46.273] [LOG] Connecting socket for: updatenotification
      0|MagicMir | [2020-10-15 17:14:46.292] [LOG] Connecting socket for: calendar
      0|MagicMir | [2020-10-15 17:14:46.295] [LOG] Starting node helper for: calendar
      0|MagicMir | [2020-10-15 17:14:46.299] [LOG] Connecting socket for: newsfeed
      0|MagicMir | [2020-10-15 17:14:46.323] [LOG] Starting node helper for: newsfeed
      0|MagicMir | [2020-10-15 17:14:46.330] [LOG] Sockets connected & modules started …
      0|MagicMir | [2020-10-15 17:14:46.343] [LOG]
      0|MagicMir | Ready to go! Please point your browser to: http://localhost:8080
      0|MagicMir |
      0|MagicMir | > magicmirror@2.13.0 start /home/pi/MagicMirror
      0|MagicMir | > ./run-start.sh $1
      0|MagicMir |
      0|MagicMir | [2020-10-15 17:17:29.023] [LOG] Starting MagicMirror: v2.13.0
      0|MagicMir | [2020-10-15 17:17:29.117] [LOG] Loading config …
      0|MagicMir | [2020-10-15 17:17:29.195] [LOG] Loading module helpers …
      0|MagicMir | [2020-10-15 17:17:29.218] [LOG] No helper found for module: alert.
      0|MagicMir | [2020-10-15 17:17:29.614] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:17:29.623] [LOG] Module helper loaded: updatenotification
      0|MagicMir | [2020-10-15 17:17:29.635] [LOG] No helper found for module: clock.
      0|MagicMir | [2020-10-15 17:17:33.776] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:17:33.784] [LOG] Module helper loaded: calendar
      0|MagicMir | [2020-10-15 17:17:33.787] [LOG] No helper found for module: compliments.
      0|MagicMir | [2020-10-15 17:17:33.799] [LOG] No helper found for module: currentweather.
      0|MagicMir | [2020-10-15 17:17:33.802] [LOG] No helper found for module: weatherforecast.
      0|MagicMir | [2020-10-15 17:17:34.029] [LOG] Initializing new module helper …
      0|MagicMir | [2020-10-15 17:17:34.037] [LOG] Module helper loaded: newsfeed
      0|MagicMir | [2020-10-15 17:17:34.039] [LOG] All module helpers loaded.
      0|MagicMir | [2020-10-15 17:17:34.984] [LOG] Starting server on port 8080 …
      0|MagicMir | [2020-10-15 17:17:35.147] [LOG] Server started …
      0|MagicMir | [2020-10-15 17:17:35.176] [LOG] Connecting socket for: updatenotification
      0|MagicMir | [2020-10-15 17:17:35.200] [LOG] Connecting socket for: calendar
      0|MagicMir | [2020-10-15 17:17:35.203] [LOG] Starting node helper for: calendar
      0|MagicMir | [2020-10-15 17:17:35.207] [LOG] Connecting socket for: newsfeed
      0|MagicMir | [2020-10-15 17:17:35.235] [LOG] Starting node helper for: newsfeed
      0|MagicMir | [2020-10-15 17:17:35.246] [LOG] Sockets connected & modules started …
      0|MagicMir | [2020-10-15 17:17:35.249] [LOG]
      0|MagicMir | Ready to go! Please point your browser to: http://localhost:8080
      0|MagicMir | [2020-10-15 17:26:21.269] [LOG] [SIGINT] Received. Shutting down server…
      0|MagicMir | [2020-10-15 17:26:21.297] [LOG] Stopping module helper: updatenotification
      0|MagicMir | [2020-10-15 17:26:21.309] [LOG] Stopping module helper: calendar
      0|MagicMir | [2020-10-15 17:26:21.311] [LOG] Stopping module helper: newsfeed

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      Hi Sam,

      I went through and rebuilt my pi and then ran your install script. It says it’s installed and when I do a pm status I see the MagicMirror is online. I don’t see the mirror tho. Is there something else I need to do for that to come up on boot?

      Thanks,
      Kevin

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      ok, the entire MagicMirror directory or just the modules?

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      yup, zero w

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      ok, found that it created a log file for that process

      0 info it worked if it ends with ok
      1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’, ‘dev’ ]
      2 info using npm@6.9.0
      3 info using node@v10.16.0
      4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
      5 info lifecycle magicmirror@2.13.0~prestart: magicmirror@2.13.0
      6 info lifecycle magicmirror@2.13.0~start: magicmirror@2.13.0
      7 verbose lifecycle magicmirror@2.13.0~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.13.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/
      node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi
      n:/usr/local/games:/usr/games
      9 verbose lifecycle magicmirror@2.13.0~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.13.0~start: Args: [ ‘-c’,
      10 silly lifecycle ‘DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”’ ]
      11 info lifecycle magicmirror@2.13.0~start: Failed to exec start script
      12 verbose stack Error: magicmirror@2.13.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/ele ctron.js "dev"
      12 verbose stack spawn ENOENT
      12 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/li
      b/spawn.js:48:18)
      12 verbose stack at ChildProcess.emit (events.js:198:13)
      12 verbose stack at maybeClose (internal/child_process.js:982:16)
      12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
      13 verbose pkgid magicmirror@2.13.0
      14 verbose cwd /home/pi/MagicMirror
      15 verbose Linux 4.19.97+
      16 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start” “dev”
      17 verbose node v10.16.0
      18 verbose npm v6.9.0
      19 error file sh
      20 error code ELIFECYCLE
      21 error errno ENOENT
      22 error syscall spawn
      23 error magicmirror@2.13.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"
      23 error spawn ENOENT
      24 error Failed at the magicmirror@2.13.0 start script.
      24 error This is probably not a problem with npm. There is likely additional logging output above.
      25 verbose exit [ 1, true ]

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      ok, tried that and got the error:
      Failed at the magicmirror@2.13.0 start script.

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      @sdetweil

      Hi Sam, when I try to run npm start dev I get an error. Which directory does it expect to be run from? I tried in a few locations and nothing worked.

      Thanks,
      Kevin

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      @sdetweil

      Hi Sam,

      yea, I understand this would be pulling up the developer interface from the browser. But it’s not coming up. Is there another way to see those errors?

      Thanks,
      Kevin

      posted in Troubleshooting
      L
      laschalkh
    • RE: trouble with MMM-GoogleTrafficTimes

      @sdetweil

      Hi Sam, I tried that key sequence from the console. I’m not getting the interface.

      Thanks,
      Kevin

      posted in Troubleshooting
      L
      laschalkh
    • trouble with MMM-GoogleTrafficTimes

      Hi,

      I’m new to MagicMirror and I’m trying to get MMM-GoogleTrafficTimes to work. I’ve created a new api key from google and have US addresses entered for the origin and destinations. It’s not showing up on the mirror at all. I’ve tried tweaking it to make sure I didn’t have any typos and rebooted multiple times. Anyone have any suggestions on how to find what’s wrong?

      posted in Troubleshooting traffic
      L
      laschalkh
    • 1 / 1