@sdetweil couldn’t get the txt file to show. how would I edit it.
Read the statement by Michael Teeuw here.
Best posts made by bworch
-
RE: MM will not start
Latest posts made by bworch
-
Magicmirror won’t update
I modified a file on my magic mirror. I can’t remember the name of the file, it was a long time w. It wasn’t the config file with the module code. The file allowed me to adjust there column widths. I think it was a json file. Since I modified that file I am no longer able to update the Magic Mirror installation. I am 6 commits behind.
-
RE: MM will not start
@sdetweil here is my config file.
/* Magic Mirror Config Sample
*- By Michael Teeuw http://michaelteeuw.nl
- MIT Licensed.
- For more information how you can configurate this file
- See https://github.com/MichMich/MagicMirror#configuration
*/
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: "currentweather", position: "top_left", config: { units: 'imperial', degreeLabel: 'true', roundtemp: 'true', showHumidity: 'true', location: "Elsinore UT", locationID: "5545710", //ID from http://www.openweathermap.org/help/city_list.txt appid: "8d5a2ba9f97fc5d" } }, { module: "weatherforecast", position: "top_left", header: "Weather Forecast", config: { showRainAmount: 'true', units: 'imperial', roundtemp: 'true', Fade: 'false', maxNumberOfDays: '7', colored: 'true', location: "Elsinore UT", locationID: "5545710", //ID from http://www.openweathermap.org/help/city_list.txt appid:"95a2ba9f97fc5d" } }, { module: "MMM-Stock", position: "top_right", config: { companies: ["CRON", "ACB", "NXTD", "UBER"] } }, { disabled: false, module: "MMM-SunRiseSet", position: "top_right", config: { lat: "38.772467", // Your latitude (for the data) lng: "-112.084094", // Your longitude (for the data) image: "world", // "world" (animation), "map" (animation), "static" (graph) imageOnly: "no", // no = all data, yes = only animated world or map dayOrNight: "night", // "night" approaching, "day" approaching (imageOnly: must be "yes", image: must be "world") useHeader: true, // true if you want a header header: "Sun Rise and sun set", // useHeader must be true maxWidth: "515px" } }, { module: 'MMM-ImageSlideshow', position: 'bottom_right', config: { imagePaths: ['/modules/MMM-ImageSlideShow/Pictures'] } }, { module: 'MMM-Carousel', config: { transitionInterval: 10000, ignoreModules: ['clock','MMM-Fortnite','MMM-SunRiseSet','MMM-Stock','MMM-Coinbase','MMM-WeeklySchedule','updatenotification','currentweather','calendar','MMM-DailyBibleVerse'], mode: 'global' } }, { module: 'MMM-CoinMarketCap', position: "top_left", header: "Cryptocurrencies", config: { apikey: 'd-846f-7848e2b4b6d3', Currencies: ['bitcoin', 'ethereum','ethereum classic','litecoin','ZRX','bitcoin cash'], percentChangeColored: true, view: 'GraphWithChanges', Showlongnames: 'true', headers: ['change24hr', 'Change7d'], graphsize: 'medium', conversion: 'USD', } }, { module: "calendar", header: "My Calendar", position: "top_right", config: { maximumNumberofDays: '3', calendars: [ { symbol: "calendar-check-o ", url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics" }, { symbol: "calendar-check-o ", url: "https://calendar.google.com/calendmail.com/public/basic.ics" }, ] } }, { module: 'MMM-Fortnite', header: 'Fortnite', position: 'top_left', config: { showScore: false, sortBy: 'kills', userIDs: [ '4735ce9b40f79c', '3900c5958e4b86e03f8' ] } }, { module: 'internet-monitor', position: 'top_left', header: 'Internet Monitor', config:{ type: '', maxTime: 20000, updateInterval: 0, verbose: false, displayStrength: true, displaySpeed: true, strengthIconSize: 80, maxGaugeScale: 25, wifiSymbol:{ size: 50, fullColor: '#3afc25' } } }, { module: 'MMM-Remote-Control', // uncomment the following line to show the URL of the remote control on the mirror position: 'bottom_left', // you can hide this module afterwards from the remote control itself config: { customCommand: {}, // Optional, See "Using Custom Commands" below customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below showModuleApiMenu: true, // Optional, Enable the Module Controls menu apiKey: "" // Optional, See API/README.md for details }
},
{ module: "MMM-WeeklySchedule", position: "top_right", header: "Jamie's Household Chores", showWeeklyinHeader: "true", config: { schedule: { timeslots: [ "1", "2", "3", "4", "5", "6", "7" ], lessons: { mon: [ "Eat Breakfast", "Brush Teeth", "Get Dressed", "Feed the Cats and Dog", "Do School Work", "Load DishWasher as required" ], tue: [ "Eat Breakfast", "Brush Teeth", "Get Dressed", "Feed the Cats and Dog", "Do School Work", "Load DishWasher as required" ], wed: [ "Eat Breakfast", "Brush Teeth", "Get Dressed", "Feed the Cats and Dog", "Do School Work", "Load Dishwasher as required"], thu: [ "Eat Breakfast", "Brush Teeth", "Get Dressed", "Feed the Cats and Dog", "Do School Work", "Load DishWasher as required" ], fri: [ "Eat Breakfast", "Brush Teeth", "Get Dressed", "Feed the Cats and Dog", "Do School Work", "Load DishWasher as required" ], // no entries for saturday sun: [ "", "Quidditch Match", "Sunday Lunch" ] // short day on sundays } }, updateInterval: 1 * 60 * 60 * 1000, // every hour showNextDayAfter: "14:00" }
},
{
module: “MMM-WeeklySchedule”,
position: “top_right”,
header: “Joseph’s Household Chores”,
showWeeklyinHeader: “true”,
config: {
schedule: {
timeslots: [ “1”, “2”, “3”, “4”, “5”, “6”, “7” ],
lessons: {
mon: [ “Eat Breakfast”, “Brush Teeth”, “Get Dressed”, “Feed the horse”, “Do School Work”, “Empty DishWasher as required” ],
tue: [ “Eat Breakfast”, “Brush Teeth”, “Get Dressed”, “Feed the horse”, “Do School Work”, “Empty DishWasher as required” ],
wed: [ “Eat Breakfast”, “Brush Teeth”, “Get Dressed”, “Feed the horse”, “Do School Work”, “Empty DishWasher as required”],
thu: [ “Eat Breakfast”, “Brush Teeth”, “Get Dressed”, “Feed the horse”, “Do School Work”, “Empty DishWasher as required” ],
fri: [ “Eat Breakfast”, “Brush Teeth”, “Get Dressed”, “Feed the horse”, “Do School Work”, “Empty DishWasher as required” ],
// no entries for saturday
sun: [ “”, “Quidditch Match”, “Sunday Lunch” ] // short day on sundays
}
},
updateInterval: 1 * 60 * 60 * 1000, // every hour
showNextDayAfter: “14:00”
}
},
{
module: “MMM-Coinbase”,
position: “top_right”,
header: “Coinbase”,
config: {
apiKey: “ZJx”,
apiSecret: “Yshfe5VDCS5J”
}
},
{
module: ‘MMM-DailyBibleVerse’,
position: ‘bottom_bar’, // This can be any of the regions. Best result is in the bottom_bar as verses can take multiple lines in a day.
config: {
version: ‘KJV’, // This can be changed to any version you want that is offered by Bible Gateway. For a list, go here: https://www.biblegateway.com/versions/,
size: ‘Medium’ // default value is medium, but can be changed.
}
},]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== “undefined”) {module.exports = config;} -
RE: MM will not start
@sdetweil @bworch said in MM will not start:
so I go another sm card build it again. I copied my config, modules, and CSS files over, and when I run an npm start MagicMorror I get the following. I guess we don’t use pm2 anymore. I get a black screen if it starts. I am also getting a commit or stash again. How do I commit or stash.
magicmirror@2.21.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[15.10.2022 15:26.51.630] [LOG] Starting MagicMirror: v2.21.0
[15.10.2022 15:26.51.646] [LOG] Loading config …
[15.10.2022 15:26.51.664] [LOG] Loading module helpers …
[15.10.2022 15:26.51.671] [LOG] No helper found for module: alert.
[15.10.2022 15:26.51.730] [LOG] Initializing new module helper …
[15.10.2022 15:26.51.734] [LOG] Module helper loaded: updatenotification
[15.10.2022 15:26.51.739] [LOG] No helper found for module: clock.
[15.10.2022 15:26.51.743] [LOG] No helper found for module: currentweather.
[15.10.2022 15:26.51.749] [LOG] No helper found for module: weatherforecast.
[15.10.2022 15:26.52.581] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘async’
Require stack:/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
/home/bworch/MagicMirror/js/app.js
/home/bworch/MagicMirror/js/electron.js
/home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js[15.10.2022 15:26.52.605] [LOG] Loading module helpers …
[15.10.2022 15:26.52.609] [LOG] No helper found for module: alert.
[15.10.2022 15:26.52.612] [LOG] Initializing new module helper …
[15.10.2022 15:26.52.616] [LOG] Module helper loaded: updatenotification
[15.10.2022 15:26.52.619] [LOG] No helper found for module: clock.
[15.10.2022 15:26.52.621] [LOG] No helper found for module: currentweather.
[15.10.2022 15:26.52.624] [LOG] No helper found for module: weatherforecast.
[15.10.2022 15:26.52.629] [ERROR] App threw an error during load
[15.10.2022 15:26.52.634] [ERROR] Error: Cannot find module ‘async’
Require stack:/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
/home/bworch/MagicMirror/js/app.js
/home/bworch/MagicMirror/js/electron.js
/home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/bworch/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js:3:13)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10)
[15.10.2022 15:26.52.639] [ERROR] Whoops! There was an uncaught exception…
[15.10.2022 15:26.52.663] [ERROR] Error: Cannot find module ‘async’
Require stack:
/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
/home/bworch/MagicMirror/js/app.js
/home/bworch/MagicMirror/js/electron.js
/home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/bworch/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js:3:13)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js’,
‘/home/bworch/MagicMirror/js/app.js’,
‘/home/bworch/MagicMirror/js/electron.js’,
‘/home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[15.10.2022 15:26.52.673] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.10.2022 15:26.52.674] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[15.10.2022 15:26.53.407] [LOG] Launching application.
[2177:1015/152654.435494:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[2204:1015/152654.735310:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[15.10.2022 15:27.30.480] [LOG] Shutting down server…
[15.10.2022 15:27.30.487] [LOG] Stopping module helper: updatenotification
[15.10.2022 15:27.30.490] [LOG] Stopping module helper: updatenotification
[15.10.2022 15:27.30.492] [ERROR] Whoops! There was an uncaught exception…
[15.10.2022 15:27.30.496] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
at App.stop (/home/bworch/MagicMirror/js/app.js:257:14)
at App. (/home/bworch/MagicMirror/js/electron.js:145:7)
at App.emit (node:events:526:28)
at appMethod (node:electron/js2c/browser_init:69:1830)
at Object.execute (node:electron/js2c/browser_init:69:5966)
at MenuItem.click (node:electron/js2c/browser_init:73:1862)
at a._executeCommand (node:electron/js2c/browser_init:81:2453)
[15.10.2022 15:27.30.499] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.10.2022 15:27.30.501] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
bworch@raspberrypi:~/MagicMirror $How do I do a commit or stash. not sure what to do. may have a bad config file. thanks
-
RE: MM will not start
@bworch so I go another sm card build it again. I copied my config, modules, and CSS files over, and when I run an npm start MagicMorror I get the following. I guess we don’t use pm2 anymore. I get a black screen if it starts. I am also getting a commit or stash again. How do I commit or stash.
magicmirror@2.21.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[15.10.2022 15:26.51.630] [LOG] Starting MagicMirror: v2.21.0
[15.10.2022 15:26.51.646] [LOG] Loading config …
[15.10.2022 15:26.51.664] [LOG] Loading module helpers …
[15.10.2022 15:26.51.671] [LOG] No helper found for module: alert.
[15.10.2022 15:26.51.730] [LOG] Initializing new module helper …
[15.10.2022 15:26.51.734] [LOG] Module helper loaded: updatenotification
[15.10.2022 15:26.51.739] [LOG] No helper found for module: clock.
[15.10.2022 15:26.51.743] [LOG] No helper found for module: currentweather.
[15.10.2022 15:26.51.749] [LOG] No helper found for module: weatherforecast.
[15.10.2022 15:26.52.581] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘async’
Require stack:- /home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
- /home/bworch/MagicMirror/js/app.js
- /home/bworch/MagicMirror/js/electron.js
- /home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
[15.10.2022 15:26.52.605] [LOG] Loading module helpers …
[15.10.2022 15:26.52.609] [LOG] No helper found for module: alert.
[15.10.2022 15:26.52.612] [LOG] Initializing new module helper …
[15.10.2022 15:26.52.616] [LOG] Module helper loaded: updatenotification
[15.10.2022 15:26.52.619] [LOG] No helper found for module: clock.
[15.10.2022 15:26.52.621] [LOG] No helper found for module: currentweather.
[15.10.2022 15:26.52.624] [LOG] No helper found for module: weatherforecast.
[15.10.2022 15:26.52.629] [ERROR] App threw an error during load
[15.10.2022 15:26.52.634] [ERROR] Error: Cannot find module ‘async’
Require stack:- /home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
- /home/bworch/MagicMirror/js/app.js
- /home/bworch/MagicMirror/js/electron.js
- /home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/bworch/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js:3:13)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10)
[15.10.2022 15:26.52.639] [ERROR] Whoops! There was an uncaught exception…
[15.10.2022 15:26.52.663] [ERROR] Error: Cannot find module ‘async’
Require stack: - /home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
- /home/bworch/MagicMirror/js/app.js
- /home/bworch/MagicMirror/js/electron.js
- /home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/bworch/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js:3:13)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js’,
‘/home/bworch/MagicMirror/js/app.js’,
‘/home/bworch/MagicMirror/js/electron.js’,
‘/home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[15.10.2022 15:26.52.673] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.10.2022 15:26.52.674] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[15.10.2022 15:26.53.407] [LOG] Launching application.
[2177:1015/152654.435494:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[2204:1015/152654.735310:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[15.10.2022 15:27.30.480] [LOG] Shutting down server…
[15.10.2022 15:27.30.487] [LOG] Stopping module helper: updatenotification
[15.10.2022 15:27.30.490] [LOG] Stopping module helper: updatenotification
[15.10.2022 15:27.30.492] [ERROR] Whoops! There was an uncaught exception…
[15.10.2022 15:27.30.496] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
at App.stop (/home/bworch/MagicMirror/js/app.js:257:14)
at App. (/home/bworch/MagicMirror/js/electron.js:145:7)
at App.emit (node:events:526:28)
at appMethod (node:electron/js2c/browser_init:69:1830)
at Object.execute (node:electron/js2c/browser_init:69:5966)
at MenuItem.click (node:electron/js2c/browser_init:73:1862)
at a._executeCommand (node:electron/js2c/browser_init:81:2453)
[15.10.2022 15:27.30.499] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.10.2022 15:27.30.501] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
bworch@raspberrypi:~/MagicMirror $
not sure what to do. may have a bad config file. thanks
-
RE: MM will not start
@sdetweil I guess it isn’t working I am getting a bunch of lines like this
If you have any other ideas, let me know. I need to stop now. thanks very much.
-
RE: MM will not start
@sdetweil I did a force restart on the pi, and it is working on the screen, but VNC terminal isn’t picking it up, it just shows the pi splash screen. at least the display is working. Not sure why it isn’t showing on the VNC terminal.
-
RE: MM will not start
@sdetweil that command you gave me did a lot of stuff then went black, should I force a restart on the pi.
-
RE: MM will not start
@sdetweil My VNC terminal when Black, is that normal.
-
RE: MM will not start
@sdetweil I accidently ran it as is, I then couldn’t find where to make the change. Sorry