Hacker News

alexboden
Show HN: Status of my favorite bike share stations blog.alexboden.ca

jlongman6 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_hk6 days ago

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

arjie6 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.

rahimnathwani6 days ago

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

arjie6 days ago

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.

jeffbee21 hours ago

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

rahimnathwani21 hours ago

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

mynegationa day ago

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

hn-front (c) 2024 voximity
source