# inverter-bot This is a Telegram bot for querying information from an InfiniSolar V family of hybrid solar inverters. It supports querying general status, such as battery voltage or power usage, printing amounts of energy generated in the last days, dumping status or rated information and more. It requires Python 3.6+ or so. ## Requirements - **`inverterd`** from [inverter-tools](https://github.com/gch1p/inverter-tools) - **[`inverterd`](https://pypi.org/project/inverterd/)** python library - Python 3.6+ or so ## Configuration Configuration is stored in `config.ini` file in `~/.config/inverter-bot`. Config example: ``` token=YOUR_TOKEN admins= 123456 ; admin id 000123 ; another admin id isv_bin=/path/to/isv use_sudo=0 ``` Only users in `admins` are allowed to use the bot. ## Launching with systemd Create a service file `/etc/systemd/system/inverter-bot.service` with the following content (changing stuff like paths): ```systemd [Unit] Description=inverter bot After=network.target [Service] User=user Group=user Restart=on-failure ExecStart=python3 /home/user/inverter-bot/main.py WorkingDirectory=/home/user/inverter-bot [Install] WantedBy=multi-user.target ``` Then enable and start the service: ``` systemctl daemon-reload systemctl enable inverter-bot systemctl start inverter-bot ``` ## License MIT