Skip to content

Repository files navigation

irc-eew // EEW IRC/Slack bot

About

Receive EEW(Earthquake Early Warning) from Weathernews(WNI)'s paid service via TCP and Post to IRC/Slack channels.

How to use

-Write your configucation at config.yaml about WNI EEW and your IRC server(s)/channels or your Slack incoming-webhooks. -Start this script.

irc: in config.yaml is a list, so you can notify multiple IRC servers (unlike the original Perl version, which only supported one). Each entry's charset defaults to UTF-8 if omitted (the original Perl version defaulted to ISO-2022-JP, matching the author's own network at the time); set it to iso-2022-jp for a server/channel that still expects that encoding. There's no flood-control on the IRC side, matching the original.

For Docker: docker run -it --rm --mount type=bind,source=/usr/local/irc-eew/config,target=/conf,readonly ghcr.io/walkure/irc-eew:latest

EEW Viewer

A read-only web viewer for archived EEW telegrams (see logdir: above).

docker run -it --rm -p 8080:8080 --mount type=bind,source=/a/path/to/eewlog,target=/eewlog,readonly ghcr.io/walkure/eew-view:latest

Configure via environment variables:

name default description
EEW_DATA_DIR /eewlog/ path to EEW files
EEW_PATH_BASE ./ URI path base
EEW_VIEWER eew-show name of the detail-view route
EEW_LISTEN_ADDR :8080 address to listen on

FYI

*Written in Japanese only

Author

walkure at 3pf.jp

License

MIT License

About

Weathernewsの緊急地震速報を受信してSlack/IRCに流すbot

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages