Read the statement by Michael Teeuw here.
MMM-Tube-Status (London Underground)
-
@yawns I was thinking of making the font the line colours but then the Northern line would have never shown up :( It turns out TfL provide detailed UI and colour guides so I was able to get the correct colours for each line.
-
@nigel-daniels I have done as the config suggests however the display says it needs a valid config file.
-
@djbenny07
Then please show your entire config file. If the config.js file is there but the mirror says it is missing then there is something missing, most of the time , or }
Please put ` (back ticks) before and after your config file content when posting, then it will be parsed and shown correctly. Also please remove appids/app tokens, they should be kept private. -
’
var config = {
port: 8080,language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'Public Holidays', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', position: 'top_right', config: { location: 'London', locationID: '245613', //ID from http://www.openweathermap.org appid: 'ID Number taken out' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather Forecast', config: { location: 'London', locationID: '245613', //ID from http://www.openweathermap.org appid: 'ID Number taken out' } }, {
’
-
@djbenny07 i took it out of there as it didnt work. could it be corrected? is it possible to get it on the right hand upper corner underneath the clock?
-
@djbenny07 Is that the entire config file? I ask because it’s not closed properly.
Please put the module configuration that you’re trying to get to work back in and post the entire file for us so we can check it all. We’ll get you running.
-
yes, it is the entire file it currently works.
-
@djbenny07 I noticed that at the end of the file the last two lines should change and it should end something like:
{
module: 'weatherforecast',
position: 'top_right',
header: 'Weather Forecast',
config: {
location: 'London',
locationID: '245613', //ID from http://www.openweathermap.org
appid: 'ID Number taken out'
}
}]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {module.exports = config;}
If you then want to add the tube status module something like this should work:
{
module: 'weatherforecast',
position: 'top_right',
header: 'Weather Forecast',
config: {
location: 'London',
locationID: '245613', //ID from http://www.openweathermap.org
appid: 'ID Number taken out'
}
},
{
module: 'MMM-Tube-Status',
position: 'top_left',
header: 'Tube Status'
}]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {module.exports = config;}
I hope that helps.
-
BTW I have just updated the code so that if the optional show_all=false config is used and all of the lines are offering a good service there is a line displayed to indicate this rather than the module just disappearing.
-
OK I have found that i didn’t copy all the text. the below does not work
’
var config = {
port: 8080,language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'Public Holidays', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', position: 'top_right', config: { location: 'London', locationID: '264443', //ID from http://www.openweathermap.org appid: 'number' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather Forecast', config: { location: 'London', locationID: '264443', //ID from http://www.openweathermap.org appid: 'Number' } }, { module: 'MMM-Tube-Status' position: 'top_left' header: 'Tube' } { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "BBC Top Stories", url: "http://feeds.bbci.co.uk/news/rss.xml" } ], showSourceTitle: true, showPublishDate: true } }, ]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== ‘undefined’) {module.exports = config;}
’