Read the statement by Michael Teeuw here.
Module to show local traffic information - UK
-
@nickb23 I was able to achieve this with MMM-iFrameReload and an html file in that folder… It looks something like this.
{
module: ‘MMM-iFrameReload’,
header:‘Traffic Map’,
position: ‘top_right’, // This can be any of the regions.
config: {
// See ‘Configuration options’ for more information.
url: “http://localhost:8080/modules/MMM-iFrameReload/nameofhtmlfile.html”,
width: “580px”, // Optional. Default: 400px
height: “1100px”, // Optional. Default: 800px
refreshInterval: 600 //Optional. Default: 3600 = 1 hour
}
},with this code below to make the map and save the html in the iframe folder
https://developers.google.com/maps/documentation/javascript/examples/layer-traffic
-
thanks for the reply. Looks very promising. Do you know if it is also possible to have a test version of all traffic in a local area as well?
Nick
-
looks like very nice !! this module work ?
-
it has worked fine for me
-
black screen when i add this:
{
module: ‘MMM-iFrameReload’,
header: ‘Traffic Map’,
position: ‘top_right’, // This can be any of the regions.
config: {
// See ‘Configuration options’ for more information.
url: ‘http://localhost:8080/modules/MMM-iFrameReload/nameofhtmlfile.html’,
width: ‘580px’, // Optional. Default: 400px
height: ‘1100px’, // Optional. Default: 800px
refreshInterval: 600 //Optional. Default: 3600 = 1 hour
}
},
Can i use for my html file the same api key than MMM-traffic ? -
it looks like you have single quotes where double quotes are needed… as for the api key you can test it by substituting the url with one from another site.
-
Thanks for your help I found my 2 errors with the "
and i didn’t activate javascript api map in google.