GithubHelp home page GithubHelp logo

lesensei / idfm-card Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 2.0 459 KB

Simple Lovelace card to show next departures on the Ile de France Mobilite network

License: MIT License

JavaScript 5.55% TypeScript 94.45%

idfm-card's People

Contributors

lesensei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

anthonycarigny

idfm-card's Issues

Update remaining time dynamically (by counting down)

In the image below I compare the card proposed by the Entity generated by https://github.com/droso-hass/idfm with "idfm-card".

image

Using the "idfm" integration, the delays are even given in seconds, and it counts down every second.
The "idfm-card" on the other hand as a nicer representation, but the data seems to be updated only when it is fetched from the data provider.

I suggest that the UI would also update the time in between API calls. It also means that there is less need to check the update time.

Unable to get next trains for tramway lines

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
0.0.6d
Last working release (if known):
N/A
Browser and Operating System:
Google Chrome Version 116.0.5845.141, Windows 11

Description of problem:
Unable to get next trains for tramway lines.
For example I've tested with:
Line: line:IDFM:C01843
Departure: stop_area:IDFM:72028
Arrival: stop_area:IDFM:72037
And it couldn't get the next trains. No issue with RER or bus lines.

Javascript errors shown in the web inspector (if applicable):

Failed to load resource: the server responded with a status of 500 ()
https://api-iv.iledefrance-mobilites.fr/lines/line:IDFM:C01843/stops/stop_area:IDFM:72037/to/stop_area:IDFM:72028/realtime

And error when trying to access to URL:

{"nextDepartures":{"data":[],"statusCode":500,"errorMessage":"Cannot read property 'value' of undefined"},"crowdsourcingReports":{"congestions":[{"sens":-1,"nearTimeReports":{"rating":null}},{"sens":1,"nearTimeReports":{"rating":null}}],"statusCode":200}}

Additional information:
Very convenient integration, thank you!

The `way` parameter doesn't work for trains operated by the SNCF.

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
0.0.3

Last working release (if known):
None

Browser and Operating System:
Doesn't matter.

Description of problem:
The way parameter doesn't work for trains operated by the SNCF (e.g. RER E or L train).

Javascript errors shown in the web inspector (if applicable):
None

Additional information:
Example URLs showing the problem:

Propose a dark mode

My UI is generally in dark mode, but the idfm-card is "always" white:

image

My request is to propose a dark mode, and idealy adapt it automatically according to the user's selection.

For comparison, I have a browser plugin to convert sites that aren't dark mode to some automatic dark mode which results in:
image

The yellowish background is not ideal, and I do not enable that plugin on my ha instance - converting something that is already in dark mode using the browser plugin is not always rendering fine.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.