Hi all,
Forgive my inept attempt to explain the problems I’m encountering, I have every intention to learn.
I am using a Pi 3b with a clean install from a noobs SD.
I installed MagicMirror following the website instructions and the default config works fine. Because of my screen size I wanted to edit the layout to cycle modules in the centre whilst keeping the clock and compliments static.
I have added the modules following instructions and included them in the config file, yet when I run the Magic Mirror I get a black screen.
/* Magic Mirror Config Sample
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*
* For more information on how you can configure this file
* see https://docs.magicmirror.builders/getting-started/configuration.html#general
* and https://docs.magicmirror.builders/modules/configuration.html
*/
let 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 or empty, is "localhost"
port: 8080,
zoom: 0.9,
basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
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"],
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
language: "en",
locale: "en-UK",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "metric",
// serverOnly: true/false/"local" ,
// local for armv6l processors, default
// starts serveronly and then starts chrome browser
// false, default for all NON-armv6l devices
// true, force serveronly mode, because you want to.. no UI on this device
modules: [
{
module: 'MMM-Carousel',
config: {
transitionInterval: 20000,
ignoreModules: [],
mode: 'positional',
middle_centre: {enabled: true}
}
},
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_centre"
},
{
module: "compliments",
position: "bottom_centre"
},
{
module: 'MagicMirror-QuoteCatalog',
header: 'The Quote Catalog',
position: 'middle_centre',
config: {
timeFormat: 3600
}
},
{
module: "MMM-NowPlayingOnSpotify",
position: "middle_centre",
config: {
clientID: "removed for post",
clientSecret: "removed for post",
accessToken: "removed for post ",
refreshToken: "removed for post"
}
},
{
module: "weather",
position: "middle_centre",
config: {
weatherProvider: "openweathermap",
type: "current",
location: "New York",
locationID: "2644210", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "removed for post"
}
},
{
module: "weather",
position: "middle_centre",
header: "Weather Forecast",
config: {
weatherProvider: "openweathermap",
type: "forecast",
location: "New York",
locationID: "2644210", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "removed for post"
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Apologies if it’s sloppy I’m working on an iPad using VNC.
pi@raspberrypi:~/MagicMirror $ npm run start
npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
> magicmirror@2.16.0 start /home/pi/MagicMirror
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[03.10.2021 12:05.53.187] [LOG] Starting MagicMirror: v2.16.0
[03.10.2021 12:05.53.196] [LOG] Loading config ...
[03.10.2021 12:05.53.210] [LOG] Loading module helpers ...
[03.10.2021 12:05.53.214] [LOG] No helper found for module: MMM-Carousel.
[03.10.2021 12:05.53.216] [LOG] No helper found for module: alert.
[03.10.2021 12:05.53.561] [LOG] Initializing new module helper ...
[03.10.2021 12:05.53.563] [LOG] Module helper loaded: updatenotification
[03.10.2021 12:05.53.564] [LOG] No helper found for module: clock.
[03.10.2021 12:05.53.566] [LOG] No helper found for module: compliments.
[03.10.2021 12:05.53.568] [LOG] No helper found for module: MagicMirror-QuoteCatalog.
[03.10.2021 12:05.54.480] [LOG] Initializing new module helper ...
[03.10.2021 12:05.54.482] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
[03.10.2021 12:05.54.484] [LOG] No helper found for module: weather.
[03.10.2021 12:05.54.486] [LOG] All module helpers loaded.
[03.10.2021 12:05.54.680] [LOG] Starting server on port 8080 ...
[03.10.2021 12:05.54.706] [LOG] Server started ...
[03.10.2021 12:05.54.709] [LOG] Connecting socket for: updatenotification
[03.10.2021 12:05.54.711] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify
[03.10.2021 12:05.54.712] [LOG] Sockets connected & modules started ...
[03.10.2021 12:05.55.131] [LOG] Launching application.
[03.10.2021 12:05.58.030] [ERROR] (node:2398) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[03.10.2021 12:05.58.317] [LOG] Refreshed access token because it has expired. Expired at: 12:05:58 now is: 12:05:58
[03.10.2021 12:06.01.802] [LOG] Shutting down server...
[03.10.2021 12:06.01.805] [LOG] Stopping module helper: updatenotification
[03.10.2021 12:06.01.806] [LOG] Stopping module helper: MMM-NowPlayingOnSpotify
pi@raspberrypi:~/MagicMirror $