Skip to content

custom keys

eli fessler edited this page Sep 30, 2018 · 9 revisions

splatnet2statink supports adding custom keys to config.txt to enable specialized functionality. These are features which change how the script runs, but are closer to user-specific settings rather than command line flags which can be quickly specified or changed each time the script is run.

If you'd like to request official support for your custom feature so that it may be enabled or disabled with an optional key, please create a GitHub issue or reach out on Twitter. Requesting support to accommodate specific use cases makes it easier to apply future updates to the script without having to maintain a separate fork.

Supported keys

Added in v0.2.0

  • ignore_private: Ignores all private battle results and does not upload them to stat.ink.

Added in v1.2.2

  • app_timezone_offset: Overrides the x-timezone-offset header for requests to app.splatoon2.nintendo.net.
    • Appears in SplatNet result images that are uploaded to stat.ink. The default value is calculated using the system timezone.
    • This value should equal your UTC time offset * -60, e.g. Japan is UTC+9: 9 * -60 = -540.
  • app_unique_id: Overrides the x-unique-id header for requests to app.splatoon2.nintendo.net.
  • app_user_agent: Overrides the default user agent for requests to app.splatoon2.nintendo.net.

The default format for config.txt with all custom keys present is provided below for reference:

{
    "api_key": "",
    "cookie": "",
    "session_token": "",
    "user_lang": "",
    "ignore_private": "true",
    "app_timezone_offset": "...",
    "app_unique_id": "...",
    "app_user_agent": "..."
}

where api_key is your stat.ink API key, cookie is your iksm_session cookie, session_token is your account token used to generate cookies (should be set to skip if user is manually acquiring cookies from the app), and user_lang is your locale.

Clone this wiki locally