MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ajomannen
    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 0
    • Topics 0
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Problem with MMM-ResRobot, it wont start(?)

      @ajomannen

      I got it to work by adding an extra level of curly brackets and a comma after the closing square bracket:

      {
      	module: "MMM-ResRobot",
      	position: "top_left",
      	header: "Departures",
      	
      	config: {
      		routes: [
      			{
      				from: "740015972", to: "740061189"
      			}
      		],
      		skipMinutes: 0,
      		maximumEntries: 6,
      		truncateAfter: 5,
      		apiKey: "xxxx"
      	}
      },
      

      Is the example config on https://github.com/Alvinger/MMM-ResRobot incorrect?

      posted in Troubleshooting
      A
      ajomannen
    • RE: Problem with MMM-ResRobot, it wont start(?)

      @Alvinger

      Hi there,

      I fail to get the new config format to work.

      I use the following block:

      {
      	module: "MMM-ResRobot",
      	position: "top_left",
      	header: "Departures",
      	
      	config: {
      		routes: [
      			from: "740015972", to: "740061189",
      		]
      		skipMinutes: 0,
      		maximumEntries: 6,
      		truncateAfter: 5,
      		apiKey: "xxxxx"
      	}
      },
      

      but MagicMirror2 fails to start with following message:

      WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.

      (If I use the old config syntax for routes, the system starts up as before, but I get departures from some default location that seems like Stockholm C.)

      What could I have done wrong?

      posted in Troubleshooting
      A
      ajomannen
    • 1 / 1