Skip to content

Infinitte/MMM-Ctan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-Ctan

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).

Example of MMM-Ctan

Dependencies

Installation

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.

Update

cd ~/MagicMirror/modules/MMM-Ctan
git pull

Find your stop number

Use CTAN API to locate your consortium and stop.

Using the module

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
    }
  },
]

Configuration options

The following properties can be configured:

Option Description
parada ID number of the bus stop.

Required
Value type: Integer
Default value: 1
consorcio Consortium number.

Required
Value type: Integer
Default value: 7
updateInterval Time (in seconds) to wait before refreshing the data from the API.

Required
Value type: Integer
Default value: 300

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors