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 476
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-pages - how to know which page index my module has?

      @sdetweil
      Yeah, this module is kind of in my foster care.
      I did not come up with the code; only made some tweaks and made it available.
      There is not suspend or resume to been seen in the code.

      But I will study the stuff you mentioned and will try to implement that.

      Thx.

      posted in Development
      evroomE
      evroom
    • MMM-pages - how to know which page index my module has?

      Hi,

      I am currently adopting MMM-MPlayer to interact with MMM-pages.
      Reason is that suspending the module does not suspend (stop) the stream, as it is an overlay.
      As long as MMM-MPlayer is running, it will always display the stream.

      From the config I can deduct the page index (3 in this case):

            modules: [
              ["compliments"], // page 1
              ["MMM-YrThen"], // page 2
              ["calendar"], // page 3
              ["MMM-MPlayer"], // page 4
            ],
      

      And I see that reflected in the log:

      0|MagicMirror  | [2025-01-18 16:13:55.383] [LOG]   [MMM-MPlayer.js:65:15] Received MMM-pages NEW_PAGE 3
      0|MagicMirror  | [2025-01-18 16:13:55.804] [LOG]   [module.js:189:7] compliments is suspended.
      0|MagicMirror  | [2025-01-18 16:13:55.835] [LOG]   [module.js:189:7] calendar is suspended.
      0|MagicMirror  | [2025-01-18 16:13:55.917] [LOG]   [module.js:189:7] MMM-YrThen is suspended.
      0|MagicMirror  | [2025-01-18 16:13:56.395] [LOG]   [module.js:196:7] clock is resumed.
      0|MagicMirror  | [2025-01-18 16:13:56.439] [LOG]   [module.js:196:7] MMM-MPlayer is resumed.
      

      But I would need to see my module name in the payload (MMM-MPlayer in this case), to act on the correct page index.

      Come to think of it, I also would need the keyword suspended or resumedin the payload, in order to know what to do.

      Any thoughts on this ?

      Best regards,

      E.J.

      posted in Development
      evroomE
      evroom
    • 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
    • 1 / 1