Skip to content
MagicMirror module that displays real time information about Lothian Buses bus stops
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

MagicMirror Module: Lothian Buses

MMM-LothianBuses is a module for MagicMirror that allows you to display real time information about Lothian Buses bus stops. The data is provided by Transport for Edinburgh Open data scheme.

Screenshot of the Lothian Buses module



This module requires an API key to work. The key is free but you need to make a request to get one here.


Clone this module into your MagicMirror's modules directory

cd modules
git clone

then add the module to your MagicMirror's configuration. Here is an example:

/* MagicMirror/config/config.js */
    /* ...your other config here */

    modules: [

        /* ...your other modules here */

            module: 'MMM-LothianBuses',
            header: 'Buses',
            position: 'top_left',
            config: {
                apiKey: '<YOUR-API-KEY>',
                busStopIds: [
                    ['<BUS-STOP-ID-#4>', '<BUS-LINE-TO-INCLUDE>', '<ANOTHER-BUS-LINE-TO-INCLUDE>', ...]

Configuration options

Configuration key Description Default Required
apiKey The API key for the transports of Edinburgh open data. You can request one here. null Yes
busStopIds The list of bus stop IDs to display. Each items can either be a string containing the bus stop ID, or an array where the first item is the bus stop ID, and the subsequent ones are line numbers that needs to be included. [] Yes

Finding bus stop IDs

Go to Google maps and click on the bus stop you are interested in. The information card will display the bus stop ID associated to it.

You can’t perform that action at this time.