In case of black square, please see #4 and for solution. There is working HTML file called tomtomv6.html that should work when you add your key in the source code. There you might find the 403 codes with response text like invalid key for example. When the module is not loading, check in the browser debugger what section Network writes. Sometimes the TomTom module gives strange errors that can't be derived from the root cause. Most errors are not in the code, but in the configuration. Pleae check if you can make a working example from with your key. Is it this code, your API-key or perhape the computer itself? This is the most simple example and gives some great hints where the rootcause may be. Don't forget to add your key in this file on line 18. Please verify first if you can get the tomtomv6.html working by loading this page on computer that runs the Magic Mirror.E.g. It is at the moment not possible to fix this due technical reasons. When the the is not reachable, this part of the module will stall. It is advisable not to use the TomTom server. Whenever TomTom releases a new version, and remoteTTCSSJS is set to true, this value can be changed to the most current version. TTVersion: version in string default is "6.12.0" The following settings is only needed when you the maps.css, traffic-incidents.css, and from TomTom site. RemoteTTCSSJS: true/ false default is false Optional Settings you shouldn't care about If you want to display point of interests. Shows incidents like road blocks, incidents, narrowing, road construction etc. ShowIncidents: true/ false default is true It depends on the amount of accidents and traffic. The calculation of the amount of request is hard to guess. When you reach the limit, "HTTP 403 – Over the limit error" errors will be shown in the log of MagicMirror. On TomTom you get 2.5000 transactions on daily basis for free. Refresh: integer that is the amount of ms for a refresh of traffic and incident information. ShowMarker: This will show a marker on the map. Relative-delay: Only the roads where the traffic speed is slower than normal will be marked on the map. Relative: Roads will be marked green for normal traffic speed and marked red when traffic speed is slower than normal. There are three options: absolute, delay, and relative delay.Ībsolute: Roads will be marked green for high speed and marked red for low speed traffic. Here you can select in which way traffic should be displayed. Traffic: "absolute"/ "relative"/ "relative-delay". Optional Settings you might want to change Lang: language specified in config.js under language. Higher numbers will zoom in while lower numbers will zoom out. Try, and see what size suits the best for you. Here you can set the height and width of the map in any CSS unit style. That is somewhere under Ghana in the Atlantic Ocean/Gulf of Guinea. If you keep lng and lat settings empty, TomTom will go to longitude 0 and latitude 0. You can find them after the sign in the address bar. Or use Google Maps to get the longitude and latitude of your desired location. You can obtain from maps.ie the longitude and latitude for places. See refresh in Optional Settings for more information. When this limit has been reached, an error "HTTP 403 – Over the limit error" will be given. The key is free for 2.500 transactions on daily basis. When your registration is a success, the site will guide you to create a key for you application. A key can be obtained free, and without the need of a credit card, from the developers site. In order to get the data from TomTom, a developers key is required.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |