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
    • RE: MMM-TracCar

      Hello,

      I try to use this Module that seams amazing !

      For the field “gmapid”, I created an accound on Google Cloud Platform (with credit card number…), but it is not working. Could you please give more infos about the value requested by your module and the way to configure it ?
      The key I got looks like (I change some letters of course !) :
      ApybZyXX5ou0t-XZXSnj3w_J_lmtw6v5xxVV5U9

      Also it seams that now Google Map API key will not be free anymore (from mid-july), it there still a way to make this plugin work without paying Google ?

      Thanks a lot,
      AgP

      posted in Transport
      A
      AgP42
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

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

      The API is live again. So I think you did something wrong. Can you post the part of your config?

      Thank you for your answer and your help, in fact I initially copy-paste the official example of config, just to try the module before doing more configuration :

      {
          module: "MMM-PublicTransportBerlin",
          position: "top_right",
          config: {
              name: "Alexanderplatz",
              stationId: "90000010000",
              hidden: false,
              ignoredStations: [900000100003,2342,1337],
              ignoredLines: ["U5", "U8", "S75" "Bus 100"],               
              excludedTransportationTypes: "bus,suburban,subway",   
              travelTimeToStation: 10,
              interval: 120000,
              departureMinutes: 10,          
              maxDepartures: 15,
              marqueeLongDirections: true,
              showColoredLineSymbols: true,  
              useColorForRealtimeInfo: true,
              showTableHeaders: true,
              showTableHeadersAsSymbols: true,
              maxUnreachableDepartures: 3,    
              maxReachableDepartures: 7,
              fadeUnreachableDepartures: true,
              fadeReachableDepartures: true,
              fadePointForReachableDepartures: 0.25,
              excludeDelayFromTimeLabel: true
          }
      },
      

      but it didn’t work at all, the MagicMirror display the error that the config file is not valid :“Please create a config file”.
      So to debug that I remove all the non-required parameters, and keep only :

      {
          module: "MMM-PublicTransportBerlin",
          position: "top_right",
          config: {
              name: "Alexanderplatz",
              stationId: "90000010000"
          }
      },
      

      Then the Mirror is starting again but this module display this error :
      0_1530713996786_20180704_161734_resized.jpg

      Any idea of the origin of the problem ?
      Can you maybe send me a valid config to try it ?

      (My Mirror was in 2.4.0 and now updated in 2.4.1, but same issue, the Module is updated at its last version)

      Thanks in advance,
      AgP42

      posted in Transport
      A
      AgP42
    • RE: MMM-PublicTransportBerlin - Public transport for Berlin and Brandenburg (departures)

      Hello,

      It is my first installation of this module and I also have the same error message.
      Is the VBB data still out of order or did I wrongly configure my module ?

      Thank you in advance,

      posted in Transport
      A
      AgP42
    • RE: Weather forecast only displays 'invalid date'

      @killing-joke said in Weather forecast only displays ‘invalid date’:

      I found a solution on https://github.com/MichMich/MagicMirror/commit/0e2e8d2e2aca2f8d0f1f2eb7b213577fcc4f623a
      But I had to change the lines 338 and 339 instead of 336 and 337

      var day = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").format("ddd");
      var hour = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").format("H");
      

      into

      var day;
      var hour;
      if(!!forecast.dt_txt) {
      	day = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").format("ddd");
      	hour = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").format("H");
      } else {
      	day = moment(forecast.dt, "X").format("ddd");
      	hour = moment(forecast.dt, "X").format("H");
      }
      

      It works for my MM.

      Works fine, thank you for the advice !

      posted in Troubleshooting
      A
      AgP42
    • RE: Weather forecast only displays 'invalid date'

      Hello,

      same problem for me since the update in 2.4.0… So general update issue probably (looking forward for a solution !:slightly_smiling_face: )

      To answer @killing-joke said in Weather forecast only displays ‘invalid date’:

      same here.

      Is there a possibilty to erase the comma and country code behind the location in the header?!

      I did change the following on the file “/MagicMirror/modules/default/weatherferecast/weatherforecast.js” :

      // Override getHeader method.
      getHeader: function() {
      if (this.config.appendLocationNameToHeader) {
      //line to change
      //return this.data.header + " " + this.fetchedLocationName;
      return "Prévisions Météo Nogent"; // write here what you want...
      }
      
      return this.data.header;
      }, 
      

      Here is the result :

      20180702_220235_resized

      You can of course change the line on the way you want to remove only the part you need.

      posted in Troubleshooting
      A
      AgP42
    • 1 / 1