• 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
  1. Home
  2. amateurcoderboy
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
A
Offline
  • Profile
  • Following 1
  • Followers 0
  • Topics 1
  • Posts 1
  • Groups 0

amateurcoderboy

@amateurcoderboy

0
Reputation
92
Profile views
1
Posts
0
Followers
1
Following
Joined Sep 26, 2019, 9:31 PM
Last Online Sep 27, 2019, 7:06 PM

amateurcoderboy Unfollow Follow

Latest posts made by amateurcoderboy

  • Transportation module doesn't work

    Hi,

    I’m a total beginner to this and have only installed 3 modules previous to this one. When I try to add this new one (MMM-SL-PublicTransport) the magicmirror displays the message ‘Please create a config file.’

    If anyone could help me out I would be very grateful ! Here’s the code including the module above it (MMM-Screencast, which works fine):

     {
    		module: 'MMM-Screencast',
    		position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
    		config: {
    			position: 'bottomCenter',
    			height: 600,
    			width: 750,
    		}
    		},
    	{
    
            module: 'MMM-SL-PublicTransport',
            position: 'top_right',
            header: 'Busses',
            config: {
                apikey: 'Ipostedmyapihere',         // REQUIRED.
                stations: [                     // REQUIRED at least one entry. 
                                                // Definition of the stations that you would like to see
                  {
                    stationId: 'Ipostedmystationidhere',      // REQUIRED. An id of a station. You need to run the utility
                                                // findStation to get the id(s) of the station(s) you want.
                    stationName: 'stationnamehere',// Optional. This is the name of the station.
                                                // It's shown in the header if you have set a header on the module
                   // excludeTransportTypes: [],  // Optional. This is an array of types of transport that you DONT 
                                                // want to see. If not present then all transport types are shown. 
                                                // The types are: 'Bus', 'Train', 'Metro', 'Tram' and 'Ship'.
                    lines: [                    // Optional. An array of lines that you want to see departing from
                                                // this station.
                      {
                        line: line-id,          // The id of the line
                        direction: dir,         // Optional. If present only show departures in this direction 
                                                // for this line.
                        swapDir: false          // Optional. If true, change dir 1 to 2 and vice versa.
                                                // Shall be used with the "In to town" feature. Note that
                                                // if direction is defined, that shall be direction swapped to.
                      }
                    ]
                  },
                ],
                maxDestinationLength: 999,      // Optional, will truncate the destination string to the set length.
                displaycount: 10,               // Optional, show this number of departures for each direction.
                omitDeparturesLeft: false,      // Optional, if set to true departures that have left the station
                                                // is not shown.
                showdisturbances: false,        // Not implemented yet
                fade: true,                     // Optional. Shall the table of departures be faded or not
                fadePoint: 0.2,                 // Optional. Fraction from end where to start fading
                delayThreshhold: 60,            // Optional. If a departure is delayed or in advance only
                                                // show this
                                                // if the delay/advance is greater than this number in
                                                // seconds.            
                updateInterval: 5*60*1000,      // Optional. Number of milliseconds between calls to
                                                // Trafiklab's API. This value shall preferably be larger then 1 min
                                                // There are limitations on number of calls per minute and month
                highUpdateInterval: {},         // Optional if you dont need it don't define it.
                                                // If defined use higher frequences for updates, see
                                                // "Set what times to update more frequently" below
                uiUpdateInterval: 1000,         // Optional. Number of milliseconds between updates of the
                                                // departure list. This value shall preferably be less then 10 sec
                SSL: false,                     // Optional. Use https to access the TrafikLab services,
                                                // defaults to false since I have experienced problems  
                                                // accessing this service over https. Have an ongoing  
                                                // discussion with TrafikLab
                debug: false,                   // Optional. Enable some extra output when debugging
                ignoreSanityCheck: false,       // Optional. If set to true config sanity checks are not done.
                useDisplayTime: false,          // Optional. If true use the actual displaytime that is
                                                // received via the API instead of the ExpectedDateTime and
                                                // TimeTabledDateTime. See the DisplayTime section below.
                cleanHeader: false,             // If set to true the last update time is not shown
                                                // in the header
                showIcon: true                  // Optional. If true show an icon of the type of transport
    
           }
        },
    	]
    
    };
    
    

    The parts I have changed are apikey, stationId and stationName

    Thanks in advance

    posted in Troubleshooting magic mirror smart mirror
    A
    amateurcoderboy
    Sep 26, 2019, 9:44 PM
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