• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MM & Google Maps Traffic

Scheduled Pinned Locked Moved Troubleshooting
16 Posts 4 Posters 15.9k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Mirrorolentia
    last edited by Aug 27, 2017, 5:18 PM

    There are two catches which I will try to correct:

    1. The Google Maps have their own lifecycle which I could not align with MM module’s. So you may not see the map in the first instance but it will get uploaded within the next interval (as configured in config.interval).
    2. The Maps div element keeps getting refreshed after every interval which is a bit irritating :(
    D 1 Reply Last reply Aug 28, 2017, 6:23 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @birdy
      last edited by Aug 27, 2017, 7:24 PM

      @birdy you are missing quotes around the drivin mode, should be mode: 'driving'

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 0
      • D Offline
        devtech8 @Mirrorolentia
        last edited by Aug 28, 2017, 6:23 AM

        @Mirrorolentia - I was thinking of trying this too, but looks like you have made some progress. I hope to dig into what you have later this week. I had seen some further customization I would like to add when time allows. Thanks for the work on this!

        M 1 Reply Last reply Aug 28, 2017, 7:38 AM Reply Quote 0
        • M Offline
          Mirrorolentia @devtech8
          last edited by Aug 28, 2017, 7:38 AM

          @devtech8
          Sure that would be great! Thanks!

          1 Reply Last reply Reply Quote 0
          • B Offline
            birdy
            last edited by Aug 28, 2017, 9:45 AM

            @Mirrorolentia - wow, thx!! I will test it later :) can’t await

            1 Reply Last reply Reply Quote 0
            • B Offline
              birdy
              last edited by Aug 29, 2017, 3:42 PM

              so, as a complete noobie, I just pasted the code (adding Google Api key) in both files.

              I can see, there is a gap in the corner (I hope for the map) and if I get you correctly, the map will load “soon”(?).

              Thank you one more time and will keep u posted.

              Cheers
              Birdy

              M 1 Reply Last reply Aug 29, 2017, 3:57 PM Reply Quote 0
              • M Offline
                Mirrorolentia @birdy
                last edited by Aug 29, 2017, 3:57 PM

                @birdy
                Yes that is correct. You will need to copy the lines from /global module**/ all the way till end…somehow the comments didn’t embed the code correctly

                1 Reply Last reply Reply Quote 0
                • B Offline
                  birdy
                  last edited by Aug 30, 2017, 8:21 AM

                  somehow it’s not working:
                  0_1504081238365_InkedIMG_1205_LI.jpg

                  M 1 Reply Last reply Aug 30, 2017, 8:39 AM Reply Quote 0
                  • M Offline
                    Mirrorolentia @birdy
                    last edited by Aug 30, 2017, 8:39 AM

                    @birdy
                    Seems like the MM system didn’t initialize the module itself :(
                    Are you seeing any errors on the console from where you run “node serveronly” or on the chromium browser i.e from More Tools–> Developer Tools–>Console.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      birdy
                      last edited by Aug 30, 2017, 3:27 PM

                      you mean like this:

                      Connecting socket for: MMM-Traffic
                      MMM-Traffic helper started ...
                      Sockets connected & modules started ...
                      
                      Ready to go! Please point your browser to: http://localhost:8080
                      Whoops! There was an uncaught exception...
                      { Error: listen EADDRINUSE :::8080
                          at Object.exports._errnoException (util.js:1020:11)
                          at exports._exceptionWithHostPort (util.js:1043:20)
                          at Server._listen2 (net.js:1258:14)
                          at listen (net.js:1294:10)
                          at net.js:1404:9
                          at _combinedTickCallback (internal/process/next_tick.js:83:11)
                          at process._tickCallback (internal/process/next_tick.js:104:9)
                          at Module.runMain (module.js:606:11)
                          at run (bootstrap_node.js:389:7)
                          at startup (bootstrap_node.js:149:9)
                        code: 'EADDRINUSE',
                        errno: 'EADDRINUSE',
                        syscall: 'listen',
                        address: '::',
                        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
                      
                      
                      M 1 Reply Last reply Sep 2, 2017, 4:29 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/16
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy