splatnet2statink (a tool for uploading Splatoon 2 battle data to stat.ink), but running periodically on free Heroku dynos and free S3-based storage
-
You'll need a Heroku account (with credit card entered, sadly), 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 store configuration 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.
This will need periodic updating to sync with splatnet2statink.
The revision of the script is pinned in the requirements.in
file, and once updated needs syncing with requirements.txt
using pip-compile
(available from pip install pip-tools
).