| Option | Description |
plugin_splatoon
|
Enable splatoon plugin
![]() |
type: boolean
default: no
|
plugin_splatoon_token
|
Splatnet token
![]() |
๐ Token
๐ Web instances must configure settings.json:
- metrics.api.nintendo.splatnet
type: token
|
plugin_splatoon_sections
|
Displayed sections
player for overall player recap
versus for Turf war and Anarchy battle matches
salmon-run for Salmon run next wave matches
![]() |
type: array
(comma-separated)
default: player, versus, salmon-run
|
plugin_splatoon_versus_limit
|
Display limit (Versus)
![]() |
type: number
(0 โค
๐ฅ
โค 6)
default: 1
|
plugin_splatoon_salmon_limit
|
Display limit (Salmon run)
![]() |
type: number
(0 โค
๐ฅ
โค 6)
default: 1
|
plugin_splatoon_statink
|
stat.ink integration
If set, fetched data will also be uploaded to stat.ink
Requires plugin_splatoon_statink_token to be set
![]() |
๐ Web instances must configure settings.json:
type: boolean
default: no
|
plugin_splatoon_statink_token
|
stat.ink token
![]() |
๐ Token
type: token
|
plugin_splatoon_source
|
Source
splatnet will fetch data from Splatnet using spacemeowx2/s3si.ts tool
local will assume s3si/export directory already exists and is populated (use this when developping new features for this plugin to save network resources and time)
mocks will use s3si/mocks directory (use this when developping new features for this plugin to avoid setting up a NSO token)
![]() |
โฏ๏ธ Cannot be preset
๐ง For development
type: string
default: splatnet
allowed values: |
## ๐๏ธ Obtaining a *Nintendo Switch Online* token
The helper script is intended to be run by [deno runtime](https://deno.land/). Either [install it locally](https://deno.land/manual/getting_started/installation) or use its [docker image](https://hub.docker.com/r/denoland/deno).
Run the following command in your terminal and follow instructions:
```bash
deno run --allow-run=deno --allow-read=profile.json --allow-write=profile.json --unstable https://raw.githubusercontent.com/lowlighter/metrics/master/source/plugins/community/splatoon/token.ts
```


## ๐ [stat.ink](https://stat.ink) integration
It is possible to make this plugin automatically export fetched games to [stat.ink](https://stat.ink) by adding the following:
```yaml
plugin_splatoon_statink: yes
plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
```
[stat.ink](https://stat.ink) API key can be found on user profile:

## ๐จโ๐ป About
Data are fetched using [spacemeowx2/s3si.ts](https://github.com/spacemeowx2/s3si.ts) tool (which is itself based on [frozenpandaman/s3s](https://github.com/frozenpandaman/s3s)).
## โน๏ธ Examples workflows
```yaml
name: Splatnet data
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.splatoon.svg
token: NOT_NEEDED
base: ""
plugin_splatoon: yes
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
```
```yaml
name: Splatnet data with stat.ink integration
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.splatoon.svg
token: NOT_NEEDED
base: ""
plugin_splatoon: yes
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
plugin_splatoon_statink: yes
plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
extras_css: |
h2 { display: none !important; }
```