Module Developers

Private

You have developed a module for the MagicMirror? Join the group and get a “Module Developer” badge!

Posts

  • RE: MMM-PublicTransportHafas

    @Mati_93 Wow, that a bunch of separate issues. These three minimal configurations work for me with the Gotha stop. Please test them one at a time first. I had to play with timeInFutureMinutes a bit to get departures.

    MMM-PublicTransportHub with HAFAS

    {
      module: "MMM-PublicTransportHub",
      position: "top_left",
      header: "Gotha, 18.-März-Straße",
      config: {
        provider: "hafas",
        hafasProfile: "vmt",
        stationId: "167050",
        timeInFutureMinutes: 720
      }
    },
    

    Older MMM-PublicTransportHafas

    {
      module: "MMM-PublicTransportHafas",
      position: "top_right",
      header: "Gotha, 18.-März-Straße",
      config: {
        hafasProfile: "vmt",
        stationID: "167050",
        timeInFuture: 720
      }
    },
    

    MMM-PublicTransportHub with Transitous

    {
      module: "MMM-PublicTransportHub",
      position: "top_center",
      header: "Gotha, 18.-März-Straße",
      config: {
        provider: "transitous",
        stationId: "de-DELFI_de:16067:167050::16705000",
        contact: "@Mati_93",
        timeInFutureMinutes: 720
      }
    },
    

    Please note that vmt is a HAFAS profile, not a provider. Therefore the Hub needs provider: "hafas" together with hafasProfile: "vmt".

    The garbled German characters look like a UTF-8/locale problem on Raspberry Pi OS. Please check:

    locale
    locale charmap
    

    The result should contain UTF-8. You can configure this with:

    sudo raspi-config
    

    I think you have to select Localization Options → Locale and enable de_DE.UTF-8 UTF-8. Log in again or reboot afterwards.

    As a quick test, you can search without special characters:

    18 Maerz Strasse Gotha
    

    OPS_BLOCKED usually comes from a blocked DB endpoint. For Gotha, please use the regional vmt profile instead of a DB profile.

  • RE: MMM-PublicTransportHafas

    @Mati_93 Have you managed to figure it out yet? :) If not, please describe again what you’re trying to do and what’s not working. And most importantly, which module you’re using.

  • RE: MMM-PublicTransportHub

    @wec Interesting. I’ll take a look at the API. Seems like a good candidate for MMM-PublicTransportHub.

  • RE: Having trouble with screen on and off? Here are some tips that could help

    @1a2a3a For the latest Wayland on off I use the new adjusted scripts.

    mon.sh

    #!/bin/bash
    export WAYLAND_DISPLAY=wayland-0
    export XDG_RUNTIME_DIR=/run/user/1000
    /usr/bin/wlr-randr --output HDMI-A-1 --on --mode 1920x1080@60Hz --transform 270
    

    mof.sh

    #!/bin/bash
    export WAYLAND_DISPLAY=wayland-0
    export XDG_RUNTIME_DIR=/run/user/1000
    /usr/bin/wlr-randr --output HDMI-A-1 --off
    

    This works pretty well for me. The screen eventually times out as there is no input and it turns off.

    In addition to these I have these cron entries to call the scripts.

    Turns the screen on at 6am and off at 9pm.

    00 06 * * * /home/pi/mon.sh >> /home/pi/mon.log 2>&1
    00 21 * * * /home/pi/mof.sh >> /home/pi/mof.log 2>&1
    
  • RE: Having trouble with screen on and off? Here are some tips that could help

    @1a2a3a I am a little confused. I am not having any issues after implementing my solution in this post. I thought you were having issues.

  • RE: MMM-PublicTransportHub

    @Volkae Sorry, I mixed that up. For MMM-PublicTransportHub try this:

       {
         module: "MMM-PublicTransportHub",
         position: "bottom_left",
         config: {
           provider: "transitous",
           stationId: "de-DELFI_de:02000:82950",
           contact: "______YOUR_EMAIL_OR_FORUM_ALIAS______",
         }
       },
    

    or this:

       {
         module: "MMM-PublicTransportHub",
         position: "bottom_left",
         config: {
           provider: "hafas",
           stationId: "9308468",
           hafasProfile: "nahsh",
         }
       },
    
  • RE: Snilles Magic Mirror Project

    @Horge Yes, no problem!
    You can have the “full-json” if you want? Where do you want it? :)

  • RE: MMM-PublicTransportHafas

    @Mati_93

    Your module does not support German keyboard special signs.

    What makes you say that? It works for me.

    How can I find 18 März Straße and besides is not working for Gotha Hbf.

    Did you check the vmt profile?

    This seems to be what you are searching for:

        {
          module: "MMM-PublicTransportHafas",
          position: "bottom_left",
          config: {
            hafasProfile: "vmt",
            stationID: "167050",
            stationName: "Gotha, 18.-März-Straße"
          }
        },
    
  • RE: MMM-PublicTransportHub

    @Volkae Try this:

        {
          module: "MMM-PublicTransportHafas",
          position: "bottom_left",
          config: {
            hafasProfile: "nahsh",
            stationID: "9308468",
            stationName: "Hamburg Elbgaustraße"
          }
        },
    
  • RE: Having trouble with screen on and off? Here are some tips that could help

    Hi @1a2a3a . Honestly, no idea. I remember seeing a few posts from people having that exact same issue. Maybe if you search the forum for related content you may find something. I have not had the same issue myself.

Member List

P paviro Group Owner
402 Posts 152 Reputation
MichMichM MichMich Group Owner
614 Posts 419 Reputation
Y yawns Group Owner
1,004 Posts 455 Reputation
morozgrafixM morozgrafix Group Owner
144 Posts 85 Reputation
J Jopyth Group Owner
305 Posts 170 Reputation
KristjanESPERANTOK KristjanESPERANTO Group Owner
452 Posts 129 Reputation
Dentrass 0D Dentrass 0 Group Owner
19 Posts 8 Reputation
TAGinsideT TAGinside Group Owner
13 Posts 7 Reputation
R rkorell Group Owner
447 Posts 99 Reputation
J Jacopo1891 Group Owner
0 Posts 0 Reputation
F FrostByte Group Owner
9 Posts 3 Reputation
K kcs897 Group Owner
0 Posts 0 Reputation
B Bocah4d Group Owner
0 Posts 0 Reputation
I idproslotpay4d Group Owner
0 Posts 0 Reputation
L liquortheka Group Owner
0 Posts 0 Reputation
S staceyhughes271 Group Owner
0 Posts 0 Reputation
P preeti25 Group Owner
0 Posts 0 Reputation
A alexmann Group Owner
10 Posts 1 Reputation
A abigailuna Group Owner
0 Posts 0 Reputation
2 2hdlockness Group Owner
12 Posts 2 Reputation