Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xIExodusIx opened this issue Jul 8, 2022 · 5 comments
Closed

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

xIExodusIx opened this issue Jul 8, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@xIExodusIx
Copy link

xIExodusIx commented Jul 8, 2022

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.

@xIExodusIx xIExodusIx added the enhancement New feature or request label Jul 8, 2022
@KristjanESPERANTO
Copy link
Owner

Hi @xIExodusIx 🙂

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
Copy link

djzwerg commented Sep 16, 2022

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
Copy link
Owner

Hi former colleague 😄

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
Copy link

djzwerg commented Sep 17, 2022

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

@KristjanESPERANTO
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants