Hi everyone, new coder here, but despite searching this forum for a solution and essentially duplicating the exact source code, I still can’t manage to have the raspberry pi recognize my Magic Mirror config file. I’ve renamed the file, dropping the “sample”, and saved and rebooted everything, but still no luck. After attempting to load the program, I am met with the same error screen others have mentioned that asks me to create a config file. I understand that since the config file exists, there must be some sort of error within the code, but after running it through both JSLint and JSHint, I haven’t found anything to be coming back as an error. Any ideas?
The entire source code can be found below:
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var config = {
port: 8080,
language: 'en',
timeFormat: 24,
units: 'metric',
modules: [{
module: 'alert',
}, {
module: ‘wuforecast’,
position: ‘top_right’, // This can be any of the regions.
// Best results in left or right regions.
config: {
// See ‘Configuration options’ for more information.
location: ‘France / Paris’,
appid: ‘abcde12345abcde12345abcde12345ab’ //wunderground.com API key.
}
}, {
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: 'New York',
locationID: '', //ID from bulk.openweather.org/sample/
appid: 'YOUR_OPENWEATHER_API_KEY'
}
}, {
module: 'weatherforecast',
position: 'top_right',
header: 'Weather Forecast',
config: {
location: 'New York',
locationID: '5128581', //ID from bulk.openweather.org/sample/
appid: 'YOUR_OPENWEATHER_API_KEY'
}
}, {
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
}
}, ]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {
module.exports = config;
}
ADMIN NOTE: Please use markup for codeblock.