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

    Posts

    Recent Best Controversial
    • RE: MMM-MPlayer

      @evroom

      I get this in the logs.
      Also when I try running the

      VLC Media Player
            File
                  Open Network
                     URL: rtsp://192.168.1.32:554/live
                     Open
      

      I get this:

      VLC Media Player
            File
                  Open Network
                     URL: rtsp://192.168.1.32:554/live
                     Open
      -bash: VLC: command not found
      -bash: File: command not found
      -bash: Open: command not found
      -bash: URL:: command not found
      -bash: Open: command not found
      
       pm2 logs --lines 100
      [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 100 lines:
      PM2        | 2024-12-24T11:40:29: PM2 log: Stopping app:mm id:0
      PM2        | 2024-12-24T11:40:29: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
      PM2        | 2024-12-24T11:40:29: PM2 log: pid=5586 msg=process killed
      PM2        | 2024-12-24T11:40:29: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2024-12-24T11:40:29: PM2 log: App [mm:0] online
      
      /home/pi/.pm2/logs/Camera-out.log last 100 lines:
      /home/pi/.pm2/logs/Camera-error.log last 100 lines:
      /home/pi/.pm2/logs/mm-error.log last 100 lines:
      0|mm       | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      0|mm       | [2024-12-24 11:40:32.723] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [6118:1224/114036.084607:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.084939:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.085151:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.085242:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.085389:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.085464:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.085599:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.085676:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.085814:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.085907:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.086078:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.086171:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.086326:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.086409:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.087583:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.087738:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.087922:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.088027:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.088189:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.088274:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.088418:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.088529:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.088678:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.088751:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.088892:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.088971:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      0|mm       | [6118:1224/114036.089108:ERROR:gbm_wrapper.cc(74)] Failed to get fd  for plane.: No such file or directory (2)
      0|mm       | [6118:1224/114036.089205:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
      
      /home/pi/.pm2/logs/mm-out.log last 100 lines:
      0|mm       |
      0|mm       | > magicmirror@2.29.0 start
      0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm       |
      0|mm       | [2024-12-24 11:40:31.951] [LOG]   Starting MagicMirror: v2.29.0
      0|mm       | [2024-12-24 11:40:31.982] [LOG]   Loading config ...
      0|mm       | [2024-12-24 11:40:31.986] [LOG]   config template file not exists,    no envsubst
      0|mm       | [2024-12-24 11:40:32.513] [INFO]  Checking config file /home/pi/MagicMirror/config/config.js ...
      0|mm       | [2024-12-24 11:40:32.578] [INFO]  Your configuration file doesn't contain syntax errors :)
      0|mm       | [2024-12-24 11:40:32.580] [INFO]  Checking modules structure configuration ...
      0|mm       | [2024-12-24 11:40:32.688] [INFO]  Your modules structure configuration doesn't contain errors :)
      0|mm       | [2024-12-24 11:40:32.691] [LOG]   Loading module helpers ...
      0|mm       | [2024-12-24 11:40:32.697] [LOG]   Initializing new module helper ..                                                                    .
      0|mm       | [2024-12-24 11:40:32.698] [LOG]   Module helper loaded: MMM-MPlayer                                                                    
      0|mm       | [2024-12-24 11:40:32.699] [LOG]   All module helpers loaded.
      0|mm       | [2024-12-24 11:40:32.708] [LOG]   Starting server on port 8084 ...                                                                     
      0|mm       | [2024-12-24 11:40:34.158] [LOG]   Server started ...
      0|mm       | [2024-12-24 11:40:34.162] [LOG]   Connecting socket for: MMM-MPlayer
      0|mm       | [2024-12-24 11:40:34.163] [LOG]   Starting MMM-MPlayer module...
      0|mm       | [2024-12-24 11:40:34.172] [LOG]   Sockets connected & modules started ...
      0|mm       | [2024-12-24 11:40:34.574] [LOG]   Launching application.
      0|mm       | [2024-12-24 11:40:35.869] [INFO]  System information:
      0|mm       | ### SYSTEM:   manufacturer: ; model: ; virtual: false
      0|mm       | ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.62+rpt-rpi-v8
      0|mm       | ### VERSIONS: electron: 31.7.5; used node: 20.18.0; installed node:20.9.0; npm: 10.1.0; pm2: 5.4.3
      0|mm       | ### OTHER:    timeZone: America/Chicago; ELECTRON_ENABLE_GPU: undefined
      0|mm       | [2024-12-24 11:40:36.738] [INFO]  [MMM-MPlayer] Launched mplayer process for window1 with PID 6190
      0|mm       | [2024-12-24 11:40:36.738] [INFO]  [MMM-MPlayer] mplayer -noborder -monitoraspect 0 -vf rotate=-1 -geometry 10:90 -xy 1920 980 rtsp://192.168.1.32:5                                                                    54/live
      0|mm       | [2024-12-24 11:40:37.464] [INFO]  [MMM-MPlayer] mplayer process for window1 exited with code 0
      

      I checked and I am running the latest VLC according to when I tried to install it
      with:

      sudo apt install vlc
      

      I run that url on my latop VLC and it works.
      HELP ME, I ve fallen down a rabbit hole here.

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • MMM-MPlayer

      This is what I have in my config.js for MMM-MPlayer.
      My problem is I can play big bunny and pretty much any video.
      BUT I want to show my rtsp cameras like the github shows I can.
      I installed mplayer and the videos play, so pretty sure I have the setup correct to that point. I am running this on Rpi 4 2gb ram off a ssd/usb .
      Bullseye 64b MagicMirror 2.29 I used Sams install script and it installed flawlessly as usual…
      Any help would be greatly appreciated. This is the only module running on this setup. I built it only so I could view my cameras on a bigger screen.
      Since RSTMStream is dead anymore I was really excited to see something else that might work…

      {
      	module: "MMM-MPlayer",
              disabled: false,
              position: "middle_center",
              header: "MPlayer",
      	config: {
      	  useTwoWindows: true,
      	  layout: "row",
      	  monitorAspect: 0,
      	  rotate: -1,
      	  windowSize: { width: 640, height: 360 },
      	  windowPosition: { x: 5, y: 225 },
      	  streamInterval: 30000,
      	  streams: {
      		window1: [
      		  "rtsp://192.168.1.32:554/live",
      		],
      		window2: [
      		  "rtsp://192.168.1.35:554/live",
      		]
      	  }
      	}
      },
      
      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • RE: MagicMirror Install Script Message

      @sdetweil
      Thanks for the update.

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • MagicMirror Install Script Message

      @sdetweil
      Sam,
      I got this message when installing MM with your script.

      (node:8435) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit

      Approximately 83 times, as close as I could get a count on them.

      Is it anything I need to worry about.

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • RE: PM2 start web browser at start up of pi4

      @sdetweil
      I just made it work, I am so happy
      the commands to start it are
      pm2 start 0
      and to stop
      pm2 stop 0
      works that is how my MagicMirror starts in the mornings and stops at night…
      pm2 is like magic…
      Thanks for the help
      I will give it a run overnight and see how crontab handles the commands.
      You always have an answer that triggers my thought process to make it work.
      Thank you Sam I appreciate your efforts to teach us that are not too bright…

      posted in Tutorials
      plainbrokeP
      plainbroke
    • RE: PM2 start web browser at start up of pi4

      @sdetweil

      I figured out I had to remove the && ctrl C and now it just opens the one tab.
      DISPLAY=:0 chromium http://192.168.1.177:8083/live
      is all that is inside the Camera.sh file now, it now works.
      So I can now start it up with crontab -e
      I can use killall chromium and it shuts it down.
      But then pm2 restarts it for me automatically.
      How do I get pm2 to stop watching for the shut down?

      posted in Tutorials
      plainbrokeP
      plainbroke
    • RE: PM2 start web browser at start up of pi4

      @sdetweil

      DISPLAY=:0 chromium https://www.google.com &
      

      opens the chromium web browser with google just fine, but then I get this error over and over again.

      [4886:4886:1201/195513.105659:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
      [4886:4886:1201/195513.105747:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
      

      any idea why that would be happening? It doesn’t start until the web browser actually starts up on my screen. I can ctr c and it stops and the web browser stays running like I want it to.

      I made a Camera.sh and pasted.
      DISPLAY=:0 chromium 192.168.1.177:8083/live & ^C
      PM2 start Camera.sh
      PM2 save

      AND

      it works kind of, the problem now is it just keeps running and loading tab after tab until I kill it.
      What am I not doing correctly.?

      posted in Tutorials
      plainbrokeP
      plainbroke
    • PM2 start web browser at start up of pi4

      I am trying to get PM2 to start firefox when I boot raspi 4 running bookworm.
      I have the browsers home page set to my tinycam pro web page display (local)
      It works great if I start it manually but would like it to start from my crontab -e and shut down the same way I just do not understand the syntax I need to use to get Firefox to start using crontab.
      Probably making it harder than it really is…
      Thanks in advance.
      Jeff

      posted in Tutorials
      plainbrokeP
      plainbroke
    • RE: MMM-Gas

      @DDE12

      You can try MMM-Fuel you have to use gasbuddy instead of autoblog.
      It works for me at least for now…

      posted in Transport
      plainbrokeP
      plainbroke
    • RE: MMM-CoupleDays

      @sdetweil
      Wow, Thanks, I finally figured out what you have been trying to tell me.
      Found the wording to make it big enough to read now…
      \Thanks for you help Sam…

      posted in Custom CSS
      plainbrokeP
      plainbroke
    • MMM-CoupleDays

      What am I missing to get the gray line above the line to the same size. Here is my css.

      .MMM-CoupleDays .header {
              Font-size: 85px;
              Line-Height: 87px;
              Text-align: center;
      }
      
      .couple-days-content {
              font-weight: 400;
              Font-size: 85px;
      }
      
      .couple-days-wrapper {
              font-weight: 400;
              Font-size: 85px;
      }
      
      .couple-days-header {
              font-weight: 400;
              Font-size: 85px;
      }
      

      Capture.JPG

      posted in Custom CSS
      plainbrokeP
      plainbroke
    • RE: MMM-Fuel

      @Ray
      You can try changing from autoblog to gasbuddy. Works for me…

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • RE: MMM-DateCounter

      @sdetweil

      Again, Thank you for the help.

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • RE: Calendar

      @sdetweil

      Thank you for the help Sam.
      You are the man…

      posted in Custom CSS
      plainbrokeP
      plainbroke
    • RE: MMM-DateCounter

      @sdetweil

      This is what I have in my css file.

      .date_counter header {
      border: 10px solid black;
      }

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • RE: Calendar

      @sdetweil

      This is what I have for my css and my js . I think I need to somehow put the colors in the css, but I can not figure it out again. I probably have the config somewhere just have not had the “want to” to find it again. Having a bunch of issues since having Covid last month… Hopefully it will clear up soon…

      CUSTOM CSS:
      .calendar .symbol {
              Margin-left: 10px;
              Text-align: left;
              Color: #15b1fd;
              Font-size: 34px;
              Line-Height: 35px;
      
      CONFIG JS
                      {
                              module: "calendar",
                              header: "Birthdays/Dr.Appt",
                              position: "top_left",
                              config: {
                                      fade: false,
                                      maximumEntries: 16,
                                      timeFormat: "absolute",
                                      urgency: 3,
                                      getRelative: 24,
                              calendars: [
                              {
                                      symbol: "birthday-cake",
                                      name: "Birthdays",
                                      url: "https://calendar.google.com/calendar/ical$
                                      color: "#09a6f3"
                              },
                                      {
                                      symbol: "briefcase-medical",
                                      name: "DrAppt",
                                      url: "https://calendar.google.com/calendar/ical$
                                      color: "#f30819"
                              },
                                      ]
                              }
                      },
      
      
      posted in Custom CSS
      plainbrokeP
      plainbroke
    • RE: countdown to reapeating event

      Have you looked at MMM-DateCounter? I think it can do what you are looking for.

      posted in Utilities
      plainbrokeP
      plainbroke
    • MMM-DateCounter

      I want to get rid of or Center the line under the HEADER. Even all the way across would be fine.

      fea073ca-aed7-4cea-8277-447deec3e3fa-image.png

      posted in Troubleshooting
      plainbrokeP
      plainbroke
    • Calendar

      I have 4 calendars setup in the default calendar, the symbols where all different in color and symbol I have cake (blue), car(green), briefcase (red), and a calendar (yellow). BUT all of them are showing up blue instead of the individual colors assigned in the config.js

      calendar.jpg

      posted in Custom CSS
      plainbrokeP
      plainbroke
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 19
    • 20
    • 11 / 20