fsr / infoscreen

πŸ–₯ Der BananaPi powered Infoscreen im FSR-BΓΌro
https://infoscreen.ifsr.de
10 stars 0 forks source link

Show current Nextbike count #29

Open kiliankoe opened 6 years ago

kiliankoe commented 6 years ago

Just a bike icon with a number next to it would probably suffice. Would make a nice addition imo.

🚲 5

Getting the data is trivial:

curl "https://api.nextbike.net/maps/nextbike-live.json?city=2"
// ...
{
  "uid": 4405708,
  "lat": 51.025619416653,
  "lng": 13.723919391632,
  "bike": false,
  "name": "Andreas-Pfitzmann-Bau",
  "address": null,
  "spot": true,
  "number": 4461,
  πŸ‘‰ "bikes": 0, πŸ‘ˆ
  "bike_racks": 0,
  "free_racks": 0,
  "maintenance": false,
  "terminal_type": "traffic_sign",
  "bike_list": [],
  "bike_numbers": [],
  "bike_types": [],
  "place_type": "0",
  "rack_locks": false
},
// ...