Skip to content

script to store metrics from Nextys dcw20 in TimescaleDB

Notifications You must be signed in to change notification settings

titus672/nextys_monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is the point of this repo?

This is a set of scripts for storing the metrics from the Nextys dcw20 in a timescale database

Installation guide

  1. clone the repo
  • git clone https://github.com/titus672/nextys_monitoring.git
  1. update and install prereqs
  • sudo apt update && sudo apt install python3.11-venv python3-dev libpq-dev
  1. move into the repo and create the python virtual environment
  • cd nextys_monitoring
  • python3 -m venv venv
  1. activate the virtual environment and install python prereqs
. venv/bin/activate
pip install -r requirements.txt

Configuration guide

  1. cd into the src dir and configure the program
cd src
cp config_example.json config.json
vim config.json
python lib/psql_functions.py -v
  1. copy the nextys_monitor.service file and enable it
sudo cp nextys_monitor.service /etc/systemd/system/
sudo systemctl daemon-reload && sudo systemctl enable --now nextys_monitor

Notes

If the device is in the db but hasn't been deployed yet, ie the bogus alerts are annoying, the fix for now is UPDATE sensor_metadata SET batt_low = 0, ac_down = 0 WHERE id = 7;

About

script to store metrics from Nextys dcw20 in TimescaleDB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages