aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-11-02 21:29:25 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-11-02 21:59:29 +0300
commiteb970844576f0f9d84b5a385f615582b50e0afa9 (patch)
tree184992ca7371a48e96afdc88dbe57ab998df59e7 /README.md
parent3346b29044740090d4ecee0056e456e90888c218 (diff)
implement AC charging program
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7a3e6e9..bf5f0fc 100644
--- a/README.md
+++ b/README.md
@@ -20,8 +20,12 @@ The bot accepts following parameters:
* ``--token`` — your telegram bot token (required)
* ``--users-whitelist`` — space-separated list of IDs of users who are allowed
to use the bot (required)
+* ``--notify-to`` — space-separated list of IDs of users who need to be notified of
+ monitoring programs events
+* ``--ac-current-range`` (default is `(10, 30)`)
* ``--inverterd-host`` (default is `127.0.0.1`)
* ``--inverterd-port`` (default is `8305`)
+* ``--verbose``
## Launching with systemd
@@ -31,6 +35,7 @@ Create environment configuration file `/etc/default/inverter-bot`:
```
TOKEN="YOUR_TOKEN"
USERS="ID ID ID ..."
+NOTIFY_USERS="ID ID ID..."
PARAMS="" # here you can pass other options such as --inverterd-host
```
@@ -46,7 +51,7 @@ EnvironmentFile=/etc/default/inverter-bot
User=user
Group=user
Restart=on-failure
-ExecStart=python3 /home/user/inverter-bot/inverter-bot --token $TOKEN --users-whitelist $USERS $PARAMS
+ExecStart=python3 /home/user/inverter-bot/inverter-bot --token $TOKEN --users-whitelist $USERS --notify-to $NOTIFY_USERS $PARAMS
WorkingDirectory=/home/user/inverter-bot
[Install]