Skip to content
MagicMirror module for dutch traffic information, using real-time information from the ANWB
JavaScript CSS
Branch: master
Clone or download
Latest commit 8c9189e Apr 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fonts Add files via upload Apr 18, 2019
icons Add files via upload Apr 16, 2019
LICENSE Initial commit Apr 16, 2019
MMM-MyTraffic.css Update MMM-MyTraffic.css Apr 18, 2019
MMM-MyTraffic.js Update MMM-MyTraffic.js Apr 18, 2019
README.md Update README.md Apr 18, 2019
node_helper.js Add preferredRoads - Select ALL or make own selection Apr 16, 2019
screenshot01.png Add files via upload Apr 18, 2019
screenshot02.png Add files via upload Apr 18, 2019

README.md

MMM-MyTraffic

MMM-Mytraffic is a MagicMirror module for dutch traffic information, using real-time information from the ANWB.

Screenshot Screenshot

Installation

Clone this repository in your modules folder, and install dependencies:

cd ~/MagicMirror/modules 
git clone https://github.com/htilburgs/MMM-MyTraffic

Configuration

Go to the MagicMirror/config directory and edit the config.js file. Add the module to your modules array in your config.js.

{
  module: 'MMM-MyTraffic',
  position: 'top_left',
  header: 'My Traffic Information',
  config: {
  	   showJams: true,		// Show Traffic jams
	   showConstructions: true,	// Show Constructions
	   showRadars: true,		// Show Speed Traps (Radar Controls)
	   largeIcons: true,		// Show Large or Small icons
	   maxWidth: "500px",		// Max width wrapper
	   preferredRoads: ['ALL']	// Show All roads or show you're selection -> ['A1','A50','A67']
	  }
},

Module configuration

Here is the documentation of options for the modules configuration:

Option Description
showJams Show Traffic Jams on the Dutch highways

True/False
Default: True
showConstructions Show Construcion works for the Dutch highways

True/False
Default: True
showRadars Show Speed traps (Radar Controls) on the Dutch highways

True/False
Default: True
lareIcons Show large or small icons and information

True/False
Default: True
maxWidth Max Width of the module

String
Default: "500px"
preferredRoads Show ALL roads or show you're own selection

Array
Default: ['ALL']

Example selection: preferredRoads: ['A1' , 'A2' , 'A50' , 'A67']

Special thanks

A special thanks to Sam Detweil for helping me out with some issues!

License

The MIT License (MIT)

Copyright © 2019 Harm Tilburgs

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.

You can’t perform that action at this time.