Skip to content

Magic Mirror Module used to look at buses using Transloc

Notifications You must be signed in to change notification settings

OrangeHoopla/MMM-TransLoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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: ""
        
             }
}

]

About

Magic Mirror Module used to look at buses using Transloc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published