Skip to content

Commit

Permalink
Fix req
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Feb 24, 2024
1 parent db7b844 commit 5b8530a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Keenetic Wi-Fi Telegram Logger

Simple python script which sends a Telegram message when a device is connected to Wi-Fi or disconnected from Wi-Fi
Simple python script which sends a Telegram message when a device is connected to Wi-Fi or disconnected from Wi-Fi

## How to use (linux)

Clone repo:
```shell
git clone https://github.com/annndruha/keenetic_wifi_telegram_logger
```

Create in repo folder .env-file:
```shell
touch .env
```

Fill your values in .env-file (`nano .env` etc.):
```text
WIFI_NAME=human_name_for_message
WIFI_HOST=https://yourdomain.keenetic.pro
WIFI_LOGIN=admin
WIFI_PASSWORD=password
TG_BOT_TOKEN=123456:ABCDEFGHIJKLMNFSSJFKAGS
TG_CHAT_ID=123456789
```

Run container:
```shell
docker compose up -d
```
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests
dotenv-python
python-dotenv

0 comments on commit 5b8530a

Please sign in to comment.