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

    Posts

    Recent Best Controversial
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      @dicous said in MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures):

      by me the same here =/ . since 2 days

      Hello,

      I personnaly never succeded to make that module work, but I use this one instead that is really cool and powerfull :
      MMM-PublicTransportHafas

      posted in Transport
      A
      AgP42
    • RE: Todoist accesstoken

      Hello all,

      I also get so many trouble to make it work, but thanks to your help it is now ok ! :grinning_face:

      So no need to create that incredibly complicated “OAuth string”, the use of the “Test token” works perfectly fine :

      0_1531575735336_todoist.png

      But… It is mandatory to define “projects” value in the config.js file.
      As the default value is [] I also consider it as optional…:flushed_face:

      With this value defined, everything is OK !

      posted in Troubleshooting
      A
      AgP42
    • MMM-Remote-Control warning in logs

      Hello,

      I have some strange warning in the console log (npm or pm2 logs). As I don’t like that I investigate the origine by isolating all my modules one by one and the result is that it comes from MMM-Remote-Control.

      Here is the logs :

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.4.1 start /home/pi/MagicMirror
      > sh run-start.sh
      
      Starting MagicMirror: v2.4.1
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: MMM-Remote-Control
      All module helpers loaded.
      Starting server on port 8080 ...
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: MMM-Remote-Control
      Starting node helper for: MMM-Remote-Control
      Sockets connected & modules started ...
      Launching application.
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'refs' of undefined
      (node:2669) [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.
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'refs' of undefined
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'refs' of undefined
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: Cannot read property 'refs' of undefined
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): TypeError: Cannot read property 'refs' of undefined
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): TypeError: Cannot read property 'refs' of undefined
      (node:2669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): TypeError: Cannot read property 'refs' of undefined
      

      I had to say that the module itself is working fine, but this probably generate performance issues ?

      Is someone also experiencing it and with any explanations and/or solutions ?

      Thanks you all in advance,
      AgP

      posted in Troubleshooting
      A
      AgP42
    • RE: MMM-Sonos not displaying

      Hello,

      maybe a stupid advice, but did you run the service ?

      How to Install Sonos-API

      To install the Sonos-API just clone the repository to your PI.

      git clone https://github.com/jishi/node-sonos-http-api.git

      Navigate to the new node-sonos-http-api folder and install the node dependencies.

      cd node-sonos-http-api && npm install --production

      Now you can run the service with:

      npm start

      and it has to be run each time your restart, so the advice of the dev is to create and auto start with pm2.

      good luck !

      posted in Troubleshooting
      A
      AgP42
    • RE: MMM-TracCar

      @asimhsidd done ! :slightly_smiling_face:

      posted in Transport
      A
      AgP42
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      Great ! Thank you so much !

      But as said on the link you gave :

      @axled said in MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder:

      Thanks to glitch452 who found the error, details see:
      https://github.com/Jopyth/MMM-Remote-Control/issues/76

      the line to replace is

      res.send({"status": "success"});
      

      and not

       self.sendSocketNotification(query.action, query.value);
      

      Then it is working perfectly !

      posted in System
      A
      AgP42
    • RE: MMM-Navigate, Navigation inside MagicMirror with Rotary Encoder

      Hello,

      I am using your module what is really great and works perfectly fine on my side.

      I configure it to allow some others fonctions, after finding out that the fonctions from the module “MMM-Remote-Control” can be used on your navigation module. I also read part of the “node_helper.js” of this module to try to find out the possibilities avaliable.

      This allow me to add the ability of “refresh” and “monitoroff” and “monitoron” on my navigation menu :

                      {
                              module: "MMM-Navigate",
                              header: "Navigation",
                              position: "middle_center",
                              config: {
                                              Alias: [
                                                      'Changer de Page (Press puis rotation)',
                                                      'Luminosité écran (Press puis rotation)',
                                                      'Afficher adresse Remote',
                                                      'Ecran off/on (Press puis rotation)',
                                                      'Recharger affichage',
                                                      'Redemarrer le MagicMirror',
                                                      'Reboot RPI',
                                                      'Shutdown RPI'
                                              ],
                                              Action: [
                                                      [{notification:'PAGE_INCREMENT',payload:''},{notification:'PAGE_DECREMENT',payload:''}],//action array, first press locks menu, after this rotation CW/CCW executes, second press release lo$
                                                      [{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS&value=100"}},{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS&value=50"}}],
                                                      {notification: "SHOW_ALERT", payload: {type:"notification",message:"http://192.168.xx.xx:8080/remote.html"}},//single action, execute on press
                                                      [{notification: "REMOTE_ACTION", payload: {action: "MONITOROFF"}},{notification: "REMOTE_ACTION", payload: {action: "MONITORON"}}],
                                                      {notification: "REMOTE_ACTION", payload: {action: "REFRESH"}},
                                                      {notification: "REMOTE_ACTION", payload: {action: "RESTART"}},
                                                      {notification: "REMOTE_ACTION", payload: {action: "REBOOT"}},
                                                      {notification: "REMOTE_ACTION", payload: {action: "SHUTDOWN"}}
                                              ],
                                              GPIOPins: [26,20,19]//rotary cw, rotary ccw, rotary press (BCM Numbering)
                                              },
                      },
      
      

      But then I tried 2 others improvment that I couln’t fullfill :

      • change the timer value to display the notification : to do so I add the value “timer” for the notification :
       {notification: "SHOW_ALERT", payload: {type:"notification",message:"http://192.168.xx.xx:8080/remote.html",timer: 15}},
      

      But this had no impact…

      • add the possibility to change the brightness of the screen directly from the navigation menu, to do so I tried :
      [{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS&value=100"}},{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS&value=50"}}],
      

      but also :

      [{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS", value:100}},{notification: "REMOTE_ACTION", payload: {action: "BRIGHTNESS", value:50}}],
      

      but no way to make it work…

      Would you have any advice how to realize such fonctions ?

      Thank you in advance,

      posted in System
      A
      AgP42
    • RE: MMM-TracCar

      Solved ! :flushed_face:

      Oups…

      I “just” try with the full server address, including the http://, and it perfectly run…

      So my mistake, sorry !

      posted in Transport
      A
      AgP42
    • RE: MMM-TracCar

      Yes, they said it will be free minimum 12 month, so let’s see !

      In fact with the auto-start I didn’t see the log initially…
      To have clear logs only with TracCar I keep only this module on my config.js file and here are the console logs accordingly :

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.4.1 start /home/pi/MagicMirror
      > sh run-start.sh
      
      Starting MagicMirror: v2.4.1
      Loading config ...
      Loading module helpers ...
      Initializing new module helper ...
      Module helper loaded: MMM-TracCar
      All module helpers loaded.
      Starting server on port 8080 ...
      Server started ...
      Connecting socket for: MMM-TracCar
      Starting NodeHelper for MMM-TracCarmodule.
      Sockets connected & modules started ...
      Whoops! There was an uncaught exception...
      { Error: listen EADDRINUSE 0.0.0.0:8080
      at Object._errnoException (util.js:1024:11)
      at _exceptionWithHostPort (util.js:1046:20)
      at Server.setupListenHandle [as _listen2] (net.js:1351:14)
      at listenInCluster (net.js:1392:12)
      at doListen (net.js:1501:7)
      at _combinedTickCallback (internal/process/next_tick.js:141:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)
      at Function.Module.runMain (module.js:685:11)
      at startup (bootstrap_node.js:196:16)
      at bootstrap_node.js:622:3
      code: 'EADDRINUSE',
      errno: 'EADDRINUSE',
      syscall: 'listen',
      address: '0.0.0.0',
      port: 8080 }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Launching application.
      

      The internet connection is working fine (all others modules can connect).
      But it’s true that I had to change the internet configuration of the MagicMirror in order to use Remote-Control module.

      To be sure this is not the cause of the error on your module, I re-use the inital config.js file, but still not working (but with different IP adresse on the log…) :

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.4.1 start /home/pi/MagicMirror
      > sh run-start.sh
      
      Starting MagicMirror: v2.4.1
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: MMM-TracCar
      All module helpers loaded.
      Starting server on port 8080 ...
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: MMM-TracCar
      Starting NodeHelper for MMM-TracCarmodule.
      Sockets connected & modules started ...
      Whoops! There was an uncaught exception...
      { Error: listen EADDRINUSE 127.0.0.1:8080
      at Object._errnoException (util.js:1024:11)
      at _exceptionWithHostPort (util.js:1046:20)
      at Server.setupListenHandle [as _listen2] (net.js:1351:14)
      at listenInCluster (net.js:1392:12)
      at GetAddrInfoReqWrap.doListen [as callback] (net.js:1501:7)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)
      code: 'EADDRINUSE',
      errno: 'EADDRINUSE',
      syscall: 'listen',
      address: '127.0.0.1',
      port: 8080 }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Launching application.
      

      And here is my module configuration :

      {
      module: 'MMM-TracCar',
      position: 'bottom_right',
      config: {
      url: "demo5.traccar.org", // Traccar Server URL (free server @ http://demo5.traccar.org )
      username: "blabla@blabla.org", // Traccar Account username (email) (btw, there is a free account option too!) :)
      pass: "passworddddd", // Traccar Account Password
      gmapid: "keyxxxxxx", // Google Apps key
      map_width: "300", // width of the map element
      map_height: "400", // height of the map element
      map_border_radius: "10", // border radius of the map element (optional)
      map_shadow_color: "POWDERBLUE", // shadow color of the border element (optional)
      }
      },
      

      Maybe the error is coming from this line ? :

      url: "demo5.traccar.org", // Traccar Server URL (free server @ http://demo5.traccar.org )
      

      But impossible to write the full URL due to the “//”…

      Also of course when I connect from my PC to the http://demo5.traccar.org with my username and password, I can see correctly the location of my phone (so the “TracCar” part is well configured)

      I hope I gave you enough infos :grinning_face_with_smiling_eyes:

      Thanks a lot !

      posted in Transport
      A
      AgP42
    • RE: MMM-NetworkConnection

      Hello,

      I try to monitor my internet connection as my WiFi disconnect a lot, but none of the avaliable modules (this one, but also the 2 originals ones “internet-monitor” and “MMM-connection-status”) are able to detect a disconnection…

      When the WiFi is properly working, then I have the values displayed correctly, but in case of connection lost (I remove the wifi key…), then the module continu to display previous valid values.

      I am on a RPI2 with WiFi USB key, can this be the origin of the issue ?

      Thanks in advance for any help :slightly_smiling_face:

      posted in Utilities
      A
      AgP42
    • 1 / 1