Read the statement by Michael Teeuw here.
Black screen after installation on Pi 2 model B V1.1
-
Hello,
I use the auto install and after duplicate “config.js.sample” to “config.js” but when I launch “index.html” and I have a blackscreen. I did not change the “config.js”.
Help me please ^^
-
@vicdilou what do you mean with launch index.html? did you open this file in a browser? or did you started with npm or node server only?
-
I open the file in a browser. How i have to launch it ?
-
@vicdilou
cd ~/MagicMirror
thennpm start
-
I tried this before but it doesn’t work and now it work !
Thank you.edit : How to close it properly ?
-
@strawberry-3-141 thanks for the great advice.
Ive tried your advise. Nevertheless my screen is now completely black, too.
Ive tried it several times now, sometimes it works sometimes it doesn’t.
After Ive changed the API Key of openwjeathermaps my screen went black again.
So @strawberry-3-141 do you have and advise maybe? :-)
Kind Regards from Germany,
Paul
-
@PaulB A completely black screen usually means there is an error in the
config.js
file. Please post yours, (specifically the openweathermaps module entry) using the markdown features and we’ll take a look at it. -
@bhelper I am trying to :-D
/* Magic Mirror Config Sample
*- By Michael Teeuw http://michaelteeuw.nl
- MIT Licensed.
*/
var config = {
port: 8080,language: 'de', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { 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: 'Aktuelles Wetter', position: 'top_right', config: { location: 'Bayreuth,Germany', locationID: '5128581', //ID from http://www.openweathermap.org appid: '158010f0c45e255e6439eb1885b3482b' } }, { module: 'Wettervorhersage', position: 'top_right', header: 'Wettervorhersage', config: { location: 'Bayreuth,Germany', locationID: '5128581', //ID from http://www.openweathermap.org appid: '158010f0c45e255e6439eb1885b3482b' } }, { 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;} -
At a guess, it looks like you put the header for your module in the module name specification. The
module: [name]
lines must match the name of the module. These names also correspond with folders in the~/MagicMirror/modules
path. The modules that are installed with the MagicMirror code (which I believe you are trying to use) will be in~/MagicMirror/modules/default/[module name]
So try this instead:
{ module: 'currentweather', position: 'top_right', config: { location: 'Bayreuth, Germany', locationID: '5128581', appid: '158010f0c45e255e6439eb1885b3482b' } }, { module: 'weatherforecast', position: 'top_right', header: 'Wettervorhersage', config: { location: 'Bayreuth, Germany', locationID: '5128581', appid: '158010f0c45e255e6439eb1885b3482b' } },
-
@bhepler You are a Genius! Thanks a lot. :-)
Changing the module names was not my best idea, I guess :D