Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angristan/bsport-charts
Generate graphs to visualize Bsport sessions over time 💪
https://github.com/angristan/bsport-charts
bsport charts cli data-visualization fitness go go-echarts golang visualization
Last synced: 25 days ago
JSON representation
Generate graphs to visualize Bsport sessions over time 💪
- Host: GitHub
- URL: https://github.com/angristan/bsport-charts
- Owner: angristan
- Created: 2022-02-20T18:24:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T04:22:15.000Z (over 1 year ago)
- Last Synced: 2024-06-20T01:51:08.332Z (5 months ago)
- Topics: bsport, charts, cli, data-visualization, fitness, go, go-echarts, golang, visualization
- Language: Go
- Homepage: https://bsport-charts.s3-website.fr-par.scw.cloud/
- Size: 419 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bsport-charts
CLI tool to generate booking charts from the [bsport](https://bsport.io) API.
It uses [go-echarts](https://github.com/go-echarts/go-echarts) to generate the visualizations.
## Installation
Grab the latest binary from the releases, or build it yourself!
## Usage
```
➜ ./bsport-charts -help
Usage of ./bsport-exporter:
-member string
BSport member ID
-token string
BSport API token
```Go on [backoffice.bsport.io](https://backoffice.bsport.io/) and inspect the network requests.
You can extract your member ID from the query string of some requests and your token from the authorization header of any request.
Then, launch the tool:
```
➜ ./bsport-charts -member xxxxxx -token xxxxxx
INFO[0001] Generated charts.html
```And open the generated file in your browser.
## Demo
An example of the output is available in `./charts.example.html` and on https://bsport-charts.s3-website.fr-par.scw.cloud/.
### Heatmap of bookings per weekday and hour of the day
![](assets/heatmap.png)
### Bookings per day of the week
![](assets/per_weekday.png)
### Bookings over time, grouped by week
![](assets/per_week.png)