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

    Posts

    Recent Best Controversial
    • RE: module unable to play mp3 file using omxplayer

      @plainbroke
      Yes, that makes sense.
      Keyword: overlay.
      I will reply in the MPlayer issue you opened for this, to not hijack this topic.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas direction parameter not working anymore

      @blinkybob

      I tested this and indeed it does not seem to work (anymore).
      For directionI used the station Id for the station adjacent to my station.
      I will raise an issue for this.

      posted in Transport
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      @KristjanESPERANTO said in MMM-PublicTransportHafas: Service Temporarily Unavailable:

      I just released version 3.0.1 to fix this 😀

      At this moment I see an entry in the past with +0.5.
      Also saw +0.6.
      When turning on debug, I only see delay values of 0, 60 and null, so I wonder where the current 0.5 comes from.
      The values for when and plannedWhen all have a difference of 0 or 1 minute.

      It seems that it only affects the first entry in the list, which in my case is the first unreachable in the past.
      And it does not really bother me, but it still is odd.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas direction parameter not working anymore

      @blinkybob

      I personally do not use this, but are you sure about
      direction: “682669”
      ?
      Seems a bit off.

      posted in Transport
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      @KristjanESPERANTO

      I did the update and it is looking much better now.
      I reverted back to db (npm run query dbis working again).
      Only one thing I noticed:

      MMM-PublicTransportHafas_20250112_001.png

      On display (last update 11:15)
      11:08 +1.0333333333333334
      11:28 +0

      The 11:08 entry is in the past (maxUnreachableDepartures: 2,).
      The +1.0333333333333334 is a bit too much :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      @sdetweil

      $ cd ~/MagicMirror/modules/MMM-PublicTransportHafas
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      @p1lspeda said in MMM-PublicTransportHafas: Service Temporarily Unavailable:

      Höfchen/Listmann

      For you, try this:

      $ npm run query rmv
      
      Using hafas-client profile: rmv
      
      Enter an address or station name: Höfchen/Listmann
      
      Stops found for 'Höfchen/Listmann':
      
       > Stop: MZ Höfchen/Listmann
         ID: 3029051
         Transport product(s): Bus
      

      Config:

           hafasProfile: "rmv",
           stationID: "3029051",
           stationName: "Höfchen/Listmann",
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      @othomys said in MMM-PublicTransportHafas: Service Temporarily Unavailable:

      Georg-Schwarz-Str./Merseburger-Str.

      For you I found this one:

      $ npm run query insa
      
      Enter an address or station name: Georg-Schwarz
      
      Stops found for 'Georg-Schwarz':
      
       > Stop: Leipzig, Georg-Schwarz-/Merseburger Str.
         ID: 12555
         Transport product(s): Tram, Bus
      

      So your config will be:

            hafasProfile: "insa",
            stationID: "12555",
            stationName: "Georg-Schwarz-Str./Merseburger-Str.",
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      Possible work-around.
      Needs travelling via Austria :-)

      To check if your station is available:

      $ cd ~/MagicMirror/modules/MMM-PublicTransportHafas
      $ npm run query oebb
      
      > mmm-publictransporthafas@2.1.13 query
      > node ./convenience/query_stations.mjs oebb
      
      Using hafas-client profile: oebb
      
      Enter an address or station name:
      

      This will give you a station Id.

      Update config.js:

      $ vi ~/MagicMirror/config/config.js
      :
      :
            hafasProfile: "oebb",
            stationID: "<ID>",
            stationName: "<Stop>",
      :
      :
      

      For me the list appears again, although I do not see the real-time times, meaning it shows the ⚠ symbol (as set in noRealtimeDelayString: "⚠",).

      One can try different hafas-client profiles, listed in:

      https://github.com/public-transport/hafas-client/blob/main/p/readme.md

      When you are lucky there is a good alternative to db.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-PublicTransportHafas: Service Temporarily Unavailable

      Seems that DB made the service, as used by Hafas, unavailable.

      https://reiseauskunft.bahn.de
      503 Service Temporarily Unavailable

      Also other programs using it have this problem.

      Can only hope that there is or there will be an alternative source.
      It is the one of the 3 most used MagicMirror modules in our household.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-MPlayer

      @plainbroke said in MMM-MPlayer:

      @evroom
      Crap on a Cracker,

      Thank you again for this great moduel.

      I like this expression!
      I also waited a long time for this module.
      Only made it available on Github and tweaked it a little.
      When in January the new MM version comes out, I am finally going to reinstall my old setup.
      Good to know that you got it solved.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-MPlayer

      @myfingersarecold said in MMM-MPlayer:

      regarding #2 on my pi i didnt have to rotate the mplayer orientation, but i adjusted the output of my pi to portrait and everything behaved but ymmv depending on how it’s setup.

      Could you please tell me how you do the general rotation to portrait ?

      I use the custom.css to get it rotated clockwise.
      As MPlayer is an overlay, like OMXPlayer, it is not affected by this.

      body {
      :
      :
        transform: rotate(-90deg);
        transform-origin: top left;
        width: 100vh;
        height: 100vw;
      :
      :
       }
      

      But of course there are more, potential better, ways of getting it rotated.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-MPlayer

      Hi @plainbroke,

      Let’s see what we can do about it.

      First be sure that the URL can be opened and shows your stream:

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

      Then get some data from the logs:

      $ pm2 flush
      $ pm2 restart MagicMirror
      $ sleep 15  (or simply count to 15)
      $ grep 'MMM-MPlayer' ~/.pm2/logs/MagicMirror-*.log
      

      Also adding DEBUG will give some more information and since you only use one module, all output will be related to this module:

      logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"],
      

      Tailing the current log:

      $ pm2 logs MagicMirror --lines 100
      

      Also try if a single stream will work:
      (note, please adjust the indents when and where needed)

      $ vi ~/MagicMirror/config/config.js
      
      {
      	module: 'MMM-MPlayer',
            disabled: false,
            position: 'middle_center',
            header: 'MPlayer',
      	config: {
      	      useTwoWindows: false,
      	      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',
            	      ]
      	      }
      	}
      },
      

      I am using an 8 GB RAM Raspberry Pi 4b, perhaps there are memory constrains we are not aware of.
      But when you say the mp4s are working …
      To see the memory usage:
      $ free -h -t

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-MPlayer

      @KristjanESPERANTO said in MMM-MPlayer:

      @evroom Nice! 🚀 Please add it to the module list 🙂

      Done.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-MPlayer

      @myfingersarecold said in MMM-MPlayer:

      I don’t feel like actually uploading it to github, but here is the source code, and an example config.

      I took the liberty to take the provided code, make changes to it and make it available as a public repository:

      https://github.com/evroom/MMM-MPlayer

      My own main purpose for using it, is to setup a new Raspberry Pi (Raspberry Pi 4 Model B), with Debian 12 (bookworm) and the latest MM version (2.30.0).
      Replacing a Pi 3b 32-bit Debian 10 buster setup where OMXPlayer is still working.
      I will be using a single window with a single RTSP stream (for an Axis Network Camera).
      Nothing fancy.

      Best regards,

      E.J.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-MPlayer

      @evroom said in MMM-MPlayer:

      @myfingersarecold

      Here two questions:

      1/ What does streamInterval do ?

      2/ Is it possible to rotate the output ?
      I am using my screen in portrait mode and therefore need my RTSP stream to be rotated by 90 degrees.

      To answer my own questions:

      1/ Cycles the streams defined in window1 and/or window2 after the provided interval (in milliseconds).
      Where applicable, the streams will start from the beginning again (for example for mp4 videos).

      2/ Yes, this is possible using the -vf rotate=[0-3] option and adjusting the windowPosition values.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-MPlayer

      @myfingersarecold Nice! It would be cool if you maybe reconsidered and uploaded it to GitHub 👩‍💻

      In order to encourage and to help you a bit, here a README.md:

      # MMM-MPlayer
      A MagicMirror module that uses MPlayer to display rtsp streams
      
      ## Project Status
      This module is working, but still under development.
      
      ## Installation of mplayer
      ### Verify if mplayer is already installed
      ```shell
      $ which mplayer
      /usr/bin/mplayer
      

      Install mplayer (when not installed yet)

      $ sudo apt install -y mplayer
      

      Installation of the MM module

      1. In your terminal, change to your Magic Mirror module directory cd ~/MagicMirror/modules

      2. Clone this repository git clone https://github.com/myfingersarecold/MMM-MPlayer

      3. Make changes to your config.js file.

      Config Example

      Edit the file ~/MagicMirror/config/config.js to add or modify the module.

      {
      	module: 'MMM-MPlayer',
              disabled: false,
              position: "top_left",
              header: "MPlayer",
      	config: {
      	  useTwoWindows: true,
      	  layout: 'row',
      	  windowSize: { width: 525, height: 295 },
      	  windowPosition: { x: 12, y: 575 },
      	  streamInterval: 30000,
      	  streams: {
      		window1: [
      		  'something_else.mp4',
      		  'something.mp4'
      		],
      		window2: [
      		  'rtsp://foo',
      		  'rtsp://bar',
      		]
      	  }
      	}
      },
      

      Configuration Options

      Option Description Default
      useTwoWindows Use two windows true
      layout Can be ‘row’ or ‘column’ row
      windowSize Window size for both windows { width: 525, height: 295 }
      windowPosition Position of the first window (window1)
      [window2 is either 5px below or to the right of this window, depending on layout]
      { x: 12, y: 575 }
      streamInterval 30000
      streams window1 and / or window2 streams [ mp4 , rtsp ]

      Test environment

      This procedure has been tested on:

      • Raspberry Pi 4 Model B Rev 1.5
      • Debian GNU/Linux 12 (bookworm)
      • Magic Mirror version: 2.30.0

      Contributions

      Code provided by user ‘myfingersarecold’.

      https://forum.magicmirror.builders/user/myfingersarecold

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-MPlayer

      @myfingersarecold

      Here two questions:

      1/ What does streamInterval do ?

      2/ Is it possible to rotate the output ?
      I am using my screen in portrait mode and therefore need my RTSP stream to be rotated by 90 degrees.

      Thanks in advance.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-MPlayer

      @myfingersarecold

      Hi there !

      This is most probably the module I was most anticipating for and that will enable me to finally go from ‘buster’ to ‘bookworm’.
      Finally a worthy and easy follow-up for OMXPlayer.

      I am still testing, but it looks very promising.

      Thanks a lot !

      E.J.

      PS I will have a few question later on.

      posted in Utilities
      evroomE
      evroom
    • MMM-PublicTransportHafas - Loading - undefined

      Hi,

      Besides the calendar module, this module is the most used module in our household. Especially my wife has become quite dependent on it.
      Thank you to the developer and the maintainer.

      But, since a couple weeks I get this “Loading - undefined” message, which is quite annoying.
      It ‘restores’ itself automatically, so that is a good thing.

      I opened an issue for it:
      https://github.com/KristjanESPERANTO/MMM-PublicTransportHafas/issues/185

      My used end-point is db (Deutsche Bahn).

      What I would like to know is, if there are more users of this module and if they experience the same ??

      Thanks in advance,

      E.J.

      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1