{"id":20170625,"url":"https://github.com/nikkou-0814/earthsaid","last_synced_at":"2025-05-07T00:33:45.872Z","repository":{"id":241071177,"uuid":"804208831","full_name":"nikkou-0814/EarthSaid","owner":"nikkou-0814","description":"地震情報をDiscordに送信","archived":false,"fork":false,"pushed_at":"2024-11-06T03:10:01.000Z","size":1280,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-06T04:19:54.022Z","etag":null,"topics":["discord-py","earthquake","eew","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikkou-0814.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-22T06:52:09.000Z","updated_at":"2024-11-06T03:10:05.000Z","dependencies_parsed_at":"2024-06-03T06:25:45.394Z","dependency_job_id":"0e81ae0f-53c1-400a-9685-3da2007bc6c8","html_url":"https://github.com/nikkou-0814/EarthSaid","commit_stats":null,"previous_names":["nikkou-0814/earth-said-bot","nikkou-0814/earthsaid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkou-0814%2FEarthSaid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkou-0814%2FEarthSaid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkou-0814%2FEarthSaid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkou-0814%2FEarthSaid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikkou-0814","download_url":"https://codeload.github.com/nikkou-0814/EarthSaid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224548199,"owners_count":17329598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-py","earthquake","eew","python"],"created_at":"2024-11-14T01:19:59.964Z","updated_at":"2024-11-14T01:20:00.511Z","avatar_url":"https://github.com/nikkou-0814.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EarthSaid\n\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"screenshot.png\" alt=\"Kyoshin Report BOT Screenshot\" style=\"max-width: 100%; height: auto;\"\u003e\n\u003c/div\u003e\n※現在のものではありません\n\n\u003e [!WARNING]\n\u003e## 始める前に\n\u003e プログラミング弱者が作ったコードなのでエラーが発生する可能性があります。\n\u003e 環境によっては起動できない可能性があります。\n\n## 環境構築\n\n\u003e [!WARNING]\n\u003e python3 がインストールされている前提です。\n\n### クローン\n\nGitHub からリポジトリをクローンします。\n\n```bash\ngit clone https://github.com/nikkou-0814/Earth-Said-BOT.git\n```\n\n### 環境変数\n\n1. .env.exampleファイルをコピーします。\n\n2. ファイル名を`.env`に変更\n\n2. Discord BOT のトークンとチャンネルIDを記載します。\n\n```env\nTOKEN=\u003cDISOCRD_TOKEN\u003e\n\nChannelID=\u003cDISCORD_ChannelID\u003e\n```\n\n## 依存関係のインストールと起動\n\n```bash\npip install -r requirements.txt\n```\n```bash\npython bot.py\n```\n\n## 情報送信条件\n### 使用方法\n`.env`に以下を追加\n```env\nForecastWarning=\u003cForecast,Warning,All\u003e\n```\n\n`Forecast`、`Warning`、`All`から一つ選択\n\n### Forecast\n\n`Forecast`の場合は緊急地震速報（予報）のみ送信します。\n\n### Warning\n\n`Warning`の場合は緊急地震速報（警報）のみ送信します。\n\n### All\n\n`All`の場合はすべての緊急地震速報を送信します。\n\n## 震源やマグニチュードの精度情報\n`.env`に以下を追加\n```env\nAccuracyBoolean=\u003cBoolean\u003e\n```\n`True`または`False`から選択\n### True\n`True`の場合は震源の精度、深さの精度、マグニチュードの精度をEEWのメッセージに追加します。\n\n### False\n`False`の場合は震源の精度、深さの精度、マグニチュードの精度をEEWのメッセージに追加しません。\n\n## ```testdata.json```の記述(Wolfx APIの仕様)\n### このリポジトリを改造、改良する方向け\n\u003e [!NOTE]\n\u003e 一部翻訳がおかしい項目があります\n\n|**項目**|**説明**|**コード内で使用しているか**|\n|--------|--------|------------------------|\n|**type**|JMA_EEW|NO|\n|**title**|緊急地震速報|NO|\n|**codeType**|緊急地震速報の説明|NO|\n|**issueSource**|発表機関|NO|\n|**issueStatus**|状態|NO|\n|**eventID**|イベントID|NO|\n|**serial**|報数|YES|\n|**announcedTime**|発表時間|YES|\n|**originTime**|地震発生時間|YES|\n|**hypocenter**|震源地|YES|\n|**latitude**|震源地の緯度|NO|\n|**longitude**|震源地の経度|NO|\n|**magnitude**|マグニチュード|YES|\n|**depth**|震源の深さ|YES|\n|**maxIntensity**|最大震度|YES|\n|**accuracyEpicenter**|震央の精度|YES|\n|**accuracyDepth**|震源の深さの精度|YES|\n|**accuracyMagnitude**|マグニチュードの精度|YES|\n|**maxIntChangeString**|最大震度の変更に関する説明|NO|\n|**maxIntChangeReason**|最大震度の変更理由|NO|\n|**warnAreaChiiki**|警報が出された地域|YES|\n|**warnAreaShindo1**|地域の最大震度|NO|\n|**warnAreaShindo2**|地域の最小震度|NO|\n|**warnAreaTime**|警報が出された時間|NO|\n|**warnAreaType**|警報の種類（「予報」/「警報」）|YES|\n|**warnAreaArrive**|地震波が到達したか|NO|\n|**isSea**|海域の地震か|NO|\n|**isTraining**|訓練か|NO|\n|**isAssumption**|仮定震源か|YES|\n|**isWarn**|警報か|YES|\n|**isFinal**|最終報か|YES|\n|**isCancel**|取消報か|YES|\n|**originalText**|気象庁からの原文|NO|\n\n## 注意\nこのリポジトリを使用する際に発生した\u003cins\u003e損害については、私は責任を負いません\u003c/ins\u003e。十分に注意してご利用ください。\n\n\u003e [!WARNING]\n\u003e## テストデータに関する注意\n\u003eテストデータは2024年6月3日午前6時31分頃発生した石川県能登地方を震源とする最大震度5強を観測した地震のデータです。\n\u003e\n\u003eテストデータは本来開発をしやすくする目的で導入しています。（```@silent```でのメッセージするようにしています。）\n\u003e\n\u003eこのリポジトリ内のプログラムを改造してテストデータであることを知らせる記述を削除し、\n\u003eサーバーメンバーを混乱させる行為は絶対にしないでください。\n\n## 謝礼\n\n### 地震情報API \u003e P2PQuake JSON API v2\n\n### 緊急地震API \u003e Wolfx API\n\n### テストデータ \u003e dmdata.jp 緊急地震速報イベント一覧 より一部改変\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkou-0814%2Fearthsaid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikkou-0814%2Fearthsaid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkou-0814%2Fearthsaid/lists"}