HNNewShowAskJobs
Built with Tanstack Start
Show HN: Status of my favorite bike share stations(blog.alexboden.ca)
49 points by alexboden 8 days ago | 8 comments
  • jlongman8 days ago

    It’s probably worth posting [1] which shows many cities around the world.

    Also there’s an aging HomeAssistant add-on [2] that lets you visualize stations and stats. But since HA now insists the addon is separate from an API and there’s no separate API (really, it’s trivial) things like electric bike or trailer counts are not exposed.

    [1] https://citybik.es [2] https://www.home-assistant.io/integrations/citybikes/

    • kh_hk7 days ago |parent

      A note on [2], the HA integration has been updated with a separate library so new fields might be coming in the future!

      https://github.com/home-assistant/core/pull/151009

  • arjie8 days ago

    Dude, this is fantastic. Thank you. This is my biggest annoyance because I don't have reception in the elevator and I always only remember to check the bikes when I'm there.

    For the SF Bay Area, the relevant endpoints are:

    https://gbfs.lyft.com/gbfs/2.3/bay/en/station_information.js...

    and

    https://gbfs.lyft.com/gbfs/2.3/bay/en/station_status.json

    With this I can build myself a little display that does the same. It does seem to match with the app, but in a tragic twist of fate it appears that the station closest to me has been delisted on the app. Oh fate! What the right hand giveth, the left hand takes!

    EDIT: Funny that these days no one puts their RSS feed link somewhere visible. Fortunately, most clients do find it on the page quite easily. I wonder how they do. It's not in the HTML source.

    • rahimnathwani8 days ago |parent

      Here's a list, but it won't work in the elevator: https://tools.encona.com/lyftbike

      • arjie8 days ago |parent

        Haha, thank you. The app works quite well to see. I just want it to be available before I remember to ask, which I think I can create with an always on display.

      • jeffbee2 days ago |parent

        That's pretty slick! But isn't the Lyft app just a special-purpose browser for GBFS data files?

        • rahimnathwani2 days ago |parent

          No idea. I don't use these bikes. But I couldn't resist when GP shared the API endpoints.

  • mynegation2 days ago

    Haha, I wrote almost exact same app, just in Python (flask)