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

    gkchimz

    @gkchimz

    2
    Reputation
    29
    Profile views
    28
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gkchimz Unfollow Follow

    Best posts made by gkchimz

    • Voice Mirror Control

      Hi All,

      Any ideas what the best voice modules for controlling your mirror are. I have some custom scripts I’d like to run( bash/shell scripts) from my host machine (raspberry pi)

      I have been through the modules on the website, but not sure which ones are out of date/ still function well as most (if not all) seem to have been last updated atleast 2 years ago.

      Many thanks

      posted in Troubleshooting
      G
      gkchimz
    • MMM-Chromecast

      Hi My Chromecast module is no longer working. It used to.

      Now i can not see the mirror as an option, please advise

      config file

      /*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/
      
      var config = {
        address: "localhost",
        electronOptions: {
          webPreferences: {
            webviewTag: true
          }
        },
        port: 8080,
      
            modules: [
          
      	{ disabled: false,
        module: 'MMM-NewPIR',
        position: 'bottom_right',
        configDeepMerge: true,
        config: {
            	screen: {
              delay: 5 * 60 * 1000,
      	displayLastPresence: false,
      	ecoMode: false,
      	displayStyle: "Bar"      
      	},
            pir: {
              gpio: 4
            },
        }
      },
      
      
      {
              module: 'MMM-pages',
              config: {
                      rotationTime: 30 *1000,
      		modules:["MMM-Globe",["compliments"],
      			["MMM-Globe","MMM-DailyPower",],
      			["MMM-Globe","MMM-quote-of-the-day"],
      			["MMM-Globe","calendar",'currentweather'],
      			["MMM-Globe","calendar",'weatherforecast'],
      			["MMM-Globe","MMM-UKNationalRail","MMM-MyCommute",],
      			["MMM-Globe",'MMM-Recipe'],
      			["MMM-Globe","MMM-weatherforecast"]
      		],
                      fixed: ["MMM-GoogleAssistant","MMM-Assistant2Display","MMM-ModuleScheduler","clock", "alerts","MMM-NewPIR","MMM-Screencast"],
                      hiddenPages: {
                          "screenSaver": [ "clock", "MMM-SomeBackgroundImageModule" ],
                          "admin": [ "MMM-Tools"],
                      },
              }
          },
          {
          module: 'MMM-quote-of-the-day',
          position: 'bottom_bar',
          config: {
                   language: "en",
      		updateInterval: "1d"   // See below for configurable options
                  }
        },
      {
      		module: "MMM-Screencast",
      		position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
      		config: {
      			position: 'center',
      			height: 300,
      			width: 500,
      		}
              },
      
            ],
        useHttps: false,
        httpsPrivateKey: '',
        httpsCertificate: '',
        logLevel: [
          'INFO',
          'LOG',
          'WARN',
          'ERROR'
        ]
      }
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      

      console log

      
      loader.js:176 Load script: modules/MMM-Screencast//MMM-Screencast.js
      module.js:509 Check MagicMirror version for module 'MMM-Screencast' - Minimum version:  2.1.0 - Current version: 2.14.0
      module.js:517 Module registered: MMM-Screencast
      loader.js:148 Bootstrapping module: MMM-Screencast
      loader.js:153 Scripts loaded for: MMM-Screencast
      loader.js:155 Styles loaded for: MMM-Screencast
      loader.js:157 Translations loaded for: MMM-Screencast
      MMM-Screencast.js:15 Starting module: MMM-Screencast
      MMM-quote-of-the-day.js:135 [MMM-quote-of-the-day] received a module notification: MMM-Screencast:START-DIAL from sender: MMM-Screencast
      module.js:206 MMM-Screencast is resumed.
      module.js:199 MMM-Screencast is suspended.
      4
      module.js:206 MMM-Screencast is resumed.
      

      PM2 Logs

      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 15 lines:
      PM2        | 2021-01-31T11:41:49: PM2 log: App [mm:0] online
      PM2        | 2021-01-31T12:05:17: PM2 log: Stopping app:mm id:0
      PM2        | 2021-01-31T12:05:17: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2021-01-31T12:05:17: PM2 log: pid=16926 msg=process killed
      PM2        | 2021-01-31T12:05:17: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2021-01-31T12:05:17: PM2 log: App [mm:0] online
      PM2        | 2021-01-31T12:05:34: PM2 log: Stopping app:mm id:0
      PM2        | 2021-01-31T12:05:35: PM2 log: pid=25612 msg=failed to kill - retrying in 100ms
      PM2        | 2021-01-31T12:05:35: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2021-01-31T12:05:35: PM2 log: pid=25612 msg=process killed
      PM2        | 2021-01-31T12:05:35: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2021-01-31T12:05:35: PM2 log: App [mm:0] online
      PM2        | 2021-01-31T12:17:27: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2021-01-31T12:17:27: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2021-01-31T12:17:27: PM2 log: App [mm:0] online
      
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:112:11)
      0|mm       |     at Socket.emit (events.js:210:5)
      0|mm       |     at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:253:20)
      0|mm       |     at Socket.socket.onevent (/home/pi/MagicMirror/js/node_helper.js:105:13)
      0|mm       |     at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:216:22)
      0|mm       |     at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:205:28
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:75:11) {
      0|mm       |   code: 'EADDRINUSE',
      0|mm       |   errno: 'EADDRINUSE',
      0|mm       |   syscall: 'listen',
      0|mm       |   address: '::',
      0|mm       |   port: 8569
      0|mm       | }
      0|mm       | [31.01.2021 12:17.41.300] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | [31.01.2021 12:17.41.301] [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       |       upgradeOrConnect: false,
      0|mm       |       parser: null,
      0|mm       |       maxHeadersCount: null,
      0|mm       |       _redirectable: [Circular],
      0|mm       |       [Symbol(kNeedDrain)]: false,
      0|mm       |       [Symbol(isCorked)]: false,
      0|mm       |       [Symbol(kOutHeaders)]: [Object: null prototype]
      0|mm       |     },
      0|mm       |     _currentUrl: 'https://www.poemist.com/api/v1/randompoems'
      0|mm       |   },
      0|mm       |   response: undefined,
      0|mm       |   isAxiosError: true,
      0|mm       |   toJSON: [Function: toJSON]
      0|mm       | }
      0|mm       | [31.01.2021 12:23.45.920] [LOG]   there was most likely an error fetching poems from https://www.poemist.com/api/v1/randompoems, waiting 5 mins before trying again
      
      
      
      
      posted in Troubleshooting
      G
      gkchimz

    Latest posts made by gkchimz

    • RE: MMM-MQTTBridge not working

      @gkchimz
      config.js

      {
      	module: 'MMM-MQTTbridge',
      	disabled: false,
      	position: 'middle_center',
      	config: {
      		mqttServer: "mqtt://username:password@192.168.0.99:1883",
      		mqttConfig:
      		{
      			listenMqtt: true,
      			interval: 300000,
      		},
      		notiConfig:
      		{
      			listenNoti: true,
      			ignoreNotiId: ["CLOCK_MINUTE", "NEWS_FEED"],
      			ignoreNotiSender: ["system", "NEWS_FEED"],
      		},
      		// set "NOTIFICATIONS -> MQTT" dictionary at /dict/notiDictionary.js
      		// set "MQTT -> NOTIFICATIONS" dictionary at /dict/mqttDictionary.js
      	},
      },
      
      
      posted in Troubleshooting
      G
      gkchimz
    • RE: MMM-MQTTBridge not working

      @mmrize
      Thank you for the fast response. Here is the dictionary i am using

      var mqttHook = [
        {
          mqttTopic: "home",
          mqttPayload: [
            {
              payloadValue: "ASSISTANT_LISTEN",
              mqttNotiCmd: ["Command1"]
            },
            {
              payloadValue: "None",
              mqttNotiCmd: ["Command2"]
            },
          ],
        },
        {
          mqttTopic: "myhome/test2",
          mqttPayload: [
            {
              payloadValue: "",
              mqttNotiCmd: ["Command2"]
            },
          ],
        },
      ];
      var mqttNotiCommands = [
        {
          commandId: "Command1",
          notiID: "ASSISTANT_LISTEN",
          notiPayload: 'BLABLABLA-1'
        },
        {
          commandId: "Command2",
          notiID: "ASSISTANT_LISTEN",
          notiPayload: 'kjkjkj'
        },
      ];
      
      
      posted in Troubleshooting
      G
      gkchimz
    • MMM-MQTTBridge not working

      Hi I am trying to set this up for the first time. This is the error message i get when i start mm:

      Is anyone able to advise me please. Thanks

      | [30.09.2021 17:16.03.787] [ERROR] 0|mm | TypeError: Cannot read property 'length' of undefined 0|mm | at Class.connectMqtt (/home/pi/MagicMirror/modules/MMM-MQTTbridge/node_helper.js:54:36) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-MQTTbridge/node_helper.js:67:14) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:109:11) 0|mm | at Socket.emit (events.js:315:20) 0|mm | at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22) 0|mm | at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:428:39 0|mm | at processTicksAndRejections (internal/process/task_queues.js:79:11)

      posted in Troubleshooting
      G
      gkchimz
    • RE: show local webpages using iframe

      @thgmirror - Thank you very much for your help. This now works.

      posted in System
      G
      gkchimz
    • RE: show local webpages using iframe

      @sdetweil

      var config = {
        address: "0.0.0.0",
      ipWhitelist: [],
        electronOptions: {
          webPreferences: {
            webviewTag: true
          }
        },
        port: 8080,
      
      posted in System
      G
      gkchimz
    • RE: show local webpages using iframe

      @sdetweil

      I have tried both :

      "http://192.168.1.31:8080/modules/mymote/mymote.html"
      

      and

      "http://localhost:8080/modules/mymote/mymote.html"
      

      These work when using a browser but MM displays the below error in the console.

      Refused to display 'http://192.168.1.31:8080/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
      
      posted in System
      G
      gkchimz
    • show local webpages using iframe

      Can someone help me with how i structure the path and where i store the webpages so that i can use an iframe module to show a webpage i have saved locally.

      I have tried - MMM-SmartWebDisplay and placed the files in the MagicMirror folder, but this did not work.

      Many thanks

      posted in System
      G
      gkchimz
    • RE: iFRAME - moneydashboard.com

      @sdetweil , sorry i missed your response. form ( i think, i have to fill in email address and password)

      posted in Troubleshooting
      G
      gkchimz
    • iFRAME - moneydashboard.com

      Hi,

      I have tried 3 of the iFrame modules and have struggled to get what I am after.

      Is there a module that i can use to show my moneydashboard com dashboard on my mirror?

      I think one of the issues is that the page i am after is requires some authentication/me to log in.

      Has anyone else managed to do anything similar?

      Thanks

      posted in Troubleshooting
      G
      gkchimz
    • MMM-Chromecast

      Hi My Chromecast module is no longer working. It used to.

      Now i can not see the mirror as an option, please advise

      config file

      /*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/
      
      var config = {
        address: "localhost",
        electronOptions: {
          webPreferences: {
            webviewTag: true
          }
        },
        port: 8080,
      
            modules: [
          
      	{ disabled: false,
        module: 'MMM-NewPIR',
        position: 'bottom_right',
        configDeepMerge: true,
        config: {
            	screen: {
              delay: 5 * 60 * 1000,
      	displayLastPresence: false,
      	ecoMode: false,
      	displayStyle: "Bar"      
      	},
            pir: {
              gpio: 4
            },
        }
      },
      
      
      {
              module: 'MMM-pages',
              config: {
                      rotationTime: 30 *1000,
      		modules:["MMM-Globe",["compliments"],
      			["MMM-Globe","MMM-DailyPower",],
      			["MMM-Globe","MMM-quote-of-the-day"],
      			["MMM-Globe","calendar",'currentweather'],
      			["MMM-Globe","calendar",'weatherforecast'],
      			["MMM-Globe","MMM-UKNationalRail","MMM-MyCommute",],
      			["MMM-Globe",'MMM-Recipe'],
      			["MMM-Globe","MMM-weatherforecast"]
      		],
                      fixed: ["MMM-GoogleAssistant","MMM-Assistant2Display","MMM-ModuleScheduler","clock", "alerts","MMM-NewPIR","MMM-Screencast"],
                      hiddenPages: {
                          "screenSaver": [ "clock", "MMM-SomeBackgroundImageModule" ],
                          "admin": [ "MMM-Tools"],
                      },
              }
          },
          {
          module: 'MMM-quote-of-the-day',
          position: 'bottom_bar',
          config: {
                   language: "en",
      		updateInterval: "1d"   // See below for configurable options
                  }
        },
      {
      		module: "MMM-Screencast",
      		position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
      		config: {
      			position: 'center',
      			height: 300,
      			width: 500,
      		}
              },
      
            ],
        useHttps: false,
        httpsPrivateKey: '',
        httpsCertificate: '',
        logLevel: [
          'INFO',
          'LOG',
          'WARN',
          'ERROR'
        ]
      }
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      

      console log

      
      loader.js:176 Load script: modules/MMM-Screencast//MMM-Screencast.js
      module.js:509 Check MagicMirror version for module 'MMM-Screencast' - Minimum version:  2.1.0 - Current version: 2.14.0
      module.js:517 Module registered: MMM-Screencast
      loader.js:148 Bootstrapping module: MMM-Screencast
      loader.js:153 Scripts loaded for: MMM-Screencast
      loader.js:155 Styles loaded for: MMM-Screencast
      loader.js:157 Translations loaded for: MMM-Screencast
      MMM-Screencast.js:15 Starting module: MMM-Screencast
      MMM-quote-of-the-day.js:135 [MMM-quote-of-the-day] received a module notification: MMM-Screencast:START-DIAL from sender: MMM-Screencast
      module.js:206 MMM-Screencast is resumed.
      module.js:199 MMM-Screencast is suspended.
      4
      module.js:206 MMM-Screencast is resumed.
      

      PM2 Logs

      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 15 lines:
      PM2        | 2021-01-31T11:41:49: PM2 log: App [mm:0] online
      PM2        | 2021-01-31T12:05:17: PM2 log: Stopping app:mm id:0
      PM2        | 2021-01-31T12:05:17: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2021-01-31T12:05:17: PM2 log: pid=16926 msg=process killed
      PM2        | 2021-01-31T12:05:17: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2021-01-31T12:05:17: PM2 log: App [mm:0] online
      PM2        | 2021-01-31T12:05:34: PM2 log: Stopping app:mm id:0
      PM2        | 2021-01-31T12:05:35: PM2 log: pid=25612 msg=failed to kill - retrying in 100ms
      PM2        | 2021-01-31T12:05:35: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2021-01-31T12:05:35: PM2 log: pid=25612 msg=process killed
      PM2        | 2021-01-31T12:05:35: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2021-01-31T12:05:35: PM2 log: App [mm:0] online
      PM2        | 2021-01-31T12:17:27: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2021-01-31T12:17:27: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2021-01-31T12:17:27: PM2 log: App [mm:0] online
      
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:112:11)
      0|mm       |     at Socket.emit (events.js:210:5)
      0|mm       |     at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:253:20)
      0|mm       |     at Socket.socket.onevent (/home/pi/MagicMirror/js/node_helper.js:105:13)
      0|mm       |     at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:216:22)
      0|mm       |     at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:205:28
      0|mm       |     at processTicksAndRejections (internal/process/task_queues.js:75:11) {
      0|mm       |   code: 'EADDRINUSE',
      0|mm       |   errno: 'EADDRINUSE',
      0|mm       |   syscall: 'listen',
      0|mm       |   address: '::',
      0|mm       |   port: 8569
      0|mm       | }
      0|mm       | [31.01.2021 12:17.41.300] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | [31.01.2021 12:17.41.301] [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       |       upgradeOrConnect: false,
      0|mm       |       parser: null,
      0|mm       |       maxHeadersCount: null,
      0|mm       |       _redirectable: [Circular],
      0|mm       |       [Symbol(kNeedDrain)]: false,
      0|mm       |       [Symbol(isCorked)]: false,
      0|mm       |       [Symbol(kOutHeaders)]: [Object: null prototype]
      0|mm       |     },
      0|mm       |     _currentUrl: 'https://www.poemist.com/api/v1/randompoems'
      0|mm       |   },
      0|mm       |   response: undefined,
      0|mm       |   isAxiosError: true,
      0|mm       |   toJSON: [Function: toJSON]
      0|mm       | }
      0|mm       | [31.01.2021 12:23.45.920] [LOG]   there was most likely an error fetching poems from https://www.poemist.com/api/v1/randompoems, waiting 5 mins before trying again
      
      
      
      
      posted in Troubleshooting
      G
      gkchimz