KristjanESPERANTO / MMM-PublicTransportHafas

This is a module for MagicMirror² to display public transport departures.
MIT License
17 stars 6 forks source link

Help needed for hamburg-lines.css --> no Issue. #82

Closed xIExodusIx closed 2 years ago

xIExodusIx commented 2 years ago

I used MMM-HH-LocalTransport before, that works pretty fine, it uses and needs a GEOfox API-Key to run and display bus lines, but this didn't shows the symbol (RB 81) for the trains. The symbols for the buses are shown correctly like we have it here in Hamburg. Please see https://de.wikipedia.org/wiki/Vorlage:%C3%96PNV_Hamburg. It's a picture called Hamburg_Bus-Logo.svg. I tried to load it with the hamburg-lines.css, but I failed. Could you help?

The second problem I have is that I don't want to see if the bus and/or train is in time (green +0 or gray +?), but I want to see if its to late or more than 0 Minutes to early.

I am not really good in coding, but I try my very best to understand how it all works, and try to solve the problems by myself. But sometimes I need help. Also my English is not really good anymore. School is to far away.

KristjanESPERANTO commented 2 years ago

Hi @xIExodusIx :slightly_smiling_face:

I created a hamburg-lines.css with an adjusted bus symbol. In my test environment it looks like this: Ekrankopio de 2022-08-29 00-49-51

Is this how you wanted it?

Does showAbsoluteTime: false, in your module config solves your second problem?

djzwerg commented 2 years ago

Hi @KristjanESPERANTO and greetings to my former colleague ;-) Thanks for your great work!

I'm not sure whether I have the same issue as @xIExodusIx but the lines won't be coloured in my case, too. Here are my settings (for testing, of course): grafik

And this is the result: grafik

KristjanESPERANTO commented 2 years ago

Hi former colleague :smile:

that's a different problem - the value for customLineStyles just has to be "halle".

Try this configuration (with some other changes):

    {
      module: "MMM-PublicTransportHafas",
      position: "middle_center",
      config: {
        hafasProfile: "insa",
        stationID: "5067",
        stationName: "Haltestelle Burg Giebichenstein",
        updatesEvery: 30,
        maxUnreachableDepartures: 0,
        maxReachableDepartures: 10,
        timeInFuture: 360,
        timeToStation: 1,
        showAbsoluteTime: false,
        customLineStyles: "halle",
        fadeReachableDepartures: false,
        replaceInDirections: { "Halle (Saale), ": "" },
        showOnlyLineNumbers: true,
        tableHeaderOrder: ["time", "line", "direction", "platform"]
      }
    },

Ekrankopio de 2022-09-17 02-02-34

djzwerg commented 2 years ago

Hi @KristjanESPERANTO and thanks for your fast reply! I made the changes and it works 👍🏻

KristjanESPERANTO commented 2 years ago

@xIExodusIx: I'm closing the issue. If you still have issues, please reopen this one or open a new one :slightly_smiling_face: