Skip to content

GilMardon/MMM-Rennes-StarBus

Repository files navigation

MMM-Rennes-StarBus

This is a module for the MagicMirror². It tells you when the next bus arrives at your bus stop. This is for people that live in Rennes (France).

Installation

Navigate into your MagicMirror's modules folder and execute git clone https://github.com/GilMardon/MMM-Rennes-StarBus.

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
            module: 'MMM-Rennes-StarBus',
            position: "bottom_right",   // This can be any of the regions.
            config: {
                // See below for configurable options
                updateInterval: 60000,
                timeFormat : 24,
                maxEntries : 5,
                lines : [
                {
                    type: 'bus', 
                    line: '0004', 
                    stop: 'Bois+Labbé',
                    destination: 'ZA+Saint-Sulpice'
                }]
            }
        }
    ]
}

Configuration options

Option Description
lines Required Fill this array with information from www.star.fr.

Type: `array[{
                type: 'bus', 
                line: '0004', 
                stop: 'Bois+Labbé',
                destination: 'ZA+Saint-Sulpice'
            }]` <br> **Default value:** `none`

| timeFormat | Optional Use 12 or 24 hour format.

Possible values: 12 or 24
Default value: 24 | maxEntries | Optional The maximum number of buses to display.

Possible values: 1 to 10
Default value: 5 | updateInterval | Optional How often to check for the next bus.

Type: int
Default value: 60000 milliseconds (1 minute)

About

A MagicMirror module to show bus timetables and arival times of Rennes Star Bus.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published