Skip to content

A raspberry pi MagicMirror module that displays a map, centered at provided coordinates, with Google Maps Traffic information.

License

Notifications You must be signed in to change notification settings

Sp4M/MMM-GoogleMapsTraffic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-GoogleMapsTraffic

Alt text

A module for the MagicMirror² that displays a map, centered at provided coordinates, with Google Maps Traffic information.

Using the module

To use this module, clone this repo to your MagicMirror/modules/ directory.

git clone https://github.com/vicmora/MMM-GoogleMapsTraffic.git

And add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
            module: 'MMM-GoogleMapsTraffic',
            config: {
                key: 'YOUR_KEY',
                lat: 37.8262306,
                lng: -122.2920096,
                height: '300px',
                width: '300px'
            }
        }
    ]
}

Configuration options

Option Description
key Required Google api key. See below for help.
lat Required Latitude used to center the map. See below for help.

Type: float
lng Required Longitude used to center the map. See below for help.

Type: float
height Required Height of the map.

Type: string (pixels)
width Required Width of the map.

Type: string (pixels)

Google API Key

Obtain an api at Google Developer's page.

Coordinates

The easiest way to obtain latitude and longitude coordinates is via Google Maps. Type an address, location, or center the map where you'd like it centered. The coordinates will appear in the address bar as seen below.

Alt text

About

A raspberry pi MagicMirror module that displays a map, centered at provided coordinates, with Google Maps Traffic information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%