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.

    MMM-TracCar

    Scheduled Pinned Locked Moved Transport
    26 Posts 12 Posters 13.3k Views 12 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.
    • A Offline
      AgP42 Project Sponsor Module Developer
      last edited by AgP42

      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

      asimhsiddA 1 Reply Last reply Reply Quote 0
      • asimhsiddA Offline
        asimhsidd @AgP42
        last edited by

        @agp42 thanks for trying… as far as I know, Google changed their policy but it still provides developers with $200 worth of free monthly usage… so you may continue using it… anyhow, for the time, kindly share your log (console log)…

        1 Reply Last reply Reply Quote 0
        • A Offline
          AgP42 Project Sponsor Module Developer
          last edited by

          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 !

          1 Reply Last reply Reply Quote 0
          • A Offline
            AgP42 Project Sponsor Module Developer
            last edited by

            Solved ! :flushed_face:

            Oups…

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

            So my mistake, sorry !

            1 Reply Last reply Reply Quote 0
            • asimhsiddA Offline
              asimhsidd
              last edited by

              @AgP42

              Haha… glad your solved it yourself. Please give a thumbs-up on the git page…

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                AgP42 Project Sponsor Module Developer @asimhsidd
                last edited by

                @asimhsidd done ! :slightly_smiling_face:

                1 Reply Last reply Reply Quote 0
                • H Offline
                  hunty1980
                  last edited by

                  Great module - thank you for sharing.

                  Is there anyway to start the Map in Satellite View as default and also adjust the default Zoom level. I want it to be a wider zoom from the current default.

                  Thanks,
                  G

                  1 Reply Last reply Reply Quote 2
                  • I Offline
                    iwaldrum
                    last edited by

                    Bump - Is there a way adjust the default zoom level. I find that it is too zoomed in most cases.

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      maxs
                      last edited by

                      Same question here about default zoom level. any option?

                      justjim1220J Mykle1M 2 Replies Last reply Reply Quote 0
                      • justjim1220J Offline
                        justjim1220 Module Developer @maxs
                        last edited by

                        @maxs @iwaldrum you can add zoom: 75; to your custum css file
                        Or you can use your keyboard and press Ctrl > - to zoom out or ctrl >Shift > + to zoom in

                        "Life's Too Short To Dance With Ugly People"
                        Jim Hallock - 1995

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • First post
                          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