Skip to content

New SL key-less API's #85

@HonkStonk

Description

@HonkStonk

This got me excited as it's just what my life needed! Looks super nice in the examples.

Tried to get SL real-time departures from my stop working today:

  1. Got the forward entry error with tag 3.1.1 in HACS - manually applied Commit b824184 locally to fix it
  2. https://www.trafiklab.se/api/our-apis/sl/transport/

"SL Transport (new: has replaced Departures v4 & Stops and lines v2)
It replaces the existing SL Departures v4 and SL Stops and lines v2 APIs. No API key is required to use this API."

For example accessing this directly from any browser gets me the full updated departure info I'm interested in:
https://transport.integration.sl.se/v1/sites/7017/departures

Just out of curiosity I tried entering that direct URL as "Realtidsinformation 4 API Key*" for the integration options but of course it does not work.
Only getting SL "Departure Sensor 7017 (departures)" with "-min" of course. I guess there are some differences in the old and new key-less API's.

Is anyone working on this? Or are the old API's still working? I can't find how to access the old API's...

What's the next step? I feel motivated to apply fixes but time is limited...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions