From eb970844576f0f9d84b5a385f615582b50e0afa9 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 2 Nov 2021 21:29:25 +0300 Subject: implement AC charging program --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'README.md') 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] -- cgit v1.2.3