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

config setup

Scheduled Pinned Locked Moved General Discussion
2 Posts 1 Posters 1.1k Views 1 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.
  • N Offline
    navyvette87
    last edited by Dec 16, 2017, 3:49 AM

    In the weather sections there is " on each end of the comment, but when I added the traffic modules there is ’ on each end, Now I get a syntax error message when I try to start magicmirror. Should the traffic modules be changed to " on each end? I copied everything from the modules page.
    },
    {
    module: “currentweather”,
    position: “top_right”,
    config: {
    location: “Lompoc, US”,
    locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
    appid: “6ed9d867d3ba972c013edecdef1e685a”
    }
    },
    {
    module: “weatherforecast”,
    position: “top_right”,
    header: “Weather Forecast”,
    config: {
    location: “Lompoc, US”,
    locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
    appid: “6ed9d867d3ba972c013edecdef1e685a”
    }
    },
    {
    module: ‘MMM-GoogleMapsTraffic’,
    position: ‘top_left’,
    config: {
    key: ‘AIzaSyBO???4Z_gDUSKUEfLKep0E’,
    lat: 3?.??436614,
    lng: -1??.???13961,
    height: ‘300px’,
    width: ‘300px’
    }
    }
    ]
    },
    {
    module: ‘MMM-Traffic’,
    position: ‘middle_center’,
    classes: ‘bright medium’, //optional, default is ‘bright medium’, only applies to commute info not route_name
    config: {
    api_key: ‘AIzaSyD-WlWr2VySiCj6OnZnVPCAMw5r1qdTBvM’,
    mode: ‘driving’,
    origin: ‘???’,
    destination: ‘???’,
    mon_destination: ‘???’,
    fri_destination: ‘???’,
    arrival_time: ‘0800’, //optional, but needs to be in 24 hour time if used.
    route_name: ‘Home to Work’,
    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
    }
    },

    1 Reply Last reply Reply Quote 0
    • N Offline
      navyvette87
      last edited by Dec 16, 2017, 9:17 AM

      OK i retried it with all the ’ replaced with ", still nothing. When i restart it after saving the config, it startes with a disk chk, then continues. When I replaced with the ", it restarts, but when I try to run node serveronly, it says syntax error.

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