source/plugins/community/splatoon/README.md
</td>
<b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_token</code></h4></td> <td rowspan="2"><p>Splatnet token</p> </td> </tr> <tr> <td nowrap="nowrap">๐ Token๐ Web instances must configure <code>settings.json</code>:
<ul> <li><i>metrics.api.nintendo.splatnet</i></li> </ul> <b>type:</b> <code>token</code> </td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_sections</code></h4></td> <td rowspan="2"><p>Displayed sections</p> <ul> <li><code>player</code> for overall player recap</li> <li><code>versus</code> for <em>Turf war</em> and <em>Anarchy battle</em> matches</li> <li><code>salmon-run</code> for <em>Salmon run next wave</em> matches</li> </ul> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>array</code> <i>(comma-separated)</i><b>default:</b> player, versus, salmon-run
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_versus_limit</code></h4></td> <td rowspan="2"><p>Display limit (Versus)</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code> <i>(0 โค ๐ฅ โค 6)</i><b>default:</b> 1
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_salmon_limit</code></h4></td> <td rowspan="2"><p>Display limit (Salmon run)</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code> <i>(0 โค ๐ฅ โค 6)</i><b>default:</b> 1
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_statink</code></h4></td> <td rowspan="2"><p>stat.ink integration</p> <p>If set, fetched data will also be uploaded to stat.ink Requires <a href="/source/plugins/community/splatoon/README.md#plugin_splatoon_statink_token"><code>plugin_splatoon_statink_token</code></a> to be set</p> </td> </tr> <tr> <td nowrap="nowrap">๐ Web instances must configure <code>settings.json</code>: <ul> <li><i>metrics.api.statink</i></li> </ul> <b>type:</b> <code>boolean</code><b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_statink_token</code></h4></td> <td rowspan="2"><p>stat.ink token</p> </td> </tr> <tr> <td nowrap="nowrap">๐ Token<b>type:</b> <code>token</code>
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_splatoon_source</code></h4></td> <td rowspan="2"><p>Source</p> <ul> <li><code>splatnet</code> will fetch data from Splatnet using <a href="https://github.com/spacemeowx2/s3si.ts">spacemeowx2/s3si.ts</a> tool</li> <li><code>local</code> will assume <code>s3si/export</code> directory already exists and is populated (use this when developping new features for this plugin to save network resources and time)</li> <li><code>mocks</code> will use <code>s3si/mocks</code> directory (use this when developping new features for this plugin to avoid setting up a NSO token)</li> </ul> </td> </tr> <tr> <td nowrap="nowrap">โฏ๏ธ Cannot be preset๐ง For development
<b>type:</b> <code>string</code>
<b>default:</b> splatnet
<b>allowed values:</b><ul><li>splatnet</li><li>local</li><li>mocks</li></ul></td>
</tr> </table> <!--/options-->The helper script is intended to be run by deno runtime. Either install it locally or use its docker image.
Run the following command in your terminal and follow instructions:
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
It is possible to make this plugin automatically export fetched games to stat.ink by adding the following:
plugin_splatoon_statink: yes
plugin_splatoon_statink_token: ${{ secrets.SPLATOON_STATINK_TOKEN }}
stat.ink API key can be found on user profile:
Data are fetched using spacemeowx2/s3si.ts tool (which is itself based on frozenpandaman/s3s).
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 }}
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; }