Skip to content

MagicMirror module for dutch traffic information, using real-time information from the ANWB

License

Notifications You must be signed in to change notification settings

htilburgs/MMM-MyTraffic

Repository files navigation

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.