This MagicMirror2 module displays information about estimations for bus stops in Consorcio de Transportes de Andalucia. The service is provided by EMT Valencia. Supports Spanish (es).
- An installation of MagicMirror2.
- API of ctan.
Navigate into your MagicMirror's modules folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/Infinitte/MMM-Ctan.git
Navigate Navigate to the new MMM-Ctan folder and install the node dependencies.
Clone this repository:
npm install request
Configure the module in your config.js file.
cd ~/MagicMirror/modules/MMM-Ctan
git pullUse CTAN API to locate your consortium and stop.
- Consortium List: http://api.ctan.es/v1/Consorcios/7/consorcios
- Stop list by Consortium: http://api.ctan.es/v1/Consorcios/7/paradas?lat=&long=
To use this module, add it to the modules array in the config/config.js file.
modules: [
{
module: 'MMM-EMTValencia',
position: 'top_left',
header: 'My bus stop',
config: {
stopNumber: 683,
stopLine: null,
updateInterval: 10
}
},
]The following properties can be configured:
| Option | Description |
|---|---|
parada |
ID number of the bus stop. Required Value type: IntegerDefault value: 1 |
consorcio |
Consortium number. Required Value type: IntegerDefault value: 7 |
updateInterval |
Time (in seconds) to wait before refreshing the data from the API. Required Value type: IntegerDefault value: 300 |
