The Velo station information is pushed as a json feed. I created this, because my initial project to push these metrics to InfluxDB was kinda buggy and unstable.
And because statistics are awesome.
$ go build -o velo
$ ./velo --help
Usage of ./velo:
-listen-address string
The address to listen on for HTTP requests. (default ":8080")
$ docker build -t velo .
$ docker run -d -p 8080:8080 velo
In your prometheus configuration, add the following to scrape_configs:
- job_name: 'velo'
scrape_interval: 10s
static_configs:
- targets: ['<url/ip>:8080']
- Make Dockerfile GOARCH independent.
- Remove Resty dependency.
- Add fancy CLI flags. (Cobra?)
- Add error handeling where necessary.
To build upon this i want something that can use those metrics to suggest me which station i should go to for getting or putting back a bike. This based on my current location (home or work).
Or maybe in the future by placing a marker on a map and it figures out which stations is the closest based on lat/lon, and suggests nearby stations if the chosen one is full or empty.
Send PR.
I'm not a professional developer.