Support for RATP API [Paris Public Transport]

Hey,

I was too exited about the update :stuck_out_tongue:

So here is my feedback

The steps I had to do in addition of your installation instruction :

  • Change /local/light-entity-card/light-entity-card.js with /hacsfiles/light-entity-card/light-entity-card.js ==> This may be only a problem for my conf
  • Refresh my cache

Without thoses steps I wasn’t able to find the custom card in my list.

Btw thoses problems are reccurent when adding a custom card so I don’t think you can do something about it.

And after I set this up like and old apache use to say : It works !!

:clap::clap::clap::clap::clap::clap::clap::clap::clap: Sooo cool :smiley:

All the right info are displayed great work !!!

The fact that this API choose unfriendly parameter can be frustrating but once its set up you’r good.

I dont know if it’s an issue but when I set the schedule for a bus station the station name doesn’t display on top of the red line. It seems according to your readme that It works on RER ?

Also I would love to help you with the css but I’m so bad and I have terrible taste, bu I think the time to display could be improved.

Well again and again great work and thank you for your contribution.

+3000 lines must have take you some time …

Now this card is in my board and i’m proud of it :slight_smile:

I just realise that it is the card name and I can change it like I want…

Wow, great, thanks for your feedback ! I’m indeed glad this ends up being useful for somebody else :slight_smile: Most of the code is outrageously ripped from the boilerplate card github, so I wrote way less than is in there (and keep in mind the js file is compiled from typescript with its dependencies). But since I have very little knowledge of frontend stuff (and, actually, I’m far from an experienced dev), it still took me quite a lot of time to get acquainted with most of the tech involved here :stuck_out_tongue:

I might look into making it better in the future, and I’ll certainly try to keep it running if anything breaks, but I think unless people ask here for things I consider good ideas, you do have a pretty much finished product in your dashboard :wink:

Cheers !

Hello Lesensei,

thanks for the great work you’ve made ! :slight_smile:

On my side it is “kind of working” : I’m unable to filter the direction (AR) at my Transilien station so it is a bit messy and not as useful as possible :confused:

I’m planing to do a few tests with IDFM REST APIs ( https://portal.api.iledefrance-mobilites.fr/fr/?option=com_apiportal&view=apitester&usage=api&apiName=Prochains%20passages%20(plateforme%20Île-de-France%20Mobilités)%20-%20requête%20unitaire&sn=Prochains%20passages%20(plateforme%20Île-de-France%20Mobilités)%20-%20requête%20unitaire&Itemid=0&tab=tests&apiId=6e122510-07c4-40a4-bc9e-2ee4112bceaa&menuId=174&apiVersion=1.0.0&managerId=1&renderTool=2&type=rest ) to see what I can achieve on my side and will share the result here if I’m able to get interesting result

For information there is a table (dictionary) of the station IDs :
Périmètre des données temps réel disponibles sur la plateforme d'échanges Île-de-France Mobilités — Open Data Île-de-France Mobilités (use the left tool to filter the column reflex_lda_nom and get the station ID with line code at gtfs_stop_id)

Again thanks for the nice plugin :slight_smile:

Hey, thanks for your feedback (and welcome to these forums) !

Would you mind sharing the https://me-deplacer.iledefrance-mobilites.fr/fiches-horaires/ URL you’re using that doesn’t take the direction into account ? I’ll try to look into it.

I actually tried using the Rest APIs some time ago but the auth flow was not really usable. It looks like they have changed it for the better, however I can now see that the API doesn’t return “next stops” for RER lines A and B (at the very least), which makes it useless for quite a number of users, me included. So until this is solved, I’ll keep things as they are :slight_smile:

Have a nice week !

Hello Alain

Thanks for the warm welcome your reply. Here is an example :

I will be idle on developing my own entity (currently playing with Edge TPU, Frigates and passive cooler for rpi4 :hot_face:). I will find more time to work on this in a couple of months :slight_smile:

Have a great weekend

Tested OK with RER B line.

Link for station code.
https://aurelienb.pagesperso-orange.fr/HTML/transports/obli_UIC.htm

Hi Lesensei, trying to add it on HA dashboard. Managed to add it to HACS via repository.
a bit unclear on github readme documentation. I am unable to find the “carte…” or “Idfm” card on HA dashboard. but it is well showing as added repository in HACS.

I tried multiple cache clearning and restart of Home assistant OS on RPi4. Any help / guideline ?

Well I’m sorry to hear that. Here’s how it displays on a french setup: image

Does it appear in your HACS “interface” tab ? It looks like this in mine:

Currently does not work. RATP issue probably

Hi,

I’ve just created a new lovelace card for RATP bus/metro/tramway and also for RER and SNCF based on the new PRIM API.

It’s look like that (for RER):

If you want to test it, you can find my repository here :
Lovelace IDF Mobilité

Let me know what do you think about it :wink:

Hello,
I cant add your card bc at all times when i try to put it on my dashboard they say that this card doesn’t exist, Can you help me ?

Hi,

I just fixed an issue on firefox, maybe it’s your issue, let me know :wink:

Hello,

For your information, if you have created your PRIM account after the 13th of March 2024, your API call quota is reduced by default to 1 000 of requests per day (it was previously 1 000 000 /day) on /marketplace/stop-monitoring.
It is explained here : it’s temporary as they don’t want to be flooded during the 2024 olympic games.

The result for me was empty cards on Home assistant dashboard starting at 4:10 AM … so it was quite useless for me!

You can :

  • check your quota consumption online on prim website
  • ask for a quota upgrade if you write an mail to [email protected].
    They have applied my quota update request in a single open working day for me :slight_smile:

Note : thank you to @yyrkoon94 & @lesensei for your great job !

The integration suddenly stopped working on my end a couple weeks ago. Even with a new token, I cannot fetch any station.
At least one other person seems to have the same problem.
Anyone else out there or what am doing wrong? :thinking: