An animated globe module for Magic Mirror
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
LICENSE
MMM-Globe.js
README.md
data.js
defaultData.js
encom-globe.js
grid.js
styles.css

README.md

MMM-Globe

This an extension for the MagicMirror. It displays a rotating globe constructed of Hexadecimal shapes specifically formatted to look great on a Magic Mirror. Extensive thanks and gratitude to the globe object's original creator Rob Scanlon for all his help and support.

Installation

  1. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/Eunanibus/MMM-Globe. A new folder will appear.
  2. Add it to the modules array in the config/config.js (see next step below)

Using the module

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

modules: [
	{
		module: 'MMM-Globe',
		position: 'lower_third',	// This can be any of the regions. Best results in lower_third
		config: {
                size:"medium", // Globe size. See configuration options below for more options
                locations: [ 
                    // Fill with location Objects if desired
                    // e.g.
                    // {lat:37.77493,lng:-122.41942, label: "San Francisco"},
                    // {lat:-23.5475,lng:-46.63611, label: "Sao Paulo"}
                    
                    // Individual values must be seperated by a comma. 
                    // You can look up the latitude and longitude for a specific location on Google Maps.
                ]
		}
	}
]

Configuration options

The following properties can be configured:

Option Description
size The size you'd like your globe.

i.e : medium
Possible values: x-small small medium large x-large
Default value: medium
locations (Optional)An array of Location objects. These will construct the pins within your globe:. Each value must be seperated within the array by a comma.

{lat: latitudeValue , lng: longitudeValue, label:"Label Value"}

i.e : [{lat:37.77493,lng:-122.41942, label: "San Francisco"}]
Default value: A default array of locations will be provided if none is specified. Leave blank if default locations are OK.

Dependencies

  • All dependencies in this module are self-regulated

The MIT License (MIT)

Copyright © 2016 Eunan Camilleri

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.