GithubHelp home page GithubHelp logo

cateiru / line-alert-bot Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 4.76 MB

気象庁XML電文から地震・津波情報を取得してLINEに転送します。 new-> https://github.com/earthquake-alert/earthquake-alert

License: MIT License

Shell 0.46% Python 99.54%
python earthquake line

line-alert-bot's Introduction

LINE-alert-bot

python last_commit DeepSource 友だち追加

🇯🇵 | 🇺🇸

image

TL;DR

気象庁から地震のデータを取得してLINEにpostします。

📢 送信する内容

名称 内容
震度速報 本文、エリアごとの震度、注釈
震源・震度に関する情報 本文、震源地、マグニチュード、最大震度、注釈
震源に関する情報 本文、震源地、マグニチュード、注釈
緊急地震速報 (予報) 本文
緊急地震速報 (警報) 本文、エリア
津波予報 本文
津波注意報 本文、エリア
津波警報 本文、エリア
大津波警報 本文、エリア

💻 環境

  • Mac OS
  • Ubuntu 18.04

Windowsは動作未確認

⚙ 依存関係のインストール

Pipenvからインストール

pip install pipenv

# pipenvの仮想環境上にインストール
pipenv install

# PC上にインストール
pipenv install --system --deploy

🚀 実行

友だち追加

# 実行
python src/main.py

# サーバー(Ubuntu)などで
nohup python3 src/main.py --line-token [token] &

✅ 静的解析

  • Pylint
  • mypy
  • flake8
pipenv install --dev
pipenv shell
sh ./analysis.sh

📥 PRを出す際の注意点

  • 静的解析をすべてクリアさせてください。
  • Python DocstringをGoogleスタイル形式で記述してください。

⚖ ライセンス

MIT License

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.