• 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.

I need help for module trafic

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 2 Posters 5.5k Views 2 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.
  • G Offline
    greda
    last edited by Aug 13, 2017, 4:07 PM

    I can’t get the trafic module to work. Is it possible to switch to French ?
    My config:
    {
    module: ‘MMM-Traffic’,
    position: ‘top_left’,
    classes: ‘dimmed medium’, //optional, default is ‘bright medium’, only applies to commute info not route_name
    config: {
    api_key: ‘MyApiKey’,
    mode: ‘driving’,
    language: “fr”,
    origin: ‘Paris, France’,
    destination: ‘Rouen, France’,
    arrival_time: ‘0825’, //optional, but needs to be in 24 hour time if used.
    route_name: ‘Maison vers le bureau’,
    changeColor: true,
    showGreen: false,
    limitYellow: 5, //Greater than 5% of journey time due to traffic
    limitRed: 20, //Greater than 20% of journey time due to traffic
    traffic_model: ‘pessimistic’,
    interval: 120000, //2 minutes
    showWeekend: false,
    allTime: false
    }
    My mirror screen
    0_1502640480623_screen.JPG
    Thank you for your help.

    1 Reply Last reply Reply Quote 0
    • K Offline
      kruemel
      last edited by Aug 14, 2017, 6:33 AM

      Did you generated an Google Maps (Java Script) API Key with your Google-Account?

      https://developers.google.com/maps/documentation/javascript/get-api-key?hl=fr

      1 Reply Last reply Reply Quote 0
      • G Offline
        greda
        last edited by Aug 14, 2017, 7:08 AM

        I generated a key api (googleAPIs). Nothing appears on the screen.

        G 1 Reply Last reply Aug 14, 2017, 7:10 AM Reply Quote 0
        • G Offline
          greda @greda
          last edited by Aug 14, 2017, 7:10 AM

          @greda :

          I created a standard API key

          1 Reply Last reply Reply Quote 0
          • K Offline
            kruemel
            last edited by kruemel Aug 14, 2017, 7:23 AM Aug 14, 2017, 7:17 AM

            Just to be sure :-)
            You added your API Key to ?

            config: {
            api_key: ‘MyApiKey’,

            And you navigated in your MagicMirror/modules folder and executed “npm install” ?

            Maybe try to be more specific like
            destination: ‘2 Rue Saint-Denis, Rouen, France’

            If that is not working i recommend you the Module MMM-MyCommute from j.e.f.f
            It looks nicer and i can say it works 100%
            0_1502695426551_rouen.png

            1 Reply Last reply Reply Quote 0
            • G Offline
              greda
              last edited by Aug 14, 2017, 7:23 AM

              I just tested and I have no more information. Can I send you my private API to test ?

              1 Reply Last reply Reply Quote 0
              • G Offline
                greda
                last edited by Aug 14, 2017, 7:24 AM

                I try MMM-MyCommute now.

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kruemel
                  last edited by Aug 14, 2017, 7:26 AM

                  sure, if its still not working with mycommute you can

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    greda
                    last edited by Aug 14, 2017, 8:21 AM

                    Kruemel,
                    Can you show me the configuration of your example please?

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kruemel
                      last edited by Aug 14, 2017, 8:25 AM

                      {
                      			module: 'MMM-MyCommute',
                      			position: 'top_left',
                      			header: 'Verkehr nach',
                      			config: {
                      				apikey: 'KEY',
                      				origin: 'AddressXY, Schweiz',
                      				startTime: '00:00',
                      				endTime: '23:59',
                      				nextTransitVehicleDepartureFormat: "[ab] HH:mm",
                      				travelTimeFormat: "h[h] m[m]",
                      					destinations: [
                      						{
                      							destination: 'Address, Schweiz',
                      							label: 'Name Blabla',
                      							alternatives: true,
                      							showSummary: true,
                      							hideDays: [0,6],
                      							color: "#FACC2E"
                      						},
                      						{
                      							destination: 'Address, Schweiz',
                      							label: 'Name Blabla2',
                      							alternatives: true,
                      							showSummary: true,
                      							hideDays: [0,6],
                      							color: "#FACC2E"
                      						},
                      						{
                      							destination: 'Bahnhof Luzern, Zentralstrasse 1, 6002 Luzern, Schweiz',
                      							label: 'Luzern Bahnhof',
                      							mode: 'transit',
                      							transitMode: 'train',
                      							showNextVehicleDeparture: true,
                      							alternatives: true,
                      							color: "#2E9AFE"
                      						}
                      
                      					]
                      					}
                      		},
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/13
                        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