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

    Posts

    Recent Best Controversial
    • RE: MMM-awesome-alexa
      pi@MagicMirror:~/MagicMirror $ pm2 log MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | [2020-10-10 18:21:34.355] [LOG]    Starting server on port 8080 ...
      0|MagicMir | [2020-10-10 18:21:34.359] [INFO]   You're using a full whitelist configuration to allow for all IPs
      0|MagicMir | [2020-10-10 18:21:34.365] [LOG]    Server started ...
      0|MagicMir | [2020-10-10 18:21:34.366] [LOG]    Connecting socket for: updatenotification
      0|MagicMir | [2020-10-10 18:21:34.367] [LOG]    Connecting socket for: MMM-awesome-alexa
      0|MagicMir | [2020-10-10 18:21:34.368] [LOG]    Connecting socket for: calendar
      0|MagicMir | [2020-10-10 18:21:34.368] [LOG]    Starting node helper for: calendar
      0|MagicMir | [2020-10-10 18:21:34.369] [LOG]    Connecting socket for: newsfeed
      0|MagicMir | [2020-10-10 18:21:34.369] [LOG]    Starting node helper for: newsfeed
      0|MagicMir | [2020-10-10 18:21:34.370] [LOG]    Sockets connected & modules started ...
      0|MagicMir | [2020-10-10 18:21:34.458] [LOG]    Launching application.
      0|MagicMir | [2020-10-10 18:21:37.148] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/fhemrittel%40gmail.com/public/basic.ics - Interval: 300000
      0|MagicMir | [2020-10-10 18:21:37.169] [LOG]    Create new news fetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMir | [2020-10-10 18:21:37.229] [INFO]   Checking git for module: MMM-awesome-alexa
      0|MagicMir | [2020-10-10 18:21:37.699] [INFO]   Newsfeed-Fetcher: Broadcasting 52 items.
      
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir | [2020-10-10 18:20:17.779] [ERROR]  (node:2631) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      0|MagicMir | [2020-10-10 18:20:17.779] [ERROR]  (node:2631) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      0|MagicMir | [2020-10-10 18:20:17.780] [ERROR]  (node:2631) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      0|MagicMir | [2020-10-10 18:20:17.780] [ERROR]  (node:2631) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      0|MagicMir | [2020-10-10 18:21:37.737] [ERROR]  Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/ical/fhemrittel%40gmail.com/public/basic.ics 404: Not Found
      0|MagicMir | [2020-10-10 18:21:37.855] [ERROR]  (node:2785) UnhandledPromiseRejectionWarning: Error: [object Object]
      0|MagicMir |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:6073
      0|MagicMir |     at processTicksAndRejections (internal/process/task_queues.js:89:5)
      0|MagicMir | [2020-10-10 18:21:37.856] [ERROR]  (node:2785) UnhandledPromiseRejectionWarning: Error: [object Object]
      0|MagicMir |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:6073
      0|MagicMir |     at processTicksAndRejections (internal/process/task_queues.js:89:5)
      0|MagicMir | [2020-10-10 18:21:37.856] [ERROR]  (node:2785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      0|MagicMir | [2020-10-10 18:21:37.857] [ERROR]  (node:2785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      0|MagicMir | [2020-10-10 18:21:37.857] [ERROR]  (node:2785) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      0|MagicMir | [2020-10-10 18:21:37.858] [ERROR]  (node:2785) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      pi@MagicMirror:~ $ pm2 stop 0
      [PM2] Applying action stopProcessId on app [0](ids: 0)
      [PM2] [MagicMirror](0) ✓
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id  │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0   │ MagicMirror    │ default     │ 2.13.0  │ fork    │ 0        │ 0      │ 2    │ stopped   │ 0%       │ 0b       │ pi       │ disabled │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      pi@MagicMirror:~ $
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      pi@MagicMirror:~ $ pm2 log MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir | [2020-10-10 17:31:02.630] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [2020-10-10 17:42:52.587] [ERROR]  Whoops! There was an uncaught exception...
      0|MagicMir | [2020-10-10 17:42:52.588] [ERROR]  Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
      0|MagicMir |     at Server.setupListenHandle [as _listen2] (net.js:1226:14)
      0|MagicMir |     at listenInCluster (net.js:1274:12)
      0|MagicMir |     at GetAddrInfoReqWrap.doListen [as callback] (net.js:1413:7)
      0|MagicMir |     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) {
      0|MagicMir |   code: 'EADDRINUSE',
      0|MagicMir |   errno: 'EADDRINUSE',
      0|MagicMir |   syscall: 'listen',
      0|MagicMir |   address: '127.0.0.1',
      0|MagicMir |   port: 8080
      0|MagicMir | }
      0|MagicMir | [2020-10-10 17:42:52.595] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-10-10 17:42:52.595] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | [2020-10-10 18:02:44.397] [LOG]    Module helper loaded: newsfeed
      0|MagicMir | [2020-10-10 18:02:44.397] [LOG]    All module helpers loaded.
      0|MagicMir | [2020-10-10 18:02:44.496] [LOG]    Starting server on port 8080 ...
      0|MagicMir | [2020-10-10 18:02:44.509] [LOG]    Server started ...
      0|MagicMir | [2020-10-10 18:02:44.509] [LOG]    Connecting socket for: updatenotification
      0|MagicMir | [2020-10-10 18:02:44.510] [LOG]    Connecting socket for: calendar
      0|MagicMir | [2020-10-10 18:02:44.511] [LOG]    Starting node helper for: calendar
      0|MagicMir | [2020-10-10 18:02:44.511] [LOG]    Connecting socket for: newsfeed
      0|MagicMir | [2020-10-10 18:02:44.512] [LOG]    Starting node helper for: newsfeed
      0|MagicMir | [2020-10-10 18:02:44.512] [LOG]    Sockets connected & modules started ...
      0|MagicMir | [2020-10-10 18:02:44.590] [LOG]    Launching application.
      0|MagicMir | [2020-10-10 18:02:47.001] [LOG]    Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMir | [2020-10-10 18:02:47.045] [LOG]    Create new news fetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMir | [2020-10-10 18:02:47.496] [INFO]   Newsfeed-Fetcher: Broadcasting 54 items.
      0|MagicMir | [2020-10-10 18:02:48.059] [INFO]   Calendar-Fetcher: Broadcasting 5 events.
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      @sdetweil Do I have to delete everything?

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      @sdetweil said in MMM-awesome-alexa:

      MMM-Windy.js

      It’s in the folder

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      Does it work for you?

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      pi@MagicMirror:~ $ pm2 logs --lines=100
      [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 100 lines:
      PM2        | 2020-10-10T17:04:04: PM2 log: Stopping app:mm id:0
      PM2        | 2020-10-10T17:04:05: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2020-10-10T17:04:05: PM2 log: pid=4305 msg=process killed
      PM2        | 2020-10-10T17:04:05: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2020-10-10T17:04:05: PM2 log: App [mm:0] online
      
      /home/pi/.pm2/logs/mm-error.log last 100 lines:
      0|mm       | [2020-10-10 17:04:09.488] [ERROR]  ERROR! Could not find main module js file for MMM-Windy
      0|mm       | [2020-10-10 17:04:13.694] [ERROR]  (node:4895) UnhandledPromiseRejectionWarning: Error: [object Object]
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:6073
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:89:5)
      0|mm       | [2020-10-10 17:04:13.695] [ERROR]  (node:4895) UnhandledPromiseRejectionWarning: Error: [object Object]
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:6073
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:89:5)
      0|mm       | [2020-10-10 17:04:13.695] [ERROR]  (node:4895) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      0|mm       | [2020-10-10 17:04:13.695] [ERROR]  (node:4895) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      0|mm       | [2020-10-10 17:04:13.696] [ERROR]  (node:4895) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      0|mm       | [2020-10-10 17:04:13.696] [ERROR]  (node:4895) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      
      /home/pi/.pm2/logs/mm-out.log last 100 lines:
      0|mm       |
      0|mm       | > magicmirror@2.13.0 start /home/pi/MagicMirror
      0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm       |
      0|mm       | [2020-10-10 17:04:07.203] [LOG]    Starting MagicMirror: v2.13.0
      0|mm       | [2020-10-10 17:04:07.210] [LOG]    Loading config ...
      0|mm       | [2020-10-10 17:04:07.215] [LOG]    Loading module helpers ...
      0|mm       | [2020-10-10 17:04:07.217] [LOG]    No helper found for module: alert.
      0|mm       | [2020-10-10 17:04:07.222] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:07.223] [LOG]    Module helper loaded: mmpm
      0|mm       | [2020-10-10 17:04:07.259] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:07.259] [LOG]    Module helper loaded: updatenotification
      0|mm       | [2020-10-10 17:04:07.260] [LOG]    No helper found for module: MMM-Carousel.
      0|mm       | [2020-10-10 17:04:07.261] [LOG]    No helper found for module: clock.
      0|mm       | [2020-10-10 17:04:08.117] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.117] [LOG]    Module helper loaded: MMM-awesome-alexa
      0|mm       | [2020-10-10 17:04:08.118] [LOG]    No helper found for module: iFrame.
      0|mm       | [2020-10-10 17:04:08.477] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.478] [LOG]    Module helper loaded: calendar
      0|mm       | [2020-10-10 17:04:08.480] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.480] [LOG]    Module helper loaded: MMM-OnScreenMenu
      0|mm       | [2020-10-10 17:04:08.481] [LOG]    No helper found for module: compliments.
      0|mm       | [2020-10-10 17:04:08.639] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.640] [LOG]    Module helper loaded: internet-monitor
      0|mm       | [2020-10-10 17:04:08.641] [LOG]    No helper found for module: MMM-windy.
      0|mm       | [2020-10-10 17:04:08.642] [LOG]    No helper found for module: currentweather.
      0|mm       | [2020-10-10 17:04:08.774] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.774] [LOG]    Module helper loaded: MMM-Remote-Control
      0|mm       | [2020-10-10 17:04:08.775] [LOG]    No helper found for module: weatherforecast.
      0|mm       | [2020-10-10 17:04:08.777] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.777] [LOG]    Module helper loaded: MMM-SmartTouch
      0|mm       | [2020-10-10 17:04:08.797] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 17:04:08.798] [LOG]    Module helper loaded: newsfeed
      0|mm       | [2020-10-10 17:04:08.798] [LOG]    All module helpers loaded.
      0|mm       | [2020-10-10 17:04:08.892] [LOG]    Starting server on port 8080 ...
      0|mm       | [2020-10-10 17:04:08.894] [INFO]   You're using a full whitelist configuration to allow for all IPs
      0|mm       | [2020-10-10 17:04:08.900] [LOG]    Server started ...
      0|mm       | [2020-10-10 17:04:08.901] [LOG]    Connecting socket for: mmpm
      0|mm       | [2020-10-10 17:04:08.902] [LOG]    Starting module helper: mmpm
      0|mm       | [2020-10-10 17:04:08.902] [LOG]    Connecting socket for: updatenotification
      0|mm       | [2020-10-10 17:04:08.903] [LOG]    Connecting socket for: MMM-awesome-alexa
      0|mm       | [2020-10-10 17:04:08.904] [LOG]    Connecting socket for: calendar
      0|mm       | [2020-10-10 17:04:08.904] [LOG]    Starting node helper for: calendar
      0|mm       | [2020-10-10 17:04:08.905] [LOG]    Connecting socket for: MMM-OnScreenMenu
      0|mm       | [2020-10-10 17:04:08.906] [LOG]    Connecting socket for: internet-monitor
      0|mm       | [2020-10-10 17:04:08.906] [LOG]    internet-monitor helper started ...
      0|mm       | [2020-10-10 17:04:08.907] [LOG]    Connecting socket for: MMM-Remote-Control
      0|mm       | [2020-10-10 17:04:08.907] [LOG]    Starting node helper for: MMM-Remote-Control
      0|mm       | [2020-10-10 17:04:08.914] [LOG]    Connecting socket for: MMM-SmartTouch
      0|mm       | [2020-10-10 17:04:08.914] [LOG]    Connecting socket for: newsfeed
      0|mm       | [2020-10-10 17:04:08.915] [LOG]    Starting node helper for: newsfeed
      0|mm       | [2020-10-10 17:04:08.915] [LOG]    Sockets connected & modules started ...
      0|mm       | [2020-10-10 17:04:08.991] [LOG]    Launching application.
      0|mm       | [2020-10-10 17:04:12.070] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/fhemrittel%40gmail.com/private-c492e1e266741d80fd373303d2eb7f99/basic.ics - Interval: 300000
      0|mm       | [2020-10-10 17:04:12.112] [LOG]    starting internet monitor node helper
      0|mm       | [2020-10-10 17:04:12.124] [LOG]    Smart Touch module has started
      0|mm       | [2020-10-10 17:04:12.132] [LOG]    Create new news fetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|mm       | [2020-10-10 17:04:12.186] [INFO]   Checking git for module: mmpm
      0|mm       | [2020-10-10 17:04:12.187] [INFO]   Checking git for module: MMM-Carousel
      0|mm       | [2020-10-10 17:04:12.214] [INFO]   Checking git for module: MMM-awesome-alexa
      0|mm       | [2020-10-10 17:04:12.243] [INFO]   Checking git for module: iFrame
      0|mm       | [2020-10-10 17:04:12.268] [INFO]   Checking git for module: MMM-OnScreenMenu
      0|mm       | [2020-10-10 17:04:12.294] [INFO]   Checking git for module: internet-monitor
      0|mm       | [2020-10-10 17:04:12.320] [INFO]   Checking git for module: MMM-Remote-Control
      0|mm       | [2020-10-10 17:04:12.346] [INFO]   Checking git for module: MMM-SmartTouch
      0|mm       | [2020-10-10 17:04:13.525] [INFO]   Newsfeed-Fetcher: Broadcasting 54 items.
      0|mm       | [2020-10-10 17:04:14.299] [INFO]   Calendar-Fetcher: Broadcasting 4 events.
      
      
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      @sdetweil

      pi@MagicMirror:~ $ pm2 log mm
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines                                                                                                                                                              option)
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.j                                                                                                                                                             s:1:6162
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:8                                                                                                                                                             9:5)
      0|mm       | [2020-10-10 16:05:13.621] [ERROR]  (node:1774) UnhandledPromiseReje                                                                                                                                                             ctionWarning: Unhandled promise rejection. This error originated either by throw                                                                                                                                                             ing inside of an async function without a catch block, or by rejecting a promise                                                                                                                                                              which was not handled with .catch(). (rejection id: 4)
      0|mm       | [2020-10-10 16:05:13.622] [ERROR]  (node:1774) UnhandledPromiseReje                                                                                                                                                             ctionWarning: Unhandled promise rejection. This error originated either by throw                                                                                                                                                             ing inside of an async function without a catch block, or by rejecting a promise                                                                                                                                                              which was not handled with .catch(). (rejection id: 4)
      0|mm       | [2020-10-10 16:42:49.278] [ERROR]  ERROR! Could not find main modul                                                                                                                                                             e js file for MMM-Windy
      0|mm       | [2020-10-10 16:42:53.517] [ERROR]  (node:4326) UnhandledPromiseReje                                                                                                                                                             ctionWarning: Error: [object Object]
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.j                                                                                                                                                             s:1:6073
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:8                                                                                                                                                             9:5)
      0|mm       | [2020-10-10 16:42:53.518] [ERROR]  (node:4326) UnhandledPromiseReje                                                                                                                                                             ctionWarning: Error: [object Object]
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.j                                                                                                                                                             s:1:6073
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:8                                                                                                                                                             9:5)
      0|mm       | [2020-10-10 16:42:53.519] [ERROR]  (node:4326) UnhandledPromiseReje                                                                                                                                                             ctionWarning: Unhandled promise rejection. This error originated either by throw                                                                                                                                                             ing inside of an async function without a catch block, or by rejecting a promise                                                                                                                                                              which was not handled with .catch(). (rejection id: 1)
      0|mm       | [2020-10-10 16:42:53.519] [ERROR]  (node:4326) UnhandledPromiseReje                                                                                                                                                             ctionWarning: Unhandled promise rejection. This error originated either by throw                                                                                                                                                             ing inside of an async function without a catch block, or by rejecting a promise                                                                                                                                                              which was not handled with .catch(). (rejection id: 1)
      0|mm       | [2020-10-10 16:42:53.520] [ERROR]  (node:4326) [DEP0018] Deprecatio                                                                                                                                                             nWarning: Unhandled promise rejections are deprecated. In the future, promise re                                                                                                                                                             jections that are not handled will terminate the Node.js process with a non-zero                                                                                                                                                              exit code.
      0|mm       | [2020-10-10 16:42:53.520] [ERROR]  (node:4326) [DEP0018] Deprecatio                                                                                                                                                             nWarning: Unhandled promise rejections are deprecated. In the future, promise re                                                                                                                                                             jections that are not handled will terminate the Node.js process with a non-zero                                                                                                                                                              exit code.
      
      /home/pi/.pm2/logs/mm-out.log last 15 lines:
      0|mm       | [2020-10-10 16:42:48.826] [LOG]    Launching application.
      0|mm       | [2020-10-10 16:42:51.828] [LOG]    Create new calendar fetcher for                                                                                                                                                              url: https://calendar.google.com/calendar/ical/fhemrittel%40gmail.com/private-c4                                                                                                                                                             92e1e266741d80fd373303d2eb7f99/basic.ics - Interval: 300000
      0|mm       | [2020-10-10 16:42:51.848] [LOG]    starting internet monitor node h                                                                                                                                                             elper
      0|mm       | [2020-10-10 16:42:51.854] [LOG]    Smart Touch module has started
      0|mm       | [2020-10-10 16:42:51.860] [LOG]    Create new news fetcher for url:                                                                                                                                                              https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|mm       | [2020-10-10 16:42:51.900] [INFO]   Checking git for module: mmpm
      0|mm       | [2020-10-10 16:42:51.901] [INFO]   Checking git for module: MMM-Car                                                                                                                                                             ousel
      0|mm       | [2020-10-10 16:42:51.928] [INFO]   Checking git for module: MMM-awe                                                                                                                                                             some-alexa
      0|mm       | [2020-10-10 16:42:51.954] [INFO]   Checking git for module: iFrame
      0|mm       | [2020-10-10 16:42:51.980] [INFO]   Checking git for module: MMM-OnS                                                                                                                                                             creenMenu
      0|mm       | [2020-10-10 16:42:52.006] [INFO]   Checking git for module: interne                                                                                                                                                             t-monitor
      0|mm       | [2020-10-10 16:42:52.031] [INFO]   Checking git for module: MMM-Rem                                                                                                                                                             ote-Control
      0|mm       | [2020-10-10 16:42:52.065] [INFO]   Checking git for module: MMM-Sma                                                                                                                                                             rtTouch
      0|mm       | [2020-10-10 16:42:53.295] [INFO]   Newsfeed-Fetcher: Broadcasting 5                                                                                                                                                             3 items.
      0|mm       | [2020-10-10 16:42:53.975] [INFO]   Calendar-Fetcher: Broadcasting 4                                                                                                                                                              events.
      
      
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:8                                                                                                                                                             9:5)
      0|mm       | [2020-10-10 01:57:43.816] [ERROR]  (node:15126) UnhandledPromiseRej                                                                                                                                                             ectionWarning: Unhandled promise rejection. This error originated either by thro                                                                                                                                                             wing inside of an async function without a catch block, or by rejecting a promis                                                                                                                                                             e which was not handled with .catch(). (rejection id: 1)
      0|mm       | [2020-10-10 01:57:43.819] [ERROR]  (node:15126) UnhandledPromiseRej                                                                                                                                                             ectionWarning: Unhandled promise rejection. This error originated either by thro                                                                                                                                                             wing inside of an async function without a catch block, or by rejecting a promis                                                                                                                                                             e which was not handled with .catch(). (rejection id: 1)
      0|mm       | [2020-10-10 01:57:43.820] [ERROR]  (node:15126) [DEP0018] Deprecati                                                                                                                                                             onWarning: Unhandled promise rejections are deprecated. In the future, promise r                                                                                                                                                             ejections that are not handled will terminate the Node.js process with a non-zer                                                                                                                                                             o exit code.
      0|mm       | [2020-10-10 01:57:43.823] [ERROR]  (node:15126) [DEP0018] Deprecati                                                                                                                                                             onWarning: Unhandled promise rejections are deprecated. In the future, promise r                                                                                                                                                             ejections that are not handled will terminate the Node.js process with a non-zer                                                                                                                                                             o exit code.
      0|mm       | [2020-10-10 01:57:44.478] [ERROR]  Calendar Error. Could not fetch                                                                                                                                                              calendar:  https://calendar.google.com/calendar/ical/fhemrittel%40gmail.com/publ                                                                                                                                                             ic/basic.ics 404: Not Found
      0|mm       | [2020-10-10 02:00:07.079] [ERROR]  Calendar Error. Could not fetch                                                                                                                                                              calendar:  https://calendar.google.com/calendar/ical/fhemrittel%40gmail.com/publ                                                                                                                                                             ic/basic.ics 404: Not Found
      0|mm       | [2020-10-10 02:00:07.387] [ERROR]  (node:15126) UnhandledPromiseRej                                                                                                                                                             ectionWarning: Error: [object Object]
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.j                                                                                                                                                             s:1:6073
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:8                                                                                                                                                             9:5)
      0|mm       | [2020-10-10 02:00:07.387] [ERROR]  (node:15126) UnhandledPromiseRej                                                                                                                                                             ectionWarning: Error: [object Object]
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.j                                                                                                                                                             s:1:6073
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:8                                                                                                                                                             9:5)
      0|mm       | [2020-10-10 02:00:07.388] [ERROR]  (node:15126) UnhandledPromiseRej                                                                                                                                                             ectionWarning: Unhandled promise rejection. This error originated either by thro                                                                                                                                                             wing inside of an async function without a catch block, or by rejecting a promis                                                                                                                                                             e which was not handled with .catch(). (rejection id: 2)
      0|mm       | [2020-10-10 02:00:07.388] [ERROR]  (node:15126) UnhandledPromiseRej                                                                                                                                                             ectionWarning: Unhandled promise rejection. This error originated either by thro                                                                                                                                                             wing inside of an async function without a catch block, or by rejecting a promis                                                                                                                                                             e which was not handled with .catch(). (rejection id: 2)
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      Thx Good night

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      can you send me ?

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      @Ghost2000 said in MMM-awesome-alexa:

      > magicmirror@2.13.0 config:check /home/pi/MagicMirror
      > node js/check_config.js
      
      [2020-10-10 00:52:40.394] [INFO]   Checking file...  /home/pi/MagicMirror/config/config.js
      [2020-10-10 00:52:40.490] [INFO]   Your configuration file doesn't contain syntax errors :)
      
      
      pi@MagicMirror:~ $ cd ~/MagicMirror/
      pi@MagicMirror:~/MagicMirror $ pm2 log mm
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:786:30)
      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
      0|mm       |     at Module.load (internal/modules/cjs/loader.js:645:32) {
      0|mm       |   code: 'MODULE_NOT_FOUND',
      0|mm       |   requireStack: [
      0|mm       |     '/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/index.js',
      0|mm       |     '/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js',
      0|mm       |     '/home/pi/MagicMirror/js/app.js',
      0|mm       |     '/home/pi/MagicMirror/js/electron.js',
      0|mm       |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
      0|mm       |     undefined
      0|mm       |   ]
      0|mm       | }
      0|mm       | [2020-10-10 00:55:35.178] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | [2020-10-10 00:55:35.178] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      /home/pi/.pm2/logs/mm-out.log last 15 lines:
      0|mm       | [2020-10-10 00:55:34.267] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 00:55:34.268] [LOG]    Module helper loaded: mmpm
      0|mm       | [2020-10-10 00:55:34.304] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 00:55:34.305] [LOG]    Module helper loaded: updatenotification
      0|mm       | [2020-10-10 00:55:34.306] [LOG]    No helper found for module: MMM-Carousel.
      0|mm       | [2020-10-10 00:55:34.306] [LOG]    No helper found for module: clock.
      0|mm       | [2020-10-10 00:55:35.154] [LOG]    Loading module helpers ...
      0|mm       | [2020-10-10 00:55:35.156] [LOG]    No helper found for module: alert.
      0|mm       | [2020-10-10 00:55:35.159] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 00:55:35.160] [LOG]    Module helper loaded: mmpm
      0|mm       | [2020-10-10 00:55:35.161] [LOG]    Initializing new module helper ...
      0|mm       | [2020-10-10 00:55:35.161] [LOG]    Module helper loaded: updatenotification
      0|mm       | [2020-10-10 00:55:35.162] [LOG]    No helper found for module: MMM-Carousel.
      0|mm       | [2020-10-10 00:55:35.163] [LOG]    No helper found for module: clock.
      0|mm       | [2020-10-10 00:55:35.253] [LOG]    Launching application.
      
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      > magicmirror@2.13.0 config:check /home/pi/MagicMirror
      > node js/check_config.js
      
      [2020-10-10 00:52:40.394] [INFO]   Checking file...  /home/pi/MagicMirror/config/config.js
      [2020-10-10 00:52:40.490] [INFO]   Your configuration file doesn't contain syntax errors :)
      
      

      Screen black… no Error

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      it works with your settings.

      http: // localhost: 3000 /? code = ANMcPyM …

      DANKE DANKE DANKE DANKE DANKE ! LOVE YOU!

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      http: // localhost: 3000 / oder http: // localhost: 3000 / authresponse

      which one is correct?

      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      pi@MagicMirror:~/MagicMirror/modules/MMM-awesome-alexa $ node config_helper.js
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module '/home/pi/MagicMirror/modules/MMM-awesome-alexa/config_helper.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
          at startup (internal/bootstrap/node.js:283:19)
          at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
      pi@MagicMirror:~/MagicMirror/modules/MMM-awesome-alexa $
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa
      const chalk = require("chalk");
      const clear = require("clear");
      const figlet = require("figlet");
      const inquirer = require("inquirer");
      const request = require("request-promise");
      const CLI = require("clui");
      
      const spinner = new CLI.Spinner("Getting response from Amazon...");
      
      const questions = [
          {
              name: "clientId",
              type: "input",
              message: "Enter your Client ID from Alexa Voice Service (AVS):",
              validate: value => {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Client ID.";
                  }
              },
          },
          {
              name: "clientSecret",
              type: "input",
              message: "Enter your Client Secret from Alexa Voice Service (AVS):",
              validate: function(value) {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Client Secret.";
                  }
              },
          },
          {
              name: "productId",
              type: "input",
              message: "Enter your Product ID from Alexa Voice Service (AVS):",
              validate: function(value) {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Product ID.";
                  }
              },
          },
          {
              name: "redirectUri",
              type: "input",
              message: "Enter your Redirect URI (allowed return URL) from Alexa Voice Service (AVS):",
              validate: function(value) {
                  const pattern = new RegExp(
                      "^(https?:\\/\\/)?" + // protocol
                      "((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name
                      "((\\d{1,3}\\.){3}\\d{1,3}))" + // OR ip (v4) address
                      "(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path
                      "(\\?[;&a-z\\d%_.~+=-]*)?" + // query string
                          "(\\#[-a-z\\d_]*)?$",
                      "i", // fragment locator
                  );
      
                  if (!!pattern.test(value)) {
                      return true;
                  } else {
                      return true;
                  }
              },
          },
      ];
      
      const authCodeQuestion = [
          {
              name: "authCode",
              type: "input",
              message: "Enter your Authorization code (from previous step):",
              validate: value => {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Authorization Code.";
                  }
              },
          },
      ];
      
      const continueQuestion = [
          {
              name: "continue",
              type: "confirm",
              message: "Do you wish to continue to generate the MagicMirror config?",
              default: true,
          },
      ];
      
      const configQuestions = [
          {
              name: "wakeWord",
              type: "list",
              message: "What do you want your Wake Word to be? (The phrase used to activate this module)",
              choices: ["Alexa", "Smart Mirror", "Snowboy"],
          },
          {
              name: "liteMode",
              type: "confirm",
              message: "Do you want to use lite mode?",
              default: false,
          },
          {
              name: "useVisualization",
              type: "confirm",
              message: "Do you want to use visulization?",
              default: true,
          },
      ];
      
      const generateQuery = params =>
          Object.keys(params)
              .map(key => key + "=" + params[key])
              .join("&");
      
      clear();
      
      console.log(chalk.yellow(figlet.textSync("Awesome Alexa", { horizontalLayout: "full" })));
      
      console.log(chalk.underline("Welcome to the Config Helper tool!"));
      console.log("This tool will help you get the Refresh Token needed to run MMM-awesome-alexa.");
      console.log(
          "It will optionally generate your config for you, if you wish. If not, you can still create it manually after.",
      );
      console.log("Go to https://developer.amazon.com/alexa/console/avs/products to get the details.\n");
      
      const run = async () => {
          const output = await inquirer.prompt(questions);
      
          const scopeData = {
              "alexa:all": {
                  productID: output.productId,
                  productInstanceAttributes: {
                      deviceSerialNumber: 123, // Can be anything
                  },
              },
          };
      
          const queryParams = generateQuery({
              client_id: output.clientId,
              scope: "alexa:all",
              scope_data: JSON.stringify(scopeData),
              response_type: "code",
              redirect_uri: output.redirectUri,
          });
      
          console.log(
              chalk.blue("Hooray! Link is generated. Part 1 is done. Please go on the link below.\n"),
          );
          console.log(
              chalk.yellow("Please be aware that at the end,"),
              chalk.bgRed("THERE WILL BE AN ERROR!"),
              chalk.green("This is normal.\n"),
          );
      
          console.log(`https://www.amazon.com/ap/oa?${queryParams}`);
      
          console.log("\n^^^ Copy and paste the above in your Browser ^^^, follow the instructions.");
          console.log(
              "The authorization code you want is in the address bar in the final screen: https://imgur.com/a/6DbYlKA",
          );
      
          const authOutput = await inquirer.prompt(authCodeQuestion);
      
          spinner.start();
      
          const amazonTokenReponse = await request.post("https://api.amazon.com/auth/o2/token", {
              form: {
                  grant_type: "authorization_code",
                  code: authOutput.authCode,
                  client_id: output.clientId,
                  client_secret: output.clientSecret,
                  redirect_uri: output.redirectUri,
              },
              json: true,
          });
      
          spinner.stop();
          console.log(
              chalk.bgGreen(
                  "\nComplete! Your refresh token should be in the Amazon response below. If not raise an issue:\n",
              ),
          );
          console.dir(amazonTokenReponse, { colors: true });
      
          const continueOutput = await inquirer.prompt(continueQuestion);
      
          if (!continueOutput.continue) {
              process.exit();
          }
      
          const configOutput = await inquirer.prompt(configQuestions);
      
          console.log(chalk.green("\nCongrats! Here is the full config:\n"));
          console.dir(
              {
                  module: "MMM-awesome-alexa",
                  position: "bottom_bar",
                  config: {
                      wakeWord: configOutput.wakeWord,
                      clientId: output.clientId,
                      clientSecret: output.clientSecret,
                      deviceId: output.productId,
                      refreshToken: amazonTokenReponse.refresh_token,
                      lite: configOutput.liteMode,
                      isSpeechVisualizationEnabled: configOutput.useVisualization,
                  },
              },
              { colors: true },
          );
      };
      
      run();
      
      
      posted in Utilities
      G
      Ghost2000
    • RE: MMM-awesome-alexa

      @sdetweil NO

      const chalk = require("chalk");
      const clear = require("clear");
      const figlet = require("figlet");
      const inquirer = require("inquirer");
      const request = require("request-promise");
      const CLI = require("clui");
      
      const spinner = new CLI.Spinner("Getting response from Amazon...");
      
      const questions = [
          {
              name: "clientId",
              type: "input",
              message: "Enter your Client ID from Alexa Voice Service (AVS):",
              validate: value => {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Client ID.";
                  }
              },
          },
          {
              name: "clientSecret",
              type: "input",
              message: "Enter your Client Secret from Alexa Voice Service (AVS):",
              validate: function(value) {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Client Secret.";
                  }
              },
          },
          {
              name: "productId",
              type: "input",
              message: "Enter your Product ID from Alexa Voice Service (AVS):",
              validate: function(value) {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Product ID.";
                  }
              },
          },
          {
              name: "redirectUri",
              type: "input",
              message: "Enter your Redirect URI (allowed return URL) from Alexa Voice Service (AVS):",
              validate: function(value) {
                  const pattern = new RegExp(
                      "^(https?:\\/\\/)?" + // protocol
                      "((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name
                      "((\\d{1,3}\\.){3}\\d{1,3}))" + // OR ip (v4) address
                      "(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path
                      "(\\?[;&a-z\\d%_.~+=-]*)?" + // query string
                          "(\\#[-a-z\\d_]*)?$",
                      "i", // fragment locator
                  );
      
                  if (!!pattern.test(value)) {
                      return true;
                  } else {
                      return "Invalid. Please enter your Redirect URI.";
                  }
              },
          },
      ];
      
      const authCodeQuestion = [
          {
              name: "authCode",
              type: "input",
              message: "Enter your Authorization code (from previous step):",
              validate: value => {
                  if (value.length) {
                      return true;
                  } else {
                      return "Please enter your Authorization Code.";
                  }
              },
          },
      ];
      
      const continueQuestion = [
          {
              name: "continue",
              type: "confirm",
              message: "Do you wish to continue to generate the MagicMirror config?",
              default: true,
          },
      ];
      
      const configQuestions = [
          {
              name: "wakeWord",
              type: "list",
              message: "What do you want your Wake Word to be? (The phrase used to activate this module)",
              choices: ["Alexa", "Smart Mirror", "Snowboy"],
          },
          {
              name: "liteMode",
              type: "confirm",
              message: "Do you want to use lite mode?",
              default: false,
          },
          {
              name: "useVisualization",
              type: "confirm",
              message: "Do you want to use visulization?",
              default: true,
          },
      ];
      
      const generateQuery = params =>
          Object.keys(params)
              .map(key => key + "=" + params[key])
              .join("&");
      
      clear();
      
      console.log(chalk.yellow(figlet.textSync("Awesome Alexa", { horizontalLayout: "full" })));
      
      console.log(chalk.underline("Welcome to the Config Helper tool!"));
      console.log("This tool will help you get the Refresh Token needed to run MMM-awesome-alexa.");
      console.log(
          "It will optionally generate your config for you, if you wish. If not, you can still create it manually after.",
      );
      console.log("Go to https://developer.amazon.com/alexa/console/avs/products to get the details.\n");
      
      const run = async () => {
          const output = await inquirer.prompt(questions);
      
          const scopeData = {
              "alexa:all": {
                  productID: output.productId,
                  productInstanceAttributes: {
                      deviceSerialNumber: 123, // Can be anything
                  },
              },
          };
      
          const queryParams = generateQuery({
              client_id: output.clientId,
              scope: "alexa:all",
              scope_data: JSON.stringify(scopeData),
              response_type: "code",
              redirect_uri: output.redirectUri,
          });
      
          console.log(
              chalk.blue("Hooray! Link is generated. Part 1 is done. Please go on the link below.\n"),
          );
          console.log(
              chalk.yellow("Please be aware that at the end,"),
              chalk.bgRed("THERE WILL BE AN ERROR!"),
              chalk.green("This is normal.\n"),
          );
      
          console.log(`https://www.amazon.com/ap/oa?${queryParams}`);
      
          console.log("\n^^^ Copy and paste the above in your Browser ^^^, follow the instructions.");
          console.log(
              "The authorization code you want is in the address bar in the final screen: https://imgur.com/a/6DbYlKA",
          );
      
          const authOutput = await inquirer.prompt(authCodeQuestion);
      
          spinner.start();
      
          const amazonTokenReponse = await request.post("https://api.amazon.com/auth/o2/token", {
              form: {
                  grant_type: "authorization_code",
                  code: authOutput.authCode,
                  client_id: output.clientId,
                  client_secret: output.clientSecret,
                  redirect_uri: output.redirectUri,
              },
              json: true,
          });
      
          spinner.stop();
          console.log(
              chalk.bgGreen(
                  "\nComplete! Your refresh token should be in the Amazon response below. If not raise an issue:\n",
              ),
          );
          console.dir(amazonTokenReponse, { colors: true });
      
          const continueOutput = await inquirer.prompt(continueQuestion);
      
          if (!continueOutput.continue) {
              process.exit();
          }
      
          const configOutput = await inquirer.prompt(configQuestions);
      
          console.log(chalk.green("\nCongrats! Here is the full config:\n"));
          console.dir(
              {
                  module: "MMM-awesome-alexa",
                  position: "bottom_bar",
                  config: {
                      wakeWord: configOutput.wakeWord,
                      clientId: output.clientId,
                      clientSecret: output.clientSecret,
                      deviceId: output.productId,
                      refreshToken: amazonTokenReponse.refresh_token,
                      lite: configOutput.liteMode,
                      isSpeechVisualizationEnabled: configOutput.useVisualization,
                  },
              },
              { colors: true },
          );
      };
      
      run();
      
      

      Have You Teamview ? You can help :D

      posted in Utilities
      G
      Ghost2000
    • 1 / 1