Station monitor for the De Lijn the flemish public bus transport company.
This Module was build upon the base code from [Yo-Less] (https://github.com/yo-less/MMM-KVV/).
v1.0.1 initial commit Patchwork and code cleanup.
A working installation of MagicMirror2
- npm
- request
- Navigate into your MagicMirror's
modules
folder. - Execute
git clone https://github.com/SeppeM/MMM-DLijn
. - Execute
cd MMM-DLijn
. - Execute
npm install
.
This module has been programmed to allow for multiple instances. Simply add more MMM-DLijn config entries to your config.js file to display multiple stations and configure them according to your needs.
Sample minimum configuration entry for your ~/MagicMirror/config/config.js
:
...
{
module: 'MMM-DLijn',
position: 'top_left',
header: 'stopName' // At the moment this is a manual (optional)
config: {
stopID: '', // Which stop would you like to have displayed?
}
} // If this isn't your last module, add a comma after the bracket
...
Sample configuration entry for your ~/MagicMirror/config/config.js
with optional parameters:
...
{
module: 'MMM-DLijn',
position: 'top_left',
header: 'stopName' // At the moment this is a manual (optional)
config: {
stopID: '', // Which stop would you like to have displayed?
maxConn: 6, // How many connections would you like to see? (Maximum: 10)
lines: '', // What lines are you interested in?
labelRow: true, // Show or hide column headers
reload: 60000 // How often should the information be updated? (In milliseconds)
}
} // If this isn't your last module, add a comma after the bracket
...
- Open your web browser and navigate to (https://www.delijn.be/en/haltes/).
- Use the search field to find the stop you are interested in.
- Once you can see the list of connections for your stop in your browser, note the information between the (),
this is theStopID
you are looking for.
Option | Default | Description |
---|---|---|
stopID | de:8212:89 | Which stop would you like to have displayed? Default: Karlsruhe central station (tram stop) |
maxConnoptional |
8 | How many connections would you like to see? Note: The KVV API limits the maximum number of connections to 10. |
linesoptional |
Only show connections for specific lines - use commas to choose multiple lines. Example values: 'S1, 3' Note: You can use spaces when setting this parameter in order to enhance legibility. |
|
labelRowoptional |
true | Show or hide column headers Possible values: true, false |
reloadoptional |
60000 | How often should the information be updated? (In milliseconds) Default: Every minute |
MIT License
Copyright (c) 2018 SeppeM (https://github.com/SeppeM/) Copyright (c) 2016 yo-less (https://github.com/yo-less/)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.