Ho hum, I got bored, so…
@zzaidi148 here you go, below is your working code.
As was said above, you needed to remove the // from var config, and the extra config section at the end. I also tidied up the code (putting spaces between modules to make them easier to read), and added some extra commas (because I tend to anyway) . You just need to replace the API keys with the correct ones and the code below will work.
var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "en",
timeFormat: 12,
units: "imperial",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar",
},
{
module: "clock",
position: "top_left",
},
{
module: "calendar",
header: "US Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check-o",
url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
}
]
}
},
{
module: "compliments",
position: "lower_third",
},
{
module: "currentweather",
position: "top_right",
config: {
location: "Dallas",
locationID: "4684888", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "private",
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "Dallas",
locationID: "4684888", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "private",
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true
}
},
{
module: 'MMM-GoogleMapsTraffic',
config: {
key: 'YOUR_KEY',
lat: 37.8262306,
lng: -122.2920096,
height: '300px',
width: '300px',
},
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}