mirror of
https://github.com/KevinMidboe/schleppeUPSConsumption.git
synced 2025-10-28 17:30:12 +00:00
Project requirements & README
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
config.yaml
|
||||
46
README.md
Normal file
46
README.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# Schleppe UPS Consumption
|
||||
|
||||
Pulls UPS power draw over ModBus and logs to ElasticSearch.
|
||||
|
||||
## Install
|
||||
Download repo:
|
||||
|
||||
```
|
||||
bash git clone https://github.com/kevinmidboe/schleppeUPSConsumption
|
||||
cd schleppeUPSConsumption
|
||||
```
|
||||
|
||||
Install python requirements:
|
||||
|
||||
```bash
|
||||
pip3 install -r requirements.txt
|
||||
```
|
||||
|
||||
## Configure
|
||||
Create copy of config and edit follow values:
|
||||
|
||||
```bash
|
||||
cp config.yaml.default config.yaml
|
||||
```
|
||||
|
||||
```yaml
|
||||
logger:
|
||||
name: schleppe_ups_consumption
|
||||
ch_level: INFO
|
||||
|
||||
modbus:
|
||||
host:
|
||||
port:
|
||||
|
||||
elastic:
|
||||
host:
|
||||
port:
|
||||
ssl:
|
||||
apiKey:
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
python3 apcWatts.py
|
||||
```
|
||||
14
config.yaml.default
Normal file
14
config.yaml.default
Normal file
@@ -0,0 +1,14 @@
|
||||
logger:
|
||||
name: schleppe_ups_consumption
|
||||
ch_level: INFO
|
||||
|
||||
modbus:
|
||||
host:
|
||||
port:
|
||||
|
||||
elastic:
|
||||
host:
|
||||
port:
|
||||
ssl:
|
||||
apiKey:
|
||||
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
pyModbusTCP==0.1.10
|
||||
PyYAML==6.0
|
||||
Reference in New Issue
Block a user