Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

๐Ÿ™ splatnet2statink, but running periodically on Heroku

Notifications You must be signed in to change notification settings

ticky/splatnet2statink-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

splatnet2statink, on Heroku

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

Setup

  1. You'll need a Heroku account (with credit card entered), the Heroku CLI, and a local clone of this repository.

  2. 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
  3. Run heroku addons:open scheduler and create a schedule to run ./bin/update.sh once an hour.

  4. Go to your stat.ink profile and copy your API token (you'll need it in the next step!).

  5. To configure splatnet2statink, run heroku 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

Salmon Run shifts are automatically uploaded. To disable this behaviour, you'll need to fork this repository and edit ./bin/update.sh.

Updates

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.