diff --git a/.github/scripts/files/examples.yml b/.github/scripts/files/examples.yml
index edc22267..6da9b359 100644
--- a/.github/scripts/files/examples.yml
+++ b/.github/scripts/files/examples.yml
@@ -18,6 +18,8 @@ on:
required: true
GOOGLE_MAP_TOKEN:
required: true
+ SPLATOON_TOKEN:
+ required: true
SPOTIFY_TOKENS:
required: true
STOCK_TOKEN:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index aa1fa2e3..311cd88f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -159,6 +159,7 @@ jobs:
CHESS_TOKEN: ${{ secrets.CHESS_TOKEN }}
PAGESPEED_TOKEN: ${{ secrets.PAGESPEED_TOKEN }}
GOOGLE_MAP_TOKEN: ${{ secrets.GOOGLE_MAP_TOKEN }}
+ SPLATOON_TOKEN: ${{ secrets.SPLATOON_TOKEN }}
SPOTIFY_TOKENS: ${{ secrets.SPOTIFY_TOKENS }}
STOCK_TOKEN: ${{ secrets.STOCK_TOKEN }}
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }}
diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml
index 81444044..064843a6 100644
--- a/.github/workflows/examples.yml
+++ b/.github/workflows/examples.yml
@@ -18,6 +18,8 @@ on:
required: true
GOOGLE_MAP_TOKEN:
required: true
+ SPLATOON_TOKEN:
+ required: true
SPOTIFY_TOKENS:
required: true
STOCK_TOKEN:
@@ -1147,6 +1149,21 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
+ - name: ๐ฆ Splatoon - Example
+ uses: lowlighter/metrics@master
+ with:
+ filename: metrics.plugin.splatoon.svg
+ token: ${{ secrets.METRICS_TOKEN }}
+ base: ""
+ plugin_splatoon: yes
+ plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
+ extras_css: |
+ h2 { display: none !important; }
+ output_action: none
+ delay: 120
+ user: lowlighter
+ plugins_errors_fatal: yes
+ if: ${{ success() || failure() }}
- name: ๐น Stock prices - Stock prices from Tesla
uses: lowlighter/metrics@master
with:
diff --git a/README.md b/README.md
index 4a6cdefd..1c2e7461 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
|
-
+
|
@@ -465,6 +465,7 @@ Plugins provide additional content and lets you customize rendered metrics.
* [๐ Nightscout `nightscout`](/source/plugins/community/nightscout/README.md) by [@legoandmars](https://github.com/legoandmars)
* [๐ฉ PoopMap plugin `poopmap`](/source/plugins/community/poopmap/README.md) by [@matievisthekat](https://github.com/matievisthekat)
* [๐ธ Website screenshot `screenshot`](/source/plugins/community/screenshot/README.md) by [@lowlighter](https://github.com/lowlighter)
+ * [๐ฆ Splatoon `splatoon`](/source/plugins/community/splatoon/README.md) by [@lowlighter](https://github.com/lowlighter)
* [๐น Stock prices `stock`](/source/plugins/community/stock/README.md) by [@lowlighter](https://github.com/lowlighter)
diff --git a/action.yml b/action.yml
index 36fd9650..1ca69945 100644
--- a/action.yml
+++ b/action.yml
@@ -1322,6 +1322,29 @@ inputs:
description: Background
default:
+ # ====================================================================================
+ # ๐ฆ Splatoon
+
+ plugin_splatoon:
+ description: Enable splatoon plugin
+ default:
+
+ plugin_splatoon_token:
+ description: Splatnet token
+ default:
+
+ plugin_splatoon_modes:
+ description: Displayed modes
+ default:
+
+ plugin_splatoon_versus_limit:
+ description: Display limit (Versus)
+ default:
+
+ plugin_splatoon_salmon_limit:
+ description: Display limit (Salmon run)
+ default:
+
# ====================================================================================
# ๐น Stock prices
diff --git a/settings.example.json b/settings.example.json
index ffdc7de2..678fa1c0 100644
--- a/settings.example.json
+++ b/settings.example.json
@@ -194,6 +194,10 @@
"screenshot":{
"enabled": false, "//": "Enable screenshot plugin"
},
+ "splatoon":{
+ "token": "Splatnet token",
+ "enabled": false, "//": "Enable splatoon plugin"
+ },
"stock":{
"token": "Yahoo Finance token",
"enabled": false, "//": "Enable stock plugin"
diff --git a/source/plugins/README.md b/source/plugins/README.md
index 3f53daac..b28547e2 100644
--- a/source/plugins/README.md
+++ b/source/plugins/README.md
@@ -53,5 +53,6 @@ Plugins provide additional content and lets you customize rendered metrics.
* [๐ Nightscout `nightscout`](/source/plugins/community/nightscout/README.md) by [@legoandmars](https://github.com/legoandmars)
* [๐ฉ PoopMap plugin `poopmap`](/source/plugins/community/poopmap/README.md) by [@matievisthekat](https://github.com/matievisthekat)
* [๐ธ Website screenshot `screenshot`](/source/plugins/community/screenshot/README.md) by [@lowlighter](https://github.com/lowlighter)
+ * [๐ฆ Splatoon `splatoon`](/source/plugins/community/splatoon/README.md) by [@lowlighter](https://github.com/lowlighter)
* [๐น Stock prices `stock`](/source/plugins/community/stock/README.md) by [@lowlighter](https://github.com/lowlighter)
diff --git a/source/plugins/community/README.md b/source/plugins/community/README.md
index 66774ba5..4a5f780f 100644
--- a/source/plugins/community/README.md
+++ b/source/plugins/community/README.md
@@ -30,17 +30,27 @@
| ๐ธ Website screenshot |
- ๐น Stock prices |
+ ๐ฆ Splatoon |
|
+
+
+
+ |
+
+ | ๐น Stock prices |
+ |
+
+
|
+![]() |
diff --git a/source/plugins/community/splatoon/README.md b/source/plugins/community/splatoon/README.md
index a2b51550..059eeaed 100644
--- a/source/plugins/community/splatoon/README.md
+++ b/source/plugins/community/splatoon/README.md
@@ -1,9 +1,108 @@
+
+ | โ Back to plugins index |
+ ๐ฆ Splatoon |
+ This plugin displays your Splatoon 3 recent matches based on data fetched from Splatnet.
+ |
+ | โ ๏ธ Disclaimer | This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Nintendo or Splatoon.
+All product and company names are trademarksโข or registeredยฎ trademarks of their respective holders.
+This specific plugin is licensed under GPL-3.0 rather than MIT to comply with spacemeowx2/s3si.ts license.
+Note that Nintendo Switch Online web tokens usage are not explicitly allowed by Nintendo, use at your own risk.
+ |
+| Authors | @lowlighter |
+
+ Supported features โ Full specification |
+ ๐ Classic template |
+
+
+ ๐ค Users ๐ฅ Organizations |
+
+
+ ๐๏ธ plugin_splatoon_token |
+
+
+
+
+
+ |
+
+
## โก๏ธ Available options
+
+
+ | Option | Description |
+
+
+ plugin_splatoon
|
+ Enable splatoon plugin
+![]() |
+
+
+ โจ On master/main
+type: boolean
+
+default: no
|
+
+
+ plugin_splatoon_token
|
+ Splatnet token
+![]() |
+
+
+ ๐ Token
+โจ On master/main
+๐ Web instances must configure settings.json:
+
+- metrics.api.nintendo.splatnet
+
+type: token
+
|
+
+
+ plugin_splatoon_modes
|
+ Displayed modes
+![]() |
+
+
+ โจ On master/main
+type: array
+(comma-separated)
+
+default: turf-war, splat-zones, tower-control, rainmaker, clam-blitz, salmon-run
|
+
+
+ plugin_splatoon_versus_limit
|
+ Display limit (Versus)
+![]() |
+
+
+ โจ On master/main
+type: number
+(0 โค
+๐ฅ
+โค 6)
+
+default: 1
|
+
+
+ plugin_splatoon_salmon_limit
|
+ Display limit (Salmon run)
+![]() |
+
+
+ โจ On master/main
+type: number
+(0 โค
+๐ฅ
+โค 6)
+
+default: 1
|
+
+
## ๐๏ธ Obtaining a *Nintendo Switch Online* token
@@ -22,4 +121,17 @@ deno run --allow-run=deno --allow-read=profile.json --allow-write=profile.json -
## โน๏ธ Examples workflows
+```yaml
+name: Example
+uses: lowlighter/metrics@latest
+with:
+ filename: metrics.plugin.splatoon.svg
+ token: ${{ secrets.METRICS_TOKEN }}
+ base: ""
+ plugin_splatoon: yes
+ plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
+ extras_css: |
+ h2 { display: none !important; }
+
+```
diff --git a/source/plugins/community/splatoon/examples.yml b/source/plugins/community/splatoon/examples.yml
index 8f05968f..9307ac2c 100644
--- a/source/plugins/community/splatoon/examples.yml
+++ b/source/plugins/community/splatoon/examples.yml
@@ -6,7 +6,7 @@
base: ""
plugin_splatoon: yes
plugin_splatoon_token: ${{ secrets.SPLATOON_TOKEN }}
+ extras_css: |
+ h2 { display: none !important; }
test:
skip: true
- prod:
- skip: true
diff --git a/source/templates/classic/README.md b/source/templates/classic/README.md
index 26976fee..1b07964c 100644
--- a/source/templates/classic/README.md
+++ b/source/templates/classic/README.md
@@ -7,7 +7,7 @@ This is also the default template.
Supported features โ Full specification |
- ๐ ๐ฐ ๐ธ ๐ โ โ๏ธ ๐ฅ ๐ ๐ฉ ๐ธ ๐น ๐ฌ ๐๏ธ ๐ซ ๐ก ๐ ๐
๐ท๏ธ ๐ณ๏ธ ๐จโ๐ป ๐ผ ๐ฉ โฑ๏ธ ๐งโ๐คโ๐ง โ๏ธ ๐๏ธ ๐ญ ๐ ๐ผ ๐ ๐ ๐จ๏ธ โจ ๐ซ ๐ ๐ญ ๐ ๐งฎ ๐ค โฐ |
+ ๐ ๐ฐ ๐ธ ๐ โ โ๏ธ ๐ฅ ๐ ๐ฉ ๐ธ ๐ฆ ๐น ๐ฌ ๐๏ธ ๐ซ ๐ก ๐ ๐
๐ท๏ธ ๐ณ๏ธ ๐จโ๐ป ๐ผ ๐ฉ โฑ๏ธ ๐งโ๐คโ๐ง โ๏ธ ๐๏ธ ๐ญ ๐ ๐ผ ๐ ๐ ๐จ๏ธ โจ ๐ซ ๐ ๐ญ ๐ ๐งฎ ๐ค โฐ |
๐ค Users ๐ฅ Organizations |
diff --git a/tests/cases/splatoon.plugin.yml b/tests/cases/splatoon.plugin.yml
new file mode 100644
index 00000000..fe51488c
--- /dev/null
+++ b/tests/cases/splatoon.plugin.yml
@@ -0,0 +1 @@
+[]
diff --git a/tests/secrets.json b/tests/secrets.json
index 9ac41063..e251769e 100644
--- a/tests/secrets.json
+++ b/tests/secrets.json
@@ -12,5 +12,6 @@
"GOOGLE_MAP_TOKEN": "MOCKED_TOKEN",
"STOCK_TOKEN":"MOCKED_TOKEN",
"CHESS_TOKEN":"MOCKED_TOKEN",
+ "SPLATOON_TOKEN":"{}",
"POOPMAP_TOKEN":"MOCKED_TOKEN"
}
\ No newline at end of file