MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. fribse
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 35
    • Posts 159
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Any Interest: MMM-ThemeParkWaitTimes

      @wswenson Wow, that is very cool, it would be perfect for the disney hotels :-) We live 14 hours away from the nearest disney park (Disneyland Paris), so I guess for us, the wait times would have changed too much :-D
      Now if only Tivoli in Copenhagen would offer an api, that would be great for us :-)

      posted in Development
      F
      fribse
    • RE: MagicMirror doesn't start after updating to 2.23

      @fribse Ok, that is weird, after doing the force, and waiting for quite a while, it works again???
      So I’m changing it to solved, running the update once more, with “force”, made it work

      posted in Troubleshooting
      F
      fribse
    • MagicMirror doesn't start after updating to 2.23

      It’s running on a RPi3B+

      I upgraded from 2.22 using the sdetweil script, and it went through it without errors.

      If I ask pm2 MagicMirror is online.
      The log file looks like this:

      pi@bathmirror:~/MagicMirror $ pm2 logs MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | > magicmirror@2.23.0 start
      0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMir |
      0|MagicMir |
      ...
      
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir | [30079:0526/061428.523308:ERROR:node_bindings.cc(552)] Failed to initialize node environment in process: browser , with error: Uncaught SyntaxError: Unexpected token ':'
      0|MagicMir | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      ...
      

      I don’t think it’s the ‘request’ thing, I did the search for request, and commented out all the modules that used that.

      The config looks like this:

      let config = {
      	address: "xxx",
      	port: 8080,
      	basePath: "/",
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1","xxx/24"],
      	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: "da",
      	locale: "da-DK",
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      //		{
      //			module: "MMM-ModuleScheduler",
      //			config: {
      //				global_schedule: [
      //					{from: "0 5 * * *", to: "0 10 * * *", groupClass: "morning_schedule"},
      //					{from: "0 18 * * *", to: "0 23 * * *", groupClass: "evening_schedule"},
      //					{from: "0 5 * * 1-5", to: "0 10 * * 1-5", groupClass: "weekday_morning_schedule"},
      //					{from: "0 6 * * *", to: "0 20 * * *", groupClass: "day_schedule"},
      //					{from: "0 0 * * 1-5", to: "59 23 * * 1-5", groupClass: "weekdays_schedule"},
      //					{from: "30 5 * * *", to: "59 23 * * *", groupClass: "complimenttime"}
      //				]
      //			}
      //		},
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "Kalenderdage",
      			position: "top_left",
      			classes: "day_schedule small",
      			config: {
      				maximumEntries: 6,
      				fetchInterval: 12000000 ,
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "https://calendar.google.com/xxx"
      //						url: "https://www.google.com/xxx"
      //						url: "webcal://p01-calendarws.icloud.com/ca/subscribe/1/IsLh6fUURb4n_nA6vhWYUmlEe98rz2BN8BhioUPzrC2HVohwJIUCbGuGeTwczZWvXjTqU7vicBATXHojb1p5fn8ub3RCBUwKfHm3jXJDzFE"
      					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third",
      			classes: "complimenttime bold xlarge bright",
      			config: {
      				remoteFile: "xxx",
      				updateInterval: 120000,
      				morningStartTime: 05,
      				morningEndTime: 10,
      				afternoonStartTime: 15,
      				afternoonEndTime: 18,
      				}
      		},
      		{
      			module: "weather",
      			position: "top_right",
      			classes: "day_schedule",
      			config: {
      				weatherProvider: "openweathermap",
      				type: "current",
      				units: "metric",
      				timeFormat: 24,
      				decimalSymbol: ",",
      				initialLoadDelay: 0,
      				onlyTemp: false,
      				locationID: xxx,
      				apiKey: "xxx"
      			}
      		},
      		{
      			module: "weather",
      			position: "top_right",
      			classes: "day_schedule",
      			config: {
      				weatherProvider: "openweathermap",
      				type: "forecast",
      				units: "metric",
      				timeFormat: 24,
      				decimalSymbol: ",",
      				initialLoadDelay: 0,
      				onlyTemp: true,
      				maxNumberOfDays: 7,
      				colored: true,
      				appendLocationNameToHeader: false,
      				locationID: xxx,
      				apiKey: "xxx"
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			classes: "day_schedule",
      			config: {
      				feeds: [
      					{
      						title: "Ekstra Bladet",
      						url: "https://ekstrabladet.dk/rssfeed/all/"
      					},
      					{
      						title: "DR nyheder",
      						url: "https://www.dr.dk/nyheder/service/feeds/allenyheder"
      					},
      					{
      						title: "BT",
      						url: "https://www.bt.dk/bt/seneste/rss"
      					},
      					{
      						title: "Berlingske.dk",
      						url: "https://www.berlingske.dk/content/3/rss"
      					},
      					{
      						title: "TV2 Øst",
      						url: "https://www.tv2east.dk/rss"
      					}
      				],
      				updateInterval: 30000,
      				showSourceTitle: true,
      				showPublishDate: true,
      				broadcastNewsFeeds: true,
      				broadcastNewsUpdates: true
      			}
      		},
      		{
      			module: "MMM-News-QR",
      			position: "bottom_bar",
      			classes: "day_schedule",
      			config: {
      				updateType : "push",
      				animationSpeed: 2500,
      				colorDark: "#fff",
      				colorLight: "#000",
      				imageSize: 100
      			}
      		},
      		{
      			module: "MMM-Remote-Control",
      			config: {
      				apiKey: 'xxx',
      				showModuleApiMenu: true,
      				pm2ProcessName: 'MagicMirror',
      				},
      		},
      //		{
      //			module: "MMM-Screencast",
      //			position: "'bottom_right", // This position is for a hidden <div /> and not the screencast window
      //			config: {
      //				position: "bottomRight",
      //				castName: "Spejl",
      //				height: 300,
      //				width: 500,
      //			}
      //		},
      //		{
      //			module: "MMM-MyCommute",
      //			position: "bottom_right",
      //			classes: "xsmall",
      //			header: "Trafik",
      //			config: {
      //				apiKey: "xxx",
      //				startTime: "05:00",
      //				endTime: "12:00",
      ////				hideDays: [0,6],
      //				origin: "xxx",
      //				destinations: [
      //					{
      //						destination: "xxx",
      //						label: "xxx",
      //						mode: "driving",
      //						color: "#82E5AA"
      //					},
      //					{
      //						destination: "xxx",
      //						label: "xxx",
      //						mode: "driving",
      //						color: "#82E5AA"
      //					}
      //				]
      //			}
      //		},
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      I tried running the upgrade again, with force, it didn’t help, and this is the output

      pi@bathmirror:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
      doing test run = false
      update log will be in /home/pi/MagicMirror/installers/upgrade.log
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v16.13.1
      Installed Node version: v16.15.1
      No Node.js upgrade necessary.
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V7.11.2
      Installed npm version: V8.11.0
      No npm upgrade necessary.
      
      saving custom.css
      upgrading from version 2.23.0 to 2.23.0
      fetching latest revisions
      updating MagicMirror runtime, please wait
      
      > magicmirror@2.23.0 postinstall
      > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
      > "
      
      
      > magicmirror@2.23.0 install-vendor
      > echo "Installing vendor files ...
      > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
      
      Installing vendor files ...
      
      
      up to date in 17s
      
      > magicmirror@2.23.0 install-fonts
      > echo "Installing fonts ...
      > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
      
      Installing fonts ...
      
      
      up to date in 3s
      MagicMirror² installation finished successfully!
      
      
      > magicmirror@2.23.0 prepare
      > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.
      
      no husky installed.
      
      added 325 packages, changed 1 package, and audited 327 packages in 3m
      
      80 packages are looking for funding
        run `npm fund` for details
      
      2 vulnerabilities (1 moderate, 1 high)
      
      To address all issues, run:
        npm audit fix
      
      Run `npm audit` for details.
      Checking for modules with removed libraries
      processing dependency changes for active modules with package.json files
      
      processing for module MMM-Remote-Control please wait
      ----------------------------------
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      
      added 40 packages, and audited 41 packages in 15s
      
      8 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      processing complete for module MMM-Remote-Control
      
      restoring custom.css
      
      posted in Troubleshooting
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @doctore Ok, I’ll try to see if that works, thankyou!

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @kayakbabe Yes, I’m referring to /boot/config.txt, not Magicmirror/config/config.yaml :-)

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @N6NG Ok, and what are you writing in the config for it to work? That would be a big help for me :-)

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @fribse Ok, so now I’ve gotten a second RPi3b+. Apparently the monitor doesn’t like the way that Bullseye rotate the screen (by using the ‘Screen orientation’ in the GUI).
      So how do I rotate the screen in ‘the old way’ which works fine on the monitor.
      My guess is that it’s modifying the refresh rate beyond the capabilities of the monitor.
      It’s usually running on 60Hz, and I tried changing it to 50Hz, but that didn’t change anything.

      So what do I do now? I would really like to use the bullseye, as I can’t get Home Assistant to control the mirror if I have screencast installed on the mirror under Buster.

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @fribse Hmm, can’t make this work. I can get it to work on a RPi4, but not on a RPi3 with the ‘Screenconfiguration’ app.

      It’s really annoying, I would like to have screencast and remote-control modules enabled, so that Home Assistant can integrate to it, through the remote-control module, but that doesn’t work on Buster (the integration fails to set up), it fails because of some weird problem in the integration combined with the screencast, which the author can’t reproduce, which is very odd, as I can show it every time.

      I can get the integration to work on Bullseye together with the remote-control module and the screencast, but not on a RPi3, only on a RPi4, and even rotate the screen, but I don’t want to place a very hot and overly powerfull RPi4 behind the magicmirror.

      Damned if I do, and damned if I don’t.

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @BKeyport That is worth a try, didn’t think of that!

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @sdetweil That would be odd, as it works with previous versions of Raspberry Pi OS?

      posted in Hardware
      F
      fribse
    • RE: RPi 3B+ with 'Bullseye' can't rotate screen?

      @sdetweil Hi
      Yes I see that as well in bullseye, that is what I mean with ‘screen configuration app’.
      If I rotate it in that (to left), the monitor just goes black?
      @BKeyport it’s there in bullseye, but not previous versions.

      posted in Hardware
      F
      fribse
    • RPi 3B+ with 'Bullseye' can't rotate screen?

      I have a RPi 3B+ with Buster on it, and it works ok, though I can’t have screencast and remote installed at the same time. So I wanted to make a new install, and I downloaded the RaspberryOS Bullseye 32bit.
      With that I can run the two modules together, but now I can’t rotate the screen to portrait.
      The old version was just a question of adding display_hdmi_rotate=1 to the /boot/config.txt, but this doesn’t work with bullseye.
      So how do I rotate the screen on the Bullseye?
      I tried doing it from inside ‘X’ by using the Screen Configuration app, but when I do that (rotation=left), the screen goes black, and nothing happens, I can’t press the ‘verify’ button, so if I reboot it, it is still in landscape mode.
      What can I do?

      posted in Hardware
      F
      fribse
    • RE: Just updated MagicMirror today, and now I "0|MagicMirror | sh: 1: ./node_modules/.bin/electron: not found"

      @sdetweil Hi there, yes I did, and I ran it again, and then it worked.
      But thanks for the hint!

      posted in Troubleshooting
      F
      fribse
    • Just updated MagicMirror today, and now I "0|MagicMirror | sh: 1: ./node_modules/.bin/electron: not found"

      I was on 2.18, and got a notification that there was a new version, and today I finally tried to update it, and now I see this message in the logfile
      0|MagicMirror | sh: 1: ./node_modules/.bin/electron: not found

      The software is installed with @sdetweil 's script originally.

      What to do?

      posted in Troubleshooting
      F
      fribse
    • RE: Starting over on MM install - still shows errors

      @sdetweil Ok, good to know, so at least it’s not them making problems for MMM-ScreenCast and MMM-RemoteControl.

      posted in Troubleshooting
      F
      fribse
    • RE: Starting over on MM install - still shows errors

      So I did a new install completely from scratch on a Raspbian Buster, and did a ‘manual’ install this time, still same error:

      [25.02.2022 16:00.46.615] [LOG] Launching application.
      [1789:0225/160048.427469:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      [1828:0225/160048.917933:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.

      Monitor is in portrait mode, these settings are in boot/config.txt

      display_rotate=1
      enable_uart=1
      avoid_warnings=1
      
      posted in Troubleshooting
      F
      fribse
    • Starting over on MM install - still shows errors

      Hi Guys

      I’m having some problems with the installation.
      I’ve done a brand new Raspbian Buster install.
      Fully updated.
      I then ran @sdetweil 's install script.

      I’m now modifying the module config one by one, and installing the custom modules.

      I’ve yet to install a custom module, so far I have changed the software to da-DK, I’ve made the compliments module fetch my gist compliments file, and I’ve changed the calendar module to use a danish provider.

      I already see these two messages:

      0|MagicMirror  | [3635:0225/103036.868905:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMirror  | [3680:0225/103037.331723:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      
      posted in Troubleshooting
      F
      fribse
    • RE: Fun for halloween

      @fribse I just did another video for valentines :-)

      posted in Show your Mirror
      F
      fribse
    • RE: My Mirror reboots for no reason

      @lhops Try to log your temperature, the reboot sounds like a temp issue.
      It would also suit the PiR that registers a rising temperature.

      posted in General Discussion
      F
      fribse
    • MMM-Mycommute - has anybody gotten the time start and end, and hidedays to work?

      I live in CEST timezone, and I fear that is part of the problem.
      I have a config like this for the module:

      {
                              module: "MMM-MyCommute",
                              position: "bottom_right",
                              classes: "xsmall",
                              header: "Trafik",
                              config: {
                                      apiKey: "xxx",
                                      startTime: "05:00",
                                      endTime: "12:00",
                                      hideDays: [0,6],
                                      origin: "Home",
                                      destinations: [
                                              {
                                                      destination: "Address1",
                                                      label: "Company1",
                                                      mode: "driving",
                                                      color: "#82E5AA"
                                              },
                                              {
                                                      destination: "Address2",
                                                      label: "Company2",
                                                      mode: "driving",
                                                      color: "#82E5AA"
                                              }
                                      ]
                              }
                      },
      

      My hope was that it would be active between 5 in the morning and midday, and not show up in weekends.
      But this morning (tuesday) it diedn’t show up at around 8.

      Has anybody else gotten this to work, and is there a trick to it?

      posted in Troubleshooting
      F
      fribse
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1 / 8