Skip to content

A module to show the quickest route to a specified destination for the MagicMirror² platform.

License

Notifications You must be signed in to change notification settings

jalibu/MMM-Google-Destination

Repository files navigation

MMM-Google-Destination

version Known Vulnerabilities

A module to show the quickest route to a specified destination for the MagicMirror² platform.

Contribution welcome.

Support

If you like this module and want to thank, please rate this repository with a star or buy me a coffee :-)

Buy Me A Beer

Features

tbd

Demo

image

Installing the Module

  1. Navigate to the MagicMirror/modules directory and execute the following command

    git clone https://github.com/jalibu/MMM-Google-Destination.git
  2. Get your Google Maps API Key.

  3. Add the module configuration into the MagicMirror/config/config.js file (sample configuration):

    {
    	module: "MMM-Google-Destination",
    	position: "top_left",
    	config: {
     	updateIntervalInSeconds: 60,
     	apiKey: "YOUR_API_KEY",
     	height: 400,
     	width: 400,
     	start: 'Heidelberg',
     	destination: 'Mainz',
     	expectedDurationInMinutes: null,
     	routeColor: '#0088FF'
    	}
    }

Options

Option Description
updateIntervalInSeconds How often should the route be recalculated?.

Type: int
Default value: 60

Contribution and Development

This module is written in TypeScript and compiled with Rollup.
The source files are located in the /src folder. Compile target files with npm run build.

Contribution for this module is welcome!

Thanks to

MMM-Google-Destination