From 770d13a77aef144e2fb7c49beaf1466d7ed41634 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Sun, 7 Nov 2021 20:41:02 +0200 Subject: [PATCH] Add more instructions to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 61a3e72..bc1c811 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # Load smartmontools attrlog files to PostgreSQL For luls and pretty Grafana graphs + +# Setup + + python3 -m venv venv + source venv/bin/activate + pip install -r requirements.txt + +# Create tables + + ./attrlogimport.py + +# Importing data + + find /var/lib/smartmontools -name 'attrlog.*' | xargs -n1 -P8 ./attrlogimport.py