Skip to content
Magic Mirror Module used to look at buses using Transloc
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MMM-Transloc.js
README.md README: minor grammatical fixes Jun 9, 2019
example.png INITIAL COMMIT Jun 9, 2019
node_helper.js INITIAL COMMIT Jun 9, 2019

README.md

MMM-Transloc

MMM-Transloc was created to use with the same API that Rider App uses while still needing improvements its better than nothing.

Full

Dependencies / Requirements

npm install unirest

You will also need to create a API key at RapidAPI

to find your particular Agency Number use the code below with your API key placed in

curl --get --include 'https://transloc-api-1-2.p.rapidapi.com/agencies.json?'   -H 'X-RapidAPI-Host: transloc-api-1-2.p.rapidapi.com'   -H 'X-RapidAPI-Key: YOUR KEY' >> AllAgencies.txt

will place every agency in a text file for you to search

to find your bus stop either use your specific Transloc Site or

curl --get --include 'https://transloc-api-1-2.p.rapidapi.com/stops.json?callback=call&agencies= YOUR AGENCY NUMBER'   -H 'X-RapidAPI-Host: transloc-api-1-2.p.rapidapi.com'   -H 'X-RapidAPI-Key: YOUR KEY'

that will display all stops for your agency

Configuration

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

modules: [
{
	header: 'Reitz Union',
    module: 'MMM-Transloc',
    position: 'lower_third',
    config: {
    	url:'testMe', // Optional
    	arrayName: 'arrivals',// Required
    	updateInterval: 1000,
    	stop_id: 4093250,
    	AgencyNum: 116,
    	Key: ""
        
             }
}

]
You can’t perform that action at this time.