A module for the MagicMirror to display the closest Coup e-scooters in Berlin and other cities
This module is an extension of the amazing MagicMirror2 project by MichMich.
v0.1
A working installation of MagicMirror2
- npm
- lodash
- Navigate into your MagicMirror's
modules
folder. - Execute
git clone https://github.com/bogomips/MMM-CoupEscooters
. - Execute
cd MMM-CoupEscooters
. - Execute
npm install
.
Sample minimum configuration entry for your ~/MagicMirror/config/config.js
:
...
{
module: 'MMM-CoupEscooters',
position: 'top_right',
config: {
myPosition:[xxx.xxxxx, yy.yyyyy] , // Your latitude and longitude, take it from google maps.
}
} // If this isn't your last module, add a comma after the bracket
...
Option | Default | Description |
---|---|---|
cityId | fb7aadac-bded-4321-9223-e3c30c5e3ba5 | Which city do you want to use? Default: Berlin, Germany, I don't know yet the values for other cities |
updateInterval | 120 | How often you wanna refresh your data? I suggest not to set a low value to avoid blocks |
scootersToDisplay | 5 | How many available scooter do you wanna display? |
highlightWithin | 150 | Highlight the scooter included in this range (in meters) |
highlightColor | #f06595 | The color to use to highlight closer scooters |
batteryColor | ['#ff0000','#F9D71C','#00ff00'] | The color of the battery (red, yellow, green) |