User Tools

Site Tools



en:websonix:bot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:websonix:bot [2021/01/26 13:50] blen:websonix:bot [2023/09/21 22:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== users notifying script about the measurement status ======+====== Script for users notification about the measurement status ======
  
 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: 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:
Line 20: Line 20:
 ==== Configuration file ==== ==== Configuration file ====
  
-Конфигурационный файл записывается в формате json, и отвечает за следующие параметры+configuration file in json format:
  
   - **mail** - e-mail configuration:   - **mail** - e-mail configuration:
     - **user** - user for e-mail authentication;     - **user** - user for e-mail authentication;
     - **password** - password for e-mail authentication;     - **password** - password for e-mail authentication;
-    - **port** - порт почтового сервера, через который будут отправляться почтовые сообщения+    - **port** - e-mail server port
-    - **server** - dns имя сервера, через который будет осуществляться почтовая рассылка+    - **server** - e-mail server ip or domain name
-    - **recipients** - список получателей для отправляемого письма.+    - **recipients** - e-mail recipients list.
   - **telegram** - telegram configuration:   - **telegram** - telegram configuration:
-    - **bot-id** - id бота для рассылки сообщений+    - **bot-id** - the id of the bot sending messages
-    - **channel-id** - id канала, на который стоит отправлять сообщения.+    - **channel-id** - the id of the channel for sending messages.
  
 Configuration file example: Configuration file example:
Line 54: Line 54:
 ===== Bot installation on instrument ===== ===== Bot installation on instrument =====
  
-Для подключения Bot на спектрометре необходимо установить соответствующий пакет, заполнить параметры в конфигурационном файле для отправки сообщений и настроить загрузку модуля logwatch.py в настройках Sonix+.+Bot installation on instruments consists of the following steps: 
 +  * Package installation; 
 +  * Configuring parameters for messages sending; 
 +  * Configuring loading module logwatch.py as Sonix+ module.
  
  
  
en/websonix/bot.1611658200.txt.gz · Last modified: (external edit)