Skip to content

MagicMirror module to display public transport in Besançon (France) with Ginko data.

License

Notifications You must be signed in to change notification settings

TexGG/MMM-Ginko

Repository files navigation

MMM-Ginko

Public Transport of Besançon/France Module for MagicMirror2

License Dependencies Status Build Status Known Vulnerabilities

Example

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory.

  2. Configure your ~/MagicMirror/config/config.js:

    {
        module: "MMM-Ginko",
        position: "top_right",
        config: {
            stations: ["Gare Viotte","Pont Chemin Français","Pont Chemin Français","Pont Chemin Français","Pont Chemin Français"],
            lines: ["102","23","24","23","24"],
            directions: ["0","0","0","1","1"]
        }
    }
    
  3. Run command npm install in ~/MagicMirror/modules/MMM-Ginko directory.

Config Options

Option Default Description
stations REQUIRED Insert here the stations names you want to display data from How to find a name ?.
lines REQUIRED Insert here the lines ids you want to display data from How to find a line ID ?.
directions REQUIRED Insert here lines direction (back = 0, forth = 1).
max 5 How many departures per route should be displayed.
shortenStation false After how many characters the station name should be cut. Default: show full name.
shortenDestination false After how many characters the destination name should be cut. Default: show full name.
rotateInterval 20 (20 sec) How fast should be switched between the stations in second.
updateInterval 300 (5 mins) How often should the data be fetched in second.
showColored true Should the display show lines colors ?

About

MagicMirror module to display public transport in Besançon (France) with Ginko data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published