Send notification when your website is down.
Project description
Down notifier
Usage
python -m down-notifier <config.json>
Example json config in "examples" folder.
from down_notifier import Checker, Site
from down_notifier.channel import TelegramChannel
channel = TelegramChannel(
name="channel_name",
message="{} - {}",
token="token",
chats=["chat_id_1", "chat_id_2"],
)
site = Site(
name="site_name",
url="http://example.com",
status_code=200,
timeout=60,
channels=[channel],
)
checker = Checker([site])
checker.start_loop()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
down-notifier-0.1.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for down_notifier-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4233d3d5ce85cff7b8a7873b572acf20159d9e1b1dae2ace379edaecb11fe3 |
|
MD5 | 2e1e475d67ab8153a1dcf7466e143c6b |
|
BLAKE2b-256 | 0045526f13399ee091dbc519c18b4ca02a0c070fe1e1ebb2174f127cc9e95cb2 |