This simple script collect player metrics from Clash Royale and insert them in InfluxDB.
docker run --env CR_API_TOKEN=$(cat token) --env INFLUXDB_HOST=influxdb --env INFLUXDB_PORT=8086 --env INFLUXDB_LOGIN=root --env INFLUXDB_PASSWORD=root --env INFLUXDB_DATABASE=clashroyale_stats --env PLAYER_TAG=XXXX --link influxdb --name player guidelacour/clashroyale-player-tracker