Read the statement by Michael Teeuw here.
config.js docent work anymore
-
Hello guys,
i don’t know what i did but my config.js is not working anymore. can somebody look at the code and tell me whats wrong?
the calendar link i delete of course :-)
/*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/ var config = { electronOptions: { }, address: "0.0.0.0", port: 8090, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.178.26", "192.168.178.53"], language: "de", modules: [ { module: "alert", config: { } }, { module: "updatenotification", position: "top_bar", config: { }, }, { module: "clock", position: "top_center", config: { } }, { module: "calendar", header: "Kalender", position: "bottom_left", config: { calendars: [ { url: "", symbol: "calendar" }, { url: "", symbol: "recycle" }, { url: "", symbol: "eur" }, { url: "", symbol: "scissors" }, ], timeFormat: "absolute", dateFormat: "Do MMM", maximumEntries: "5", } }, { module: "currentweather", position: "top_left", config: { location: "Strehla,Germany", locationID: "2826033", appid: "", iconTable: { "01d": "wi-day-sunny", "02d": "wi-day-cloudy", "03d": "wi-cloudy", "04d": "wi-cloudy-windy", "09d": "wi-showers", "10d": "wi-rain", "11d": "wi-thunderstorm", "13d": "wi-snow", "50d": "wi-fog", "01n": "wi-night-clear", "02n": "wi-night-cloudy", "03n": "wi-night-cloudy", "04n": "wi-night-cloudy", "09n": "wi-night-showers", "10n": "wi-night-rain", "11n": "wi-night-thunderstorm", "13n": "wi-night-snow", "50n": "wi-night-alt-cloudy-windy" } } }, { module: "weatherforecast", position: "top_left", header: "Wettervorhersage", config: { location: "Strehla, Germany", locationID: "2826033", appid: "", iconTable: { "01d": "wi-day-sunny", "02d": "wi-day-cloudy", "03d": "wi-cloudy", "04d": "wi-cloudy-windy", "09d": "wi-showers", "10d": "wi-rain", "11d": "wi-thunderstorm", "13d": "wi-snow", "50d": "wi-fog", "01n": "wi-night-clear", "02n": "wi-night-cloudy", "03n": "wi-night-cloudy", "04n": "wi-night-cloudy", "09n": "wi-night-showers", "10n": "wi-night-rain", "11n": "wi-night-thunderstorm", "13n": "wi-night-snow", "50n": "wi-night-alt-cloudy-windy" } } }, { module: "MMM-EasyPix", header: "Wlan-Code", position: "bottom_right", config: { picName: "qrcode.png", maxWidth: "150px", header: "Wlan", } }, { module: "MMM-MovieListings", position: "top_left", config: { apiKey: 'cee87e81c99b368b7aa611763b37fada', region: 'DE', language: 'de-DE', interface: 'poster', } }, { module: 'MMM-MyCommute', position: 'middle_right', header: 'Weg zur Arbeit', config: { apikey: 'AIzaSyAfVoBUzZmIRxFiKtfgw882SrvOBzMYKpk', origin: 'Melchior-Tatzen-Weg 24, 01616 Strehla', showSummary: true, destinations: [ { destination: 'Peschelstraße 33, 01139 Dresden', label: 'ElbePark', mode: 'driving', alternatives: true, } ] } }, paths: { modules: "modules", vendor: "vendor" } } /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
-
@fischi87 Hi, schaut aus als kommst du aus Deutschland. Hast du schon mal die config.js Prüfung von Mykle1 gemacht. In den meisten Fällen ist es ein fehlendes oder eins zuviel Komma.
-
@tbbear said in config.js docent work anymore:
@fischi87 Hi, schaut aus als kommst du aus Deutschland. Hast du schon mal die config.js Prüfung von Mykle1 gemacht. In den meisten Fällen ist es ein fehlendes oder eins zuviel Komma.
npm run config:check
-
@fischi87 said in config.js docent work anymore:
{
module: “updatenotification”,
position: “top_bar”,
config: {
},
},There is a comma too much.
line 22…should look like this:
{ module: "updatenotification", position: "top_bar", config: { } },
Oh, and there is no " ], " at the end…
should look like this:], paths: { modules: "modules", vendor: "vendor" } };
so try it with this one:
/*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/ var config = { electronOptions: { }, address: "0.0.0.0", port: 8090, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.178.26", "192.168.178.53"], language: "de", modules: [ { module: "alert", config: { } }, { module: "updatenotification", position: "top_bar", config: { } }, { module: "clock", position: "top_center", config: { } }, { module: "calendar", header: "Kalender", position: "bottom_left", config: { calendars: [ { url: "", symbol: "calendar" }, { url: "", symbol: "recycle" }, { url: "", symbol: "eur" }, { url: "", symbol: "scissors" }, ], timeFormat: "absolute", dateFormat: "Do MMM", maximumEntries: "5", } }, { module: "currentweather", position: "top_left", config: { location: "Strehla,Germany", locationID: "2826033", appid: "", iconTable: { "01d": "wi-day-sunny", "02d": "wi-day-cloudy", "03d": "wi-cloudy", "04d": "wi-cloudy-windy", "09d": "wi-showers", "10d": "wi-rain", "11d": "wi-thunderstorm", "13d": "wi-snow", "50d": "wi-fog", "01n": "wi-night-clear", "02n": "wi-night-cloudy", "03n": "wi-night-cloudy", "04n": "wi-night-cloudy", "09n": "wi-night-showers", "10n": "wi-night-rain", "11n": "wi-night-thunderstorm", "13n": "wi-night-snow", "50n": "wi-night-alt-cloudy-windy" } } }, { module: "weatherforecast", position: "top_left", header: "Wettervorhersage", config: { location: "Strehla, Germany", locationID: "2826033", appid: "", iconTable: { "01d": "wi-day-sunny", "02d": "wi-day-cloudy", "03d": "wi-cloudy", "04d": "wi-cloudy-windy", "09d": "wi-showers", "10d": "wi-rain", "11d": "wi-thunderstorm", "13d": "wi-snow", "50d": "wi-fog", "01n": "wi-night-clear", "02n": "wi-night-cloudy", "03n": "wi-night-cloudy", "04n": "wi-night-cloudy", "09n": "wi-night-showers", "10n": "wi-night-rain", "11n": "wi-night-thunderstorm", "13n": "wi-night-snow", "50n": "wi-night-alt-cloudy-windy" } } }, { module: "MMM-EasyPix", header: "Wlan-Code", position: "bottom_right", config: { picName: "qrcode.png", maxWidth: "150px", header: "Wlan", } }, { module: "MMM-MovieListings", position: "top_left", config: { apiKey: 'cee87e81c99b368b7aa611763b37fada', region: 'DE', language: 'de-DE', interface: 'poster', } }, { module: 'MMM-MyCommute', position: 'middle_right', header: 'Weg zur Arbeit', config: { apikey: 'AIzaSyAfVoBUzZmIRxFiKtfgw882SrvOBzMYKpk', origin: 'Melchior-Tatzen-Weg 24, 01616 Strehla', showSummary: true, destinations: [ { destination: 'Peschelstraße 33, 01139 Dresden', label: 'ElbePark', mode: 'driving', alternatives: true, } ] } }, ], paths: { modules: "modules", vendor: "vendor" } }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
-
@tbbear said in config.js docent work anymore:
Hast du schon mal die config.js Prüfung von Mykle1 gemacht.
What did you just say about me, Robert? :-)
@tbbear said in config.js docent work anymore:
npm run config:check
In your MacigMirror directory :-)
-
-
thanks it works again!!!
-
@fischi87 NEIN, bestimmt nicht. War viel einfacher: location: “Strehla, Germany”, aus deiner config.