splatnet2statink (a tool for uploading Splatoon 2 battle and Salmon Run shift data to stat.ink), running periodically on free Heroku dynos and free S3-based storage
-
You'll need a Heroku account (with credit card entered), the Heroku CLI, and a local clone of this repository.
-
Run these commands:
heroku create # Create a Heroku application heroku addons:create cloudcube:free # Add Cloudcube (so we can cache stuff in S3) heroku addons:create scheduler:standard # Add the Heroku Scheduler (so we can sync periodically) git push heroku master # Push the codebase up to Heroku
-
Run
heroku addons:open scheduler
and create a schedule to run./bin/update.sh
once an hour. -
Go to your stat.ink profile and copy your API token (you'll need it in the next step!).
-
To configure
splatnet2statink
, runheroku run ./bin/update.sh
and follow the prompts in your terminal.
It's worth noting that the Nintendo Account login URL doesn't copy properly via Heroku's web terminal, so make sure you use the listed heroku run
command.
If you've already got splatnet2statink
fully configured elsewhere, you can upload its config.txt
your application's Cloudcube instance instead of doing the configuration on Heroku. You can access Cloudcube by running heroku addons:open cloudcube
. If you've done this correctly, you should see a /config.txt
entry alongside (not in!) the /public/
folder.
Salmon Run shifts are automatically uploaded. To disable this behaviour, you'll need to fork this repository and edit ./bin/update.sh
.
The application will sync with splatnet2statink on each invocation. Due to the way Heroku's slug system works, if requirements installed initially fall out of date, a fresh deployment will be required.