The Bot sends notifications about measurement errors by e-mail and/or telegram channel. Information about errors is extracted from the measurement protocol. Moreover, users can send any messages from measurement scripts using the following code:
from bot import messangers messangers.send_message("<message text>")
The Bot consists of the three modules and configuration file.
The package consists form the following modules:
configuration file in json format:
Configuration file example:
{ "mail": { "user": "sonix-bot", "password": "your_password", "port": 25, "server": "smtp.nf.jinr.ru", "recipients": [ "somebody@mail_address", "another_if_neccessary@mail_addres" ] }, "telegram": { "bot-id": "your_telegram_bot_id", "channel-id": "telegram channel_id" } }
Bot installation on instruments consists of the following steps: