All Projects → CFenner → MMM-LocalTransport

CFenner / MMM-LocalTransport

Licence: MIT License
A module for the MagicMirror to display informations about local tranportation.

Programming Languages

javascript
184084 projects - #8 most used programming language
Less
1899 projects

Projects that are alternatives of or similar to MMM-LocalTransport

traffic analyser
Retrieve useful information from apache/nginx access logs to help troubleshoot traffic related problems
Stars: ✭ 44 (+25.71%)
Mutual labels:  traffic
MMM-MotionDetector
This is a motion detector module for MagicMirror
Stars: ✭ 32 (-8.57%)
Mutual labels:  magicmirror
MMM-EmbedYoutube
Embed youtube video for MagicMirror
Stars: ✭ 29 (-17.14%)
Mutual labels:  magicmirror
Wan-Emulation-TC-and-Netem
Wide Area Network Link Emulation with TC and NetEm
Stars: ✭ 22 (-37.14%)
Mutual labels:  traffic
MMM-OpenmapWeather
This module loads current weather as images on Magic Mirror
Stars: ✭ 18 (-48.57%)
Mutual labels:  magicmirror
MMM-AlarmClock
Alarm Clock Module for MagicMirror²
Stars: ✭ 46 (+31.43%)
Mutual labels:  magicmirror
basenine
Schema-free, document-oriented streaming database that optimized for monitoring network traffic in real-time
Stars: ✭ 38 (+8.57%)
Mutual labels:  traffic
mosaic
Eclipse MOSAIC is a Multi-Domain and Multi-Scale Simulation Framework for Automated and Connected Mobility Scenarios.
Stars: ✭ 51 (+45.71%)
Mutual labels:  traffic
zk-sniffer
sniffer and parse zookeeper packet
Stars: ✭ 38 (+8.57%)
Mutual labels:  traffic
MMM-Bring
A module for the MagicMirror that displays your Bring! shopping list.
Stars: ✭ 18 (-48.57%)
Mutual labels:  magicmirror
MMM-Netatmo
A module for the MagicMirror to display informations about your rooms climate from your Netatmo system.
Stars: ✭ 26 (-25.71%)
Mutual labels:  magicmirror
youtube-or-pornhub
Service identification on ciphered traffic.
Stars: ✭ 26 (-25.71%)
Mutual labels:  traffic
mmpm
MagicMirror Package Manager
Stars: ✭ 104 (+197.14%)
Mutual labels:  magicmirror
MMM-Sonos
A module for the MagicMirror to display informations about the currently playing songs on your Sonos system.
Stars: ✭ 35 (+0%)
Mutual labels:  magicmirror
MirrorMirrorOnTheWallSkill
Alexa skill for controlling a MagicMirror²
Stars: ✭ 37 (+5.71%)
Mutual labels:  magicmirror
SmartMirror
My MagicMirror running on a Raspberry Pi
Stars: ✭ 110 (+214.29%)
Mutual labels:  magicmirror
epaper-clock-and-more
e-paper clock + weather + AQI + traffic delays - using Waveshare 2.7inch & 4.2inch eink displays running on Raspberry Pi
Stars: ✭ 34 (-2.86%)
Mutual labels:  traffic
storm-traffic
使用Storm实时处理交通大数据(数据源:kafka,集群管理:zookeeper)
Stars: ✭ 34 (-2.86%)
Mutual labels:  traffic
Linux-admin
Shell scripts to automate download of GitHub traffic statistics, cluster administration, and create an animated GIF.
Stars: ✭ 23 (-34.29%)
Mutual labels:  traffic
Bigscity-LibCity-Datasets
Traffic data processing tools in LibCity
Stars: ✭ 62 (+77.14%)
Mutual labels:  traffic

code climate License

MagicMirror-LocalTransport-Module

This module display the next local transport connection between an origin and destination.

preview

Usage

You need to install the module for your MagicMirror.

Installation

Navigate into your MagicMirror's modules folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/CFenner/MMM-LocalTransport

Configure the module in your config.js file.

Configuration

Add module configuration to config.js.

{
  module: 'MMM-LocalTransport',
  position: 'ANY_POSITION',
  config: {
    api_key: 'YOUR_API KEY',
    origin: 'YOUR_ORIGIN',
    destination: 'YOUR_DESTINATION'
  }
},
Option Description
apiKey The API key, which can be obtained here.

This value is REQUIRED
origin The start location.

Example: Mannheim HBF
This value is REQUIRED
destination The target location.

Example: Frankfurt HBF
This value is REQUIRED
maximumEntries Maximum number of routes to display. Less routes will be shown if less are returned by Google. Routes will be sorted by arrival time. This option should take an integer value between 1 and 5.

Default value: 3
updateInterval How often does the content need to be fetched? (Minutes) Note that the module refreshes every 15 seconds to always display an accurate estimate when you need to leave.

Default value: 5
animationSpeed Speed of the update animation. (Seconds)

Default value: 1
displayStationLength Number of characters of the departure station for each transport mode to display.
0 means display all,
-1 means don't show the departure station

Default value: 0
displayArrival Boolean if the arrival time should be shown in the header for each option.

Default value: true
displayWalkType String how detailed the walking segments should be shown.
'none' means to not display anything,
'short' means to display the symbol, the time and the short version of the unit or
'long' means that a symbol, the time and the long string for the unit is displayed. This options is default if an invalid string is supplied.

Default value: 'short'
maxWalkTime Maximum time you are willing to walk between stations in minutes

Default value: 10
maxModuleWidth Maximum width of the module in pixel. Unlimited when set to 0. This option can be used to make the module shorter in case of very long lines for directions.

Default value: 0
fade Boolean if a fade should be applied - same as for calendar module

Default value: true
fadePoint Percentage, where the fade should start. This should be a value between 0 and 1 - same as for calendar module

Default value: 0.1
showColor Boolean if transport symbols should be displayed in color (Note: symbols for default transport modes are always in grey)

Default value: true
language Language to display information in - german de or english en

Default value is same as defined in the main config file
units Units to use - metric or imperial

Default value is same as defined in the main config file
timeFormat 24 or 12 hour clock for displaying the arrival time

Default value is same as defined in the main config file

Preview of various settings

{
  module: 'MMM-LocalTransport',
  header: 'to Victoriy Coach Station',
  position: 'top_left',
  config: {
    api_key: 'MYG00GLEAP1KEY',
    origin: 'Waterloo Station, London, United Kingdom',
    destination: 'Victoria Coach Station, London, United Kingdom',
    maximumEntries: 4,
    maxWalkTime: 15,
    displayWalkType: 'full',
    maxModuleWidth: 400
  }
},

London - left long block

{
  module: 'MMM-LocalTransport',
  header: 'nach Berlin',
  position: 'top_right',
  config: {
    api_key: 'MYG00GLEAP1KEY',
    origin: 'Bahnhof Hamburg Altona, Hamburg, Germany',
    destination: 'Berlin Hauptbahnhof, Berlin, Germany',
    maximumEntries: 6,
    maxWalkTime: 15,
    displayStationLength: -1,
    displayWalkType: 'none',
    displayArrival: false,
    language: 'de'
  }
},

Berlin - right short

{
  module: 'MMM-LocalTransport',
  header: 'to Museum of Art',
  position: 'top_left',
  config: {
    api_key: 'MYG00GLEAP1KEY',
    origin: 'MetLife Stadium, 1 MetLife Stadium Drive, East Rutherford, NJ 07073, US',
    destination: '1000 5th Ave, New York, NY 10028, US',
    maximumEntries: 3,
    maxWalkTime: 30,
    displayStationLength: 10
  }
},

New York - left

Special Thanks

Thanks to SamLewis0602 for his module MMM-Traffic by SamLewis0602 on which this one is based on.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].