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

    Posts

    Recent Best Controversial
    • RE: Cronjob doesn't work with my MM

      ok so with pm2 flush and this crontab

      52 12 * * *   pi     pm2 stop MagicMirror >/dev/null 2>&1
      54 12 * * *   pi     pm2 start MagicMirror
      
      

      the pm2 logs :
      pm2 errors

      [12:51:04.343] [ERROR]  ERROR! Could not find main module js file for MMM-GooglemapsTraffic.original
      ATTENTION: default value of option force_s3tc_enable overridden by environment.
      [12:51:08.418] [ERROR]  ERROR! Could not find main module js file for MagicMirror-Display-Controller
      [12:51:09.801] [ERROR]  ERROR! Could not find main module js file for fabio
      [12:51:21.774] [ERROR]  (node:25245) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      [12:51:35.140] [ERROR]  Error: status code: 401
          at /home/pi/MagicMirror/modules/MMM-FreeBox-Monitor/node_modules/omdb/index.js:211:25
          at done (/home/pi/MagicMirror/modules/MMM-FreeBox-Monitor/node_modules/needle/lib/needle.js:432:14)
          at PassThrough.<anonymous> (/home/pi/MagicMirror/modules/MMM-FreeBox-Monitor/node_modules/needle/lib/needle.js:671:11)
          at PassThrough.emit (events.js:182:13)
          at endReadableNT (_stream_readable.js:1090:12)
          at process._tickCallback (internal/process/next_tick.js:63:19)
      

      pm2 out

      
      > magicmirror@2.10.1 start /home/pi/MagicMirror
      > ./run-start.sh
      
      [12:50:32.600] [LOG]    Starting MagicMirror: v2.10.1
      [12:50:32.632] [LOG]    Loading config ...
      [12:50:32.668] [LOG]    Loading module helpers ...
      [12:50:32.670] [LOG]    No helper found for module: alert.
      [12:50:32.820] [LOG]    Initializing new module helper ...
      [12:50:32.826] [LOG]    Module helper loaded: updatenotification
      [12:50:32.829] [LOG]    No helper found for module: clock.
      [12:50:34.340] [LOG]    Initializing new module helper ...
      [12:50:34.341] [LOG]    Module helper loaded: calendar
      [12:50:34.343] [LOG]    No helper found for module: weatherforecast.
      [12:50:34.471] [LOG]    Initializing new module helper ...
      [12:50:34.472] [LOG]    Module helper loaded: newsfeed
      [12:50:34.483] [LOG]    No helper found for module: MMM-Globe.
      [12:50:35.854] [LOG]    Initializing new module helper ...
      [12:50:35.856] [LOG]    Module helper loaded: MMM-MovieListings
      [12:50:35.862] [LOG]    No helper found for module: MMM-Scrobbler.
      [12:50:37.296] [LOG]    Initializing new module helper ...
      [12:50:37.297] [LOG]    Module helper loaded: MMM-soccer
      [12:50:44.499] [LOG]    Initializing new module helper ...
      [12:50:44.501] [LOG]    Module helper loaded: MMM-News
      [12:50:44.521] [LOG]    Initializing new module helper ...
      [12:50:44.528] [LOG]    Module helper loaded: WallberryTheme
      [12:50:44.532] [LOG]    No helper found for module: WB-clock.
      [12:50:44.541] [LOG]    Initializing new module helper ...
      [12:50:44.543] [LOG]    Module helper loaded: WB-weather
      [12:50:44.578] [LOG]    Initializing new module helper ...
      [12:50:44.580] [LOG]    Module helper loaded: MMM-GroveGestures
      [12:50:45.966] [LOG]    Initializing new module helper ...
      [12:50:45.967] [LOG]    Module helper loaded: MMM-AQI
      [12:50:48.096] [LOG]    Initializing new module helper ...
      [12:50:48.099] [LOG]    Check MagicMirror version for node helper 'MMM-Strava' - Minimum version:  2.2.0 - Current version: 2.10.1
      [12:50:48.101] [LOG]    Version is ok!
      [12:50:48.102] [LOG]    Module helper loaded: MMM-Strava
      [12:50:48.834] [LOG]    Initializing new module helper ...
      [12:50:48.836] [LOG]    Module helper loaded: MMM-GooglePhotos
      [12:50:51.424] [LOG]    Initializing new module helper ...
      [12:50:51.426] [LOG]    Module helper loaded: MMM-FreeBox-Monitor
      [12:50:51.428] [LOG]    No helper found for module: currentweather.
      [12:50:51.434] [LOG]    No helper found for module: domoticz.
      [12:50:51.692] [LOG]    Initializing new module helper ...
      [12:50:51.694] [LOG]    Module helper loaded: MMM-ModuleScheduler
      [12:50:51.935] [LOG]    Initializing new module helper ...
      [12:50:51.936] [LOG]    Module helper loaded: MMM-Remote-Control
      [12:50:53.520] [LOG]    Initializing new module helper ...
      [12:50:53.522] [LOG]    Module helper loaded: MMM-NowPlayingOnSpotify
      [12:50:54.681] [LOG]    Initializing new module helper ...
      [12:50:54.687] [LOG]    Module helper loaded: MMM-COVID19-SPARKLINE
      [12:50:55.499] [LOG]    Initializing new module helper ...
      [12:50:55.500] [LOG]    Module helper loaded: MMM-Hotword
      [12:51:01.172] [LOG]    Initializing new module helper ...
      [12:51:01.173] [LOG]    Module helper loaded: MMM-AssistantMk2
      [12:51:01.176] [LOG]    No helper found for module: MMM-pages.
      [12:51:01.180] [LOG]    No helper found for module: MMM-page-indicator.
      [12:51:01.182] [LOG]    All module helpers loaded.
      [12:51:01.187] [LOG]    Starting server on port 8080 ... 
      [12:51:01.197] [INFO]   You're using a full whitelist configuration to allow for all IPs
      [12:51:01.210] [LOG]    Server started ...
      [12:51:01.215] [LOG]    Connecting socket for: updatenotification
      [12:51:01.219] [LOG]    Connecting socket for: calendar
      [12:51:01.222] [LOG]    Starting node helper for: calendar
      [12:51:01.225] [LOG]    Connecting socket for: newsfeed
      [12:51:01.228] [LOG]    Starting module: newsfeed
      [12:51:01.230] [LOG]    Connecting socket for: MMM-MovieListings
      [12:51:01.231] [LOG]    MMM-MovieListing helper started...
      [12:51:01.233] [LOG]    Connecting socket for: MMM-soccer
      [12:51:01.234] [LOG]    Starting module: MMM-soccer
      [12:51:01.235] [LOG]    Connecting socket for: MMM-News
      [12:51:01.237] [LOG]    Connecting socket for: WallberryTheme
      [12:51:01.238] [LOG]    Starting module helper: WallberryTheme
      [12:51:01.239] [LOG]    Connecting socket for: WB-weather
      [12:51:01.242] [LOG]    Connecting socket for: MMM-GroveGestures
      [12:51:01.245] [LOG]    Connecting socket for: MMM-AQI
      [12:51:01.247] [LOG]    MMM-AQI helper started ...
      [12:51:01.250] [LOG]    Connecting socket for: MMM-Strava
      [12:51:01.253] [LOG]    Starting module helper: MMM-Strava
      [12:51:01.258] [LOG]    Connecting socket for: MMM-GooglePhotos
      [12:51:01.261] [LOG]    Connecting socket for: MMM-FreeBox-Monitor
      [12:51:01.265] [LOG]    Starting module: MMM-FreeBox-Monitor
      [12:51:01.266] [LOG]    Connecting socket for: MMM-ModuleScheduler
      [12:51:01.267] [LOG]    Starting node helper for: MMM-ModuleScheduler
      [12:51:01.269] [LOG]    Connecting socket for: MMM-Remote-Control
      [12:51:01.270] [LOG]    Starting node helper for: MMM-Remote-Control
      [12:51:01.293] [LOG]    Connecting socket for: MMM-NowPlayingOnSpotify
      [12:51:01.296] [LOG]    Connecting socket for: MMM-COVID19-SPARKLINE
      [12:51:01.297] [LOG]    Starting node helper for: MMM-COVID19-SPARKLINE
      [12:51:01.298] [LOG]    Connecting socket for: MMM-Hotword
      [12:51:01.299] [LOG]    [HOTWORD] MMM-Hotword starts
      [12:51:01.301] [LOG]    Connecting socket for: MMM-AssistantMk2
      [12:51:01.302] [LOG]    Sockets connected & modules started ...
      [12:51:02.126] [LOG]    Launching application.
      [12:51:20.629] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/lxxxxxxx/basic.ics - Interval: 300000
      [12:51:20.672] [LOG]    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/xxxxxx/basic.ics - Interval: 300000
      [12:51:20.866] [LOG]    Create new news fetcher for url: https://www.francetvinfo.fr/titres.rss - Interval: 300000
      [12:51:21.153] [LOG]    Get league table for url http://api.football-data.org/v2/competitions/FL1/standings
      [12:51:21.209] [LOG]    [NEWS] Initialized.
      [12:51:21.298] [LOG]    FREEBOX: "CONNECT" [object Object]
      [12:51:21.308] [LOG]    { track_id: 0,
        app_token:
         'rxxxxxxx,
        appId: 'fr.freebox',
        challenge: 'xxxxxxxxxxx',
        session_token:
         'xa5r1W+kxfU+tnnR9U/10YzBJ1/xxxxxxxx }
      [12:51:21.355] [LOG]    MMM-ModuleScheduler is removing all scheduled jobs
      [12:51:21.356] [LOG]    MMM-ModuleScheduler received CREATE_NOTIFICATION_SCHEDULE
      [12:51:21.360] [LOG]    MMM-ModuleScheduler is scheduling SHOW_ALERT using "35 11 * * *
      [12:51:21.445] [LOG]    MMM-ModuleScheduler has scheduled SHOW_ALERT
      [12:51:21.461] [LOG]    MMM-ModuleScheduler will next send SHOW_ALERT at Mon May 18 2020 11:35:00 GMT+0200 (CEST)
      [12:51:21.463] [LOG]    MMM-ModuleScheduler is scheduling SHOW_ALERT using "13 15 * * *
      [12:51:21.477] [LOG]    MMM-ModuleScheduler has scheduled SHOW_ALERT
      [12:51:21.485] [LOG]    MMM-ModuleScheduler will next send SHOW_ALERT at Sun May 17 2020 15:13:00 GMT+0200 (CEST)
      [12:51:21.486] [LOG]    MMM-ModuleScheduler is scheduling REMOTE_ACTION using "55 11 * * *
      [12:51:21.502] [LOG]    MMM-ModuleScheduler has scheduled REMOTE_ACTION
      [12:51:21.540] [LOG]    MMM-ModuleScheduler will next send REMOTE_ACTION at Mon May 18 2020 11:55:00 GMT+0200 (CEST)
      [12:51:21.544] [LOG]    MMM-ModuleScheduler is scheduling REMOTE_ACTION using "00 08 * * *
      [12:51:21.556] [LOG]    MMM-ModuleScheduler has scheduled REMOTE_ACTION
      [12:51:21.570] [LOG]    MMM-ModuleScheduler will next send REMOTE_ACTION at Mon May 18 2020 08:00:00 GMT+0200 (CEST)
      [12:51:21.573] [LOG]    MMM-ModuleScheduler is scheduling REMOTE_ACTION using "00 19 * * *
      [12:51:21.583] [LOG]    MMM-ModuleScheduler has scheduled REMOTE_ACTION
      [12:51:21.587] [LOG]    MMM-ModuleScheduler will next send REMOTE_ACTION at Sun May 17 2020 19:00:00 GMT+0200 (CEST)
      [12:51:21.642] [LOG]    [COVID:CORE] Scan starts.
      [12:51:21.739] [LOG]    [HOTWORD] Recipe is loaded: with-AMk2v3_Jarvis.js
      [12:51:22.200] [LOG]    CallbackGetChallenge -> [object Object]
      [12:51:22.722] [LOG]    Electron's cache successfully cleared.
      [12:51:23.375] [LOG]    Refreshed access token because it has expired. Expired at: 12:51:21 now is: 12:51:23
      [12:51:25.260] [LOG]    [NEWS] Articles are aggregated :  45
      [12:51:25.784] [LOG]    [HOTWORD] begins.
      [12:51:25.788] [LOG]    [HOTWORD] Detector starts listening.
      [12:51:26.050] [LOG]    [COVID:CORE] Access to data source.
      [12:51:27.283] [LOG]    [COVID:CORE] Resolving: csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv
      [12:51:27.963] [LOG]    [COVID:CORE] Resolving: csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv
      [12:51:30.338] [LOG]    [COVID:CORE] Resolving: csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv
      [12:51:30.422] [LOG]    can't find property recovered Canada:
      [12:51:30.423] [LOG]    adding...
      [12:51:30.677] [LOG]    [COVID:CORE] Calculating Wordlwide total.
      [12:51:30.888] [LOG]    [COVID:CORE] Scan Completed.
      [12:51:33.466] [LOG]    [AMK2] MMM-AssistantMk2 Version: 3.3.0
      [12:51:33.478] [LOG]    [AMK2] Response delay is set to 0.5 second
      [12:51:33.481] [LOG]    [AMK2] Use HTML5 for audio response
      [12:51:33.496] [LOG]    [AMK2] RECIPE_LOADED: with-MMM-Hotword.js
      [12:51:33.498] [LOG]    [AMK2] NO_ACTION_TO_MANAGE
      [12:51:33.521] [LOG]    [AMK2] ASSISTANT_WEB Started
      [12:51:33.538] [LOG]    [AMK2] AssistantMk2 is initialized.
      [12:51:33.906] [LOG]    FREEBOX: "GET_CALLS" [object Object]
      [12:51:33.960] [LOG]    FREEBOX: "GET_DOWNLOADS" [object Object]
      [12:51:34.090] [LOG]    FREEBOX: "GET_CONNECTIONSTATUS" [object Object]
      [12:55:40.854] [LOG]    Shutting down server...
      [12:55:40.865] [LOG]    Stopping module helper: updatenotification
      [12:55:40.876] [LOG]    Stopping module helper: calendar
      [12:55:40.882] [LOG]    Stopping module helper: newsfeed
      [12:55:40.884] [LOG]    Stopping module helper: MMM-MovieListings
      [12:55:40.886] [LOG]    Stopping module helper: MMM-soccer
      [12:55:40.891] [LOG]    Stopping module helper: MMM-News
      [12:55:40.897] [LOG]    Stopping module helper: WallberryTheme
      [12:55:40.903] [LOG]    Stopping module helper: WB-weather
      [12:55:40.914] [LOG]    Stopping module helper: MMM-AQI
      [12:55:40.916] [LOG]    Stopping module helper: MMM-Strava
      [12:55:40.918] [LOG]    Stopping module helper: MMM-GooglePhotos
      [12:55:40.920] [LOG]    Stopping module helper: MMM-FreeBox-Monitor
      [12:55:40.921] [LOG]    Stopping module helper: MMM-ModuleScheduler
      [12:55:40.932] [LOG]    Stopping module helper: MMM-NowPlayingOnSpotify
      [12:55:40.936] [LOG]    Stopping module helper: MMM-COVID19-SPARKLINE
      [12:55:40.941] [LOG]    Stopping module helper: MMM-Hotword
      [12:55:40.946] [LOG]    Stopping module helper: MMM-AssistantMk2
      
      

      and cron log

      May 17 12:49:33 raspberrypi crontab[25141]: (pi) BEGIN EDIT (pi)
      May 17 12:50:12 raspberrypi crontab[25141]: (pi) REPLACE (pi)
      May 17 12:50:12 raspberrypi crontab[25141]: (pi) END EDIT (pi)
      May 17 12:51:01 raspberrypi cron[410]: (pi) RELOAD (crontabs/pi)
      May 17 12:52:01 raspberrypi CRON[25574]: (pi) CMD (pi     pm2 stop MagicMirror >/dev/null 2>&1)
      May 17 12:54:01 raspberrypi CRON[25592]: (pi) CMD (pi     pm2 start MagicMirror)
      May 17 12:54:01 raspberrypi CRON[25582]: (CRON) info (No MTA installed, discarding output)
      

      Do you see something wrong ?

      posted in Troubleshooting
      M
      MisterT
    • RE: Cronjob doesn't work with my MM

      ok so with this crontab

      51 15 * * * pi pm2 stop MagicMirror >/dev/null 2>&1
      53 15 * * * pi pm2 start MagicMirror

      i have in .pm2/logs

      2020-05-16T14:49:45: PM2 log: App [MagicMirror:0] starting in -fork mode-
      2020-05-16T14:49:45: PM2 log: App [MagicMirror:0] online
      2020-05-16T14:52:43: PM2 log: Stopping app:MagicMirror id:0
      2020-05-16T14:52:44: PM2 log: pid=15018 msg=failed to kill - retrying in 100ms
      2020-05-16T14:52:44: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      2020-05-16T14:52:44: PM2 log: pid=15018 msg=process killed
      2020-05-16T15:39:20: PM2 log: [PM2] This PM2 is not UP TO DATE
      2020-05-16T15:39:20: PM2 log: [PM2] Upgrade to version 4.4.0
      2020-05-16T15:49:50: PM2 log: App [MagicMirror:0] starting in -fork mode-
      2020-05-16T15:49:50: PM2 log: App [MagicMirror:0] online
      2020-05-16T15:55:25: PM2 log: Stopping app:MagicMirror id:0
      2020-05-16T15:55:26: PM2 log: pid=16655 msg=failed to kill - retrying in 100ms
      2020-05-16T15:55:26: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      2020-05-16T15:55:26: PM2 log: pid=16655 msg=process killed
      

      and cron logs:

      May 16 15:48:21 raspberrypi crontab[16627]: (pi) BEGIN EDIT (pi)
      May 16 15:49:40 raspberrypi crontab[16627]: (pi) REPLACE (pi)
      May 16 15:49:40 raspberrypi crontab[16627]: (pi) END EDIT (pi)
      May 16 15:50:01 raspberrypi cron[410]: (pi) RELOAD (crontabs/pi)
      May 16 15:51:02 raspberrypi CRON[17002]: (pi) CMD (pi     pm2 stop MagicMirror >/dev/null 2>&1)
      May 16 15:53:01 raspberrypi CRON[17032]: (pi) CMD (pi     pm2 start MagicMirror)
      May 16 15:53:01 raspberrypi CRON[17026]: (CRON) info (No MTA installed, discarding output)
      

      so i don’t understand nothing on pm2 but cronjob seems to work

      Have you an idea?

      posted in Troubleshooting
      M
      MisterT
    • Cronjob doesn't work with my MM

      Hi everybody

      I have a problem with crontab and cronjob. My magicmirror doesn’t stop or refresh or restart or start with a cronjob.

      I search a solution on the forum but i still have the problem

      I use crontab -e without sudo and pm2 launch my magicmirror in /home/pi/MagicMirror

      my crontab seems like:

      # m h  dom mon dow   command
      01 00 * * *   pi     /home/pi/pm2 stop MagicMirror
      03 00 * * *   pi     /home/pi/pm2 reload MagicMirror
      00 08 * * *   pi     /home/pi/pm2 stop MagicMirror
      03 08 * * *   pi     /home/pi/pm2 reload MagicMirror
      52 14 * * *   pi     pm2 stop MagicMirror >/dev/null 2>&1
      18 20 * * *   pi     /home/pi/MagicMirror/pm2 start MagicMirror
      
      

      i try different solution but nothing happens.

      Can anybody help me please?

      Thx for next answers

      posted in Troubleshooting
      M
      MisterT
    • RE: MMM-COVID19-SPARKLINE

      Hi everybody,

      just a question about countries.
      It is possible to add France ? or is too complicated ?

      take care of yourself :winking_face:

      posted in Health
      M
      MisterT
    • RE: MMM-GoogleMapsTraffic

      Hi, i just a question about MMM-GoogleMapsTraffic and google console plateform. My period of free account is finished so my apy key is not usable. If i understand the only solution to obtain a valid api key with google maps is to pay ?

      An other question is if the result is the same with api key for MMM-Google photos and MMM- MK2 ?

      Thanks for next answers

      posted in Transport
      M
      MisterT
    • RE: MMM-AssistantMk2

      @sdetweil everything is fine now :smiling_face_with_open_mouth_cold_sweat:

      With a lot of tests and modification in my confis.js, i forgot to enable MMM-GoogleMapsTraffic in MMM-Pages module config file :dizzy_face:
      So now it’s great

      Thx for your support

      See you next time

      posted in System
      M
      MisterT
    • RE: MMM-AssistantMk2

      @sdetweil ok i installed MMM-GoogleMapsTraffic from your repo and i launched my MM. The result is :

      • MMM-MK2 works very well
      • MMM-GoogleMapsTraffic not works. I haven’t maps on the screen

      When i installed from your repo i had some “warn” message.See below

      npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
      npm notice created a lockfile as package-lock.json. You should commit this file.
      npm WARN grunt-stylelint@0.14.0 requires a peer of stylelint@^13.2.0 but none is installed. You must install peer dependencies yourself.
      npm WARN stylelint-config-standard@20.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself.
      npm WARN stylelint-config-recommended@3.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself.
      npm WARN MMM-GoogleMapsTraffic@1.0.0 No repository field.
      

      is it possible that these “warn” are the problem ?

      My config if need:

               {
      module: 'MMM-GoogleMapsTraffic',
               position: 'bottom_left',
                 config: {
                    key: 'xxxxxxxxx',
                     lat: 4x.470485,
                      lng: x.231369,
                      height: '300px',
                      width: '300px',
      		zoom: 14,
                      styledMapType: "transparent",
                      disableDefaultUI: true,
                      backgroundColor: 'hsla(0, 0%, 0%, 0)',
                      	markers: [
                          			{
                              lat: 4x.470485,
                              lng: x.231369,
                              fillColor: '#9966ff'
                          		},
                      	],
                  	},
              	},
      
      posted in System
      M
      MisterT
    • RE: MMM-AssistantMk2

      @Sean after uninstall, re install, rebuilt electron from MK2 and from Hotword, it was always the same.
      So i decided to start a simple config.js with only default modules and Mk2 and hotword. Finaly…Tada !!! it works.

      The guilty module is MMM-GooglemapsTraffic. So I hid it in my config.js

      I have no console log about Mk2 if MMM-GooglemapsTraffic is on.

      Have you an idea?

      posted in System
      M
      MisterT
    • RE: MMM-AssistantMk2

      hi @Sean thanks for your reply. So retry auto installation with gc6 and rebuild electron. Then finish the config with my audio and mic. Great
      After these, i download my credentials then make my default profile.
      So everithing seem to bo good. that’t why i start MM and:
      MK2v3 logo is on my Magic mirror with animation but when i say a simple sentence, nothing happen.
      I changed hotword word to Jarvis and html5 to mpg321 but it’s the same thing.

      See below my config js for hotword and MK2

      			{
      	module: "MMM-Hotword",
      	position: "top_left",
      	config: {
      	useDisplay: false,
      	chimeOnFinish: null,
      	recipes: ["with-AMk2v3_Jarvis.js"],
      	mic: {
      		recordProgram: "arecord",
      		device: "plughw:1",
                  },
      				  },
      	},
      		{
        	module: "MMM-AssistantMk2",
        	position: "top_right",
        	config: {
      	debug: true,
      	 ui: "Classic",
      	assistantConfig: {
      	latitude: 43.64074, // -90.0 - +90.0
      	longitude: 5.09545, // -180.0 - +180.0
      					  },
      	responseConfig: {
      	useHTML5: false, // sound render by HTML5
      	playProgram: "mpg321",
      				},
      	micConfig: {
      	recorder: "arecord",
      	device: "plughw:1",
      				   },
      	recipes: [
      	"with-MMM-Hotword.js"
      				   ],
      	profiles: {
      	"default": {
      		profileFile: "default.json",
      			lang: "fr-FR"
      				 }
      
      				  },
      			},
      		},
      

      have you an idea ?

      posted in System
      M
      MisterT
    • RE: MMM-AssistantMk2

      Hi Sean,
      Nice works for MK2 update but i have a problem to install it. I launched the auto installation but a packet is not found. gcc-7 is missing. when a try to install manually the answer is (in french):

      pi@raspberrypi:~/MagicMirror/modules/MMM-AssistantMk2 $ sudo apt-get install gcc-7
      Lecture des listes de paquets... Fait
      Construction de l'arbre des dépendances       
      Lecture des informations d'état... Fait
      E: Impossible de trouver le paquet gcc-7
      
      

      when i write gcc -v the result is:

      gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1) 
      

      And without this my Magic mirror turn into a black screen

      How i can install gcc-7 ?
      Do i need an update of raspbian to install gcc-7. I’m on last version of raspbian Stretch

      Thanks for your support and your next answers

      posted in System
      M
      MisterT
    • RE: MMM-Domoticz Cannot read property '0' of undefined

      Hi, I come back again because @sdetweil send me a MMM-Domoticz module. This module works with user and password of domoticz. So if you want see your domoticz devices on your MM you can use this code below.
      Just copy it on text editor and save it as domoticz.js in your MM module folder and in a domoticz folder

      /* global Module */
      
      /* Magic Mirror
       * Module: Domoticz
       *
       * By Mathias Arvidsson  & editing by sdetewell
       */
      
      Module.register("domoticz",{
      
      	defaults: {
      		units: 0,
      		updateInterval: 2000,
      		animationSpeed: 1000,
      		timeFormat: "HH:MM:ss",
      		lang: "en",
      
      		initialLoadDelay: 0,
      		retryDelay: 2500,
      
              apiBase: "http://xxx.xxx.x.xx",
      		apiUser: "xxxxx",
      		apiPw: "xxxxxxxxx",
      		sensors: [
      			{
      				idx: "1",
      				symbolon: "fa fa-user",
      				symboloff: "fa fa-user-o",
      				hiddenon: false,
      				hiddenoff: false,
      				customTitle: "",
      			},
      		],
      	},
      	keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
      		// sample data for parse testing
      	foo:'{ "result": [\
         {"Name":"test1", "Data":"foobar1","type":"something1"},\
      	  {"Name":"test2", "Data":"foobar2","type":"something2"},\
      		 {"Name":"test3", "Data":"foobar3","type":"something3"},\
      		  {"Name":"test4", "Data":"foobar4","type":"something4"}\
      ]}',
      
      	firstEvent: false,
      
        Base64_encode : function(input) {
          var output = "";
          var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
          var i = 0;
          input = this.Base64_utf8_encode(input);
          while (i < input.length) {
            chr1 = input.charCodeAt(i++);
            chr2 = input.charCodeAt(i++);
            chr3 = input.charCodeAt(i++);
            enc1 = chr1 >> 2;
            enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
            enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
            enc4 = chr3 & 63;
            if (isNaN(chr2)) {
              enc3 = enc4 = 64;
            } else if (isNaN(chr3)) {
              enc4 = 64;
            }
            output = output + this.keyStr.charAt(enc1) + this.keyStr.charAt(enc2) + this.keyStr.charAt(enc3) + this.keyStr.charAt(enc4);
          }
          return output;
        },
      
        Base64_decode : function(input) {
          var output = "";
          var chr1, chr2, chr3;
          var enc1, enc2, enc3, enc4;
          var i = 0;
          input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
          while (i < input.length) {
            enc1 = this.keyStr.indexOf(input.charAt(i++));
            enc2 = this.keyStr.indexOf(input.charAt(i++));
            enc3 = this.keyStr.indexOf(input.charAt(i++));
            enc4 = this.keyStr.indexOf(input.charAt(i++));
            chr1 = (enc1 << 2) | (enc2 >> 4);
            chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
            chr3 = ((enc3 & 3) << 6) | enc4;
            output = output + String.fromCharCode(chr1);
            if (enc3 != 64) {
              output = output + String.fromCharCode(chr2);
            }
            if (enc4 != 64) {
              output = output + String.fromCharCode(chr3);
            }
          }
          output = this.Base64_utf8_decode(output);
          return output;
        },
      
        Base64_utf8_encode : function(string) {
          string = string.replace(/\r\n/g, "\n");
          var utftext = "";
          for (var n = 0; n < string.length; n++) {
            var c = string.charCodeAt(n);
            if (c < 128) {
              utftext += String.fromCharCode(c);
            } else if ((c > 127) && (c < 2048)) {
              utftext += String.fromCharCode((c >> 6) | 192);
              utftext += String.fromCharCode((c & 63) | 128);
            } else {
              utftext += String.fromCharCode((c >> 12) | 224);
              utftext += String.fromCharCode(((c >> 6) & 63) | 128);
              utftext += String.fromCharCode((c & 63) | 128);
            }
          }
          return utftext;
        },
      
        Base64_utf8_decode : function(utftext) {
          var string = "";
          var i = 0;
          var c = 0,
            c1 = 0,
            c2 = 0,
            c3 = 0;
          while (i < utftext.length) {
            c = utftext.charCodeAt(i);
            if (c < 128) {
              string += String.fromCharCode(c);
              i++;
            } else if ((c > 191) && (c < 224)) {
              c2 = utftext.charCodeAt(i + 1);
              string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
              i += 2;
            } else {
              c2 = utftext.charCodeAt(i + 1);
              c3 = utftext.charCodeAt(i + 2);
              string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
              i += 3;
            }
          }
          return string;
        },
      
      
      
      	getStyles: function() {
      	    return ['font-awesome.css'];
      	},
      	// Define required scripts.
      	getScripts: function() {
      		return ["moment.js"];
      	},
      
      
      
      	// Define start sequence.
      	start: function() {
      		Log.info("Starting module: " + this.name);
      		// Set locale.
      		moment.locale(config.language);
      
      		this.loaded = false;
      		this.status1 = false;
      		this.title = "Loading...";
      		this.scheduleUpdate(this.config.updateInterval);//this.scheduleUpdate(this.config.initialLoadDelay);
      		this.sensors = [];
      		for (var c in this.config.sensors) {
      			var sensor = this.config.sensors[c];
      			var newSensor = {idx:sensor.idx, symbolon:sensor.symbolon, symboloff:sensor.symboloff, hiddenon:sensor.hiddenon, hiddenoff:sensor.hiddenoff, customTitle:sensor.customTitle, status:"", sname:"",type:""};
      			Log.log(sensor.idx);
      			this.sensors.push(newSensor);
      		}
      Log.log(JSON.stringify(this.sensors));
      	},
      
      
      
      	// Override dom generator.
      	getDom: function() {
      		var wrapper = document.createElement("div");
      
      		if (!this.loaded) {
      			wrapper.innerHTML = "Loading...";
      			wrapper.className = "dimmed light small";
      			return wrapper;
      		}
      		var tableWrap = document.createElement("table");
      		tableWrap.className = "small";
      
      		for (var c in this.sensors) {
      			var sensor = this.sensors[c];
      			if((sensor.status=="On" && sensor.hiddenon)||(sensor.status=="Off" && sensor.hiddenoff)) continue;
      			var sensorWrapper = document.createElement("tr");
      			sensorWrapper.className = "normal";
      
      			var symbolTD = document.createElement('td');
      			symbolTD.className = "symbol";
      			var symbol = document.createElement('i');
      			var symbolClass = sensor.symboloff
      			if(sensor.status=="On") symbolClass = sensor.symbolon
      			symbol.className = symbolClass;
      			symbolTD.appendChild(symbol);
      			sensorWrapper.appendChild(symbolTD);
      
      			var titleTD = document.createElement('td');
      			titleTD.className = "title bright";
      			if(sensor.status=="Off") titleTD.className = "title light";
      			titleTD.innerHTML = sensor.sname;
      			if(typeof sensor.customTitle !== 'undefined') titleTD.innerHTML = sensor.customTitle;
      			sensorWrapper.appendChild(titleTD);
      
      			var statusTD = document.createElement('td');
      			statusTD.className = "time light";
      			statusTD.innerHTML = sensor.status;
      			sensorWrapper.appendChild(statusTD);
      
      			tableWrap.appendChild(sensorWrapper);
      		}
      		wrapper.appendChild(tableWrap);
      		return wrapper;
      	},
      
      
      	updateDomo: function() {
      		var i = 0;
      		var self = this
      		let userid= this.Base64_encode(this.config.apiUser)
      		let password=this.Base64_encode(this.config.apiPw)
      		for (var sensor of this.sensors) {
      			
      			var url =  this.config.apiBase + ":" + this.config.apiPort + "/json.htm?username="+userid + "&password=" +password + "&type=devices&rid="  + sensor.idx;
      			let domoRequest = new XMLHttpRequest();
      			domoRequest.open("GET", url, true);
      			domoRequest.onreadystatechange = function() {
      				if (this.readyState === 4) {
      					// if the api response return code is 200 (ok)
      					if (this.status === 200) {
      						// if there was data returned
      						// example https://github.com/driverdan/node-XMLHttpRequest/blob/master/example/demo.js 
      						// uses this.responseText , not this.response
      						// this.response is an object
      						if(this.responseText && this.responseText.length>0){
      							// process it
      							self.processJson(JSON.parse(this.responseText));							
      							Log.log("Loaded data");
      						}
      						else {
      							 // oops, no data returned
      						   Log.error(self.name + ": no data returned.");
      						}
      					} else {
      						Log.error(self.name + ": Could not load data.");
      						Log.log("Did not load data");
      						// dummy call to verify parse works ok
      						// even where there are no devices
      						self.processJson(JSON.parse(self.foo));
      					}
      				}
      			};			
      			// watch out having multiple requests in progress at the same time. 
      			// onreadystatechange doesn't happen til LONG time after send..
      			// for loop starts another request immediately
      			domoRequest.send();			
      			i++;
      		}
      	},
      
      	processJson: function(data) {		
      		if (!data) {
      			// Did not receive usable new data.
      			// Maybe this needs a better check?
      			return;
      		}
      		Log.log("data="+data);
      		for (var c in this.sensors) {		
      		  // moved log entry here, as c is not set until start of for loop
      			// watch out if data does not contain "result":[] array
      			if( data.result !=='undefined' && typeof data.result ==='object' && data.result.length >0) {
      				Log.log("****Parsing data: " + c + " " + data.result[0].Name);		
      				var sensor = this.sensors[c];
      				if(sensor.idx == data.result[0].idx){
      					this.sensors[c].sname = data.result[0].Name;
      					this.sensors[c].status = data.result[0].Data;
      					this.sensors[c].type = data.result[0].Type;
      				}
      			}
      		}
      		
      		this.loaded = true;
      		this.updateDom(this.config.animationSpeed);
      	},
      
      	scheduleUpdate: function(delay) {
      		Log.log("Updating..");
      		var nextLoad = this.config.updateInterval;
      		if (typeof delay !== "undefined" && delay >= 0) {
      			nextLoad = delay;
      		}
      
      		//var self = this;
      		setInterval(() => {
      			this.updateDomo();
      		}, nextLoad);
      	}
      });
      

      After this in your config.js just add for exemple:

      		{
      			module: 'domoticz',
            			position: 'top_right',
            			header: 'Températures',
            				config: {
                  				apiBase: "http://xxx.xxx.x.xx",
                  				apiPort: "xx",
      					apiUser: "xxx",
      					apiPw: "xxxxxx",
                  			sensors: [
                        			{
      					idx: "183",
      					symbolon: "fa fa-thermometer-half",
      					symboloff: "fa fa-thermometer-half",
      					customTitle: "Cuisine",
      					},
                        			{
      					idx: "5",
      					symbolon: "fa fa-thermometer-half",
      					symboloff: "fa fa-thermometer-half",
      					customTitle: "Raspberry Domotique",
      					},					
      					]
      					}
         		},
      

      And it works
      Thanks @sdetweil for your help

      posted in Troubleshooting
      M
      MisterT
    • RE: MMM-GooglePhotos

      Hi @Sean, i have a question about MMM-GooglePhotos. It(s possible to display a lot of google photos locations ?
      that’s to say i want to display like a mosaic of six google photos on a same page.
      I try to add for exemple two MMM-google photos on my config.js with differents album paths but only one photo is shown.
      Have you an idea ?

      posted in Entertainment
      M
      MisterT
    • RE: MMM-Strava

      @ianperrin, i update your module and…tada it works :thumbs_up: great job
      MMM-Pages rotate and MMM Strava is visible
      Everything is good now

      I also try your other update about radial chart vizualisation and it’s great. I tested with year to date for bike and run and its’awesome. Just 2 remark:

      • In my opinion the radial gaphic it’s just a little too big and the graphic overlaps the other module.
      • I think we need informations about custom css in order to display colors about kilometers like for exemple:
        less 10 km for running in a month : red color
        from 10 to 30 km for running in a month: orange color
        over 30 km for running in a month : green color

      see you next time

      posted in Health
      M
      MisterT
    • RE: MMM-Strava

      @ianperrin i don’t know what i write and the meaning but if i modified these 2 lines (i don’t have the third line), i have MM rotation but undefined on MMM-Strava

         this.config.mode = this.config.mode.toLowerCase().mode;
        this.config.period = this.config.period.toLowerCase().period;
      

      The other error in wallberry module is a css error but i don’t think that it’s the problem of rotation because MMM-pages works with this error

      posted in Health
      M
      MisterT
    • RE: MMM-Strava

      @ianperrin thx for your reply, I’m the noob in .js but i tried to understand the problem and the report is about “toLowerCase”. In MMM-Strava.js, if i modify the three config lines witch contain the synthax “toLowercase”, the result on Magic Mirror is a rotation of MMM-Pages but a message “Undefined” for MMM-Strava

          this.config.mode = this.config.mode.toLowerCase();
          this.config.period = this.config.period.toLowerCase();
          this.config.chartType = this.config.chartType.toLowerCase();
      

      hope these light explanations can help you :face_screaming_in_fear:

      posted in Health
      M
      MisterT
    • RE: MMM-Strava

      hI @ianperrin
      I have another problem with MMM-Strava.
      I use it with MMM-Pages and MMM-Pages indicator. When i place the module in the config.js MMM-Pages settings, the Rotation of MMM-Pages doesn’t work and i have a error on Magic mirror when i press CTRL+SHIFT+i.
      See Thread below for mox explanations

      MMM-Pages no rotate

      Have you an idea?

      posted in Health
      M
      MisterT
    • RE: MMM-pages no rotate

      thanks @chassain-0 and @qu1que for your help.
      I found the gulty module. It’s MMM-Strava. When this module is in MMM-Pages Table, the rotation doesn’t work.
      So @ianperrin, do you have an idea why there is rotation problem with MMM-Strava since the autenthification has changed?

      posted in Troubleshooting
      M
      MisterT
    • RE: MMM-pages no rotate

      hi @chassain-0 i tried to put only clock in page 1 an MMM-freebox in page 2 or an other module but the result is the same. I have an error about “toLowerCase’ of undefined”.

      Can anybody help me please

      posted in Troubleshooting
      M
      MisterT
    • MMM-pages no rotate

      Hi everybody
      Todya i have a problem with MMM-pages Everythind wass alright until today.
      After add MMM-google photos (Idon’t know if this module the problem but i don’t think so) i modified my MMM-pages config.js and now MMM-pages doesn’t rotate.
      I have this error message when i press CTRL+SHIFT+i:

      (index):1 Refused to apply style from 'http://0.0.0.0:8080/modules/WallberryTheme/font-awesome5.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
      main.js:398 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
          at main.js:398
          at Array.filter (<anonymous>)
          at modulesByClass (main.js:397)
          at Array.exceptWithClass (main.js:380)
          at Class.animatePageChange (MMM-pages.js:152)
          at Class.updatePages (MMM-pages.js:136)
          at Class.notificationReceived (MMM-pages.js:78)
          at sendNotification (main.js:95)
          at Object.sendNotification (main.js:502)
          at Class.sendNotification (module.js:368)
      main.js:398 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
          at main.js:398
          at Array.filter (<anonymous>)
          at modulesByClass (main.js:397)
          at Array.exceptWithClass (main.js:380)
          at Class.animatePageChange (MMM-pages.js:152)
          at Class.updatePages (MMM-pages.js:136)
          at Class.notificationReceived (MMM-pages.js:85)
          at sendNotification (main.js:95)
          at Object.sendNotification (main.js:502)
          at Class.sendNotification (module.js:368)
      (index):1 Refused to apply style from 'http://0.0.0.0:8080/modules/WallberryTheme/font-awesome5.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
      main.js:398 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
          at main.js:398
          at Array.filter (<anonymous>)
          at modulesByClass (main.js:397)
          at Array.exceptWithClass (main.js:380)
          at Class.animatePageChange (MMM-pages.js:152)
          at Class.updatePages (MMM-pages.js:136)
          at self.timer.setInterval (MMM-pages.js:189)
      (anonymous) @ main.js:398
      modulesByClass @ main.js:397
      exceptWithClass @ main.js:380
      animatePageChange @ MMM-pages.js:152
      updatePages @ MMM-pages.js:136
      self.timer.setInterval @ MMM-pages.js:189
      main.js:398 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
          at main.js:398
          at Array.filter (<anonymous>)
          at modulesByClass (main.js:397)
          at Array.exceptWithClass (main.js:380)
          at Class.animatePageChange (MMM-pages.js:152)
          at Class.updatePages (MMM-pages.js:136)
          at self.timer.setInterval (MMM-pages.js:189)
      (anonymous) @ main.js:398
      modulesByClass @ main.js:397
      exceptWithClass @ main.js:380
      animatePageChange @ MMM-pages.js:152
      updatePages @ MMM-pages.js:136
      self.timer.setInterval @ MMM-pages.js:189
      

      The problem is in main magic mirror js and in MMM-pages js
      I’m noob in js and i don’t knwow this error

      i tried to delete MMM-pages an reinstall it but this is the same thing

      At every end of rotation time, MMM-Pages indicaator change the indicator but the page doesn’t want to rotate and i have the error message

      See below my MMM-pages config.js

      {
      	module: 'MMM-pages',
      	config: {
      	modules:
      [[ "WallberryTheme", "WallberryTheme/WB-clock", "WallberryTheme/WB-weather"],
      [ "clock", "weatherforecast", "newsfeed", "MMM-GoogleMapsTraffic", "MMM-Traffic", "MMM-Scrobbler", "MMM-News"],
      [ "clock", "calendar", "MMM-Globe", "MMM-MovieListings", "MMM-soccer", "MMM-AQI", "MMM-Strava"],
      [ "clock", "MMM-FreeBox-Monitor", "MMM-Spotify", "fabio/domoticz", 'currentweather'],
      [ "MMM-GooglePhotos" ]],
      fixed: ["MMM-GroveGestures", "MMM-AssistantMk2", "MMM-Hotword", "alert", "updatenotification", "MMM-Screencast", "MMM-page-indicator"],
      				
      animationTime:1000,
      rotationTime: 0.5*60*1000,
      rotationDelay: 15000,
      }
          },
      
      {
             module: 'MMM-page-indicator',
              position: 'bottom_bar',
              config: {
                  		pages:5 ,
             			}
      	},
      

      Have you an idea?

      posted in Troubleshooting
      M
      MisterT
    • RE: MMM-Strava configuration

      Solved see module in health section

      posted in Troubleshooting
      M
      MisterT
    • 1
    • 2
    • 3
    • 2 / 3