Giter Club home page Giter Club logo

splatoon-notion's Introduction

splatoon-notion

Demo

Splatoon2 のバトルやサーモンランのデータを自動で Notion に保存する Google App Script です。

DEMO

https://yutakobayashi.notion.site/Splatoon2-d66a5ae5905f4fc8b14636e138c4cc87

Usage

このスクリプトではイカリング 2の API を利用しています。この API の利用は推奨されていないため利用は自己責任でお願いします。

iksm_session

API へのアクセスを行うため iksm_session と呼ばれるトークンを取得します。

このトークンはプロキシツールでNintendo Switch Onlineの通信内容を表示したりiksm-chanと呼ばれるウェブアプリを利用することで取得できます。

ページの複製とデータベース id の取得

以下のページを Notion 上で複製しバトル、サーモンラン、ルール、ステージ、ゲームモード、ブキ、サブウェポン、スペシャル、ギア、ブランドの各データベースの id を取得します。

https://yutakobayashi.notion.site/Splatoon2-cc3b04c2ac22476fb5e189275e261247

プロパティの設定

Google Apps Script のクラシックエディターなどでプロパティを以下のように設定します。

  • "iksm_session": your iksm_session token
  • "notionToken": your Notion integration token
  • "battle_database": your Notion Battle Database id
  • "salmon_run_database": your Notion Salmon Run Database id
  • "mode_database": your Notion Game Mode Database id
  • "rule_database": your Notion Rule Database id
  • "stage_database": your Notion Stage Database id
  • "weapon_database": your Notion Weapon Database id
  • "subweapon_database": your Notion Sub Weapon Database id
  • "specialweapon_database": your Notion Special Weapon Database id
  • "gear_database": your Notion Gear Database id
  • "brand_database": your Notion Brand Database id
  • "discordWebHookURL": your Discord Webhook URL

定期実行

main 関数を定期実行することで自動で Notion にバトル履歴、サーモラン、使用したブキやギア、プレイしたステージなどのデータが自動的に作成されます。イカリング 2 の API の仕様上過去 50 件のバトルデータのみしか取得できないためデータが消えてしまう前に実行するといいでしょう。

TODO

  • ffmpeg と numpy と YouTube Data API の連携

splatoon-notion's People

Contributors

yutakobayashidev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

splatoon-notion's Issues

カバー画像が数日後に消える

Notion APIで画像のアップロードができないためリンクを直接指定しているがリンク先の画像が数日後に消えるようなのでCloud Storage等に保存するようにする

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.