Crates.io | ats-monitoring |
lib.rs | ats-monitoring |
version | 1.5.4 |
source | src |
created_at | 2021-10-07 18:31:37.003314 |
updated_at | 2022-08-18 17:20:54.309916 |
description | Application for monitoring and reporting of engineering systems, sending notifications via Telegram-bot, API SMS gateway. |
homepage | |
repository | https://github.com/stepanov-denis/ats-monitoring/ |
max_upload_size | |
id | 461904 |
size | 20,299,091 |
Application for monitoring and reporting of engineering systems, sending notifications via Telegram-bot, API SMS gateway
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
For Windows, visit this page
# Ubuntu
$ sudo apt-get install libssl-dev
# Fedora
$ sudo dnf openssl-devel
$ git clone https://github.com/stepanov-denis/ats-monitoring.git
# For example:
GATEWAY_STR_CONNECTION= "URL with your token"
# For example:
TG_BOT_TOKEN = "your token"
# For example:
POSTGRES_USERNAME = "postgres"
POSTGRES_PASSWORD = "mysecretpassword"
POSTGRES_DB = "postgres"
POSTGRES_HOSTNAME = "postgresql"
POSTGRES_PORT = "5432"
# For example:
# IP adress PLC TRIM5
IP_TRIM5 = "ip_adress:port"
# generator_work modbus adress
TRANSMITTED_WORK = "6"
# connection modbus adress
CONNECTION = "19"
$ cd ats-monitoring && cargo run --release
# For example:
$ RUST_LOG=debug cargo run --release
$ RUST_LOG=debug cargo run --release > log.txt
$ docker compose up -d
$ docker compose down
$ docker compose down --volumes
Сreate and save the report in the form you need in Orange Data Mining
Check your phone for SMS messages from ClickSend
To track the instantaneous values of the variables of the automatic reserve input control system, enter the command (or select an item in the menu).
/ats
To track the instantaneous values of the variables of the automatic winter garden management system, enter the command (or select an item in the menu)
/wintergarden
# For example:
disconnecting power from the mains,
successful start of the generator
or
# For example:
disconnecting power from the mains,
the generator startup failed
# For example:
the power supply from the power grid has been restored,
the generator is working fine
or
# For example:
the power supply has not been restored,
the generator is faulty
# For example:
Alarm! The generator is faulty! Urgently perform service work!
the efficiency of the generator in the mode
of transmission of electricity from the power grid has been restored