From db201a470fda856e38afb8564a766812060d99de Mon Sep 17 00:00:00 2001 From: Vitaliy Skrypnyk Date: Wed, 29 Jul 2020 20:27:51 +0300 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index ea5a79c..a7034e2 100644 --- a/README.md +++ b/README.md @@ -69,4 +69,19 @@ services: restart: always ``` +# Run on router +* Copy repository content to your router `/opt/home/keenetic-grafana-monitoring` +* Install Python `opkg install python3 python3-pip` +* Install dependencies ` pip install -r requirements.txt` +* Create script for autorun `/opt/etc/init.d/S99keeneticgrafana` + +```$bash +#!/bin/sh + +[ "$1" != "start" ] && exit 0 + +nohup python /opt/home/keenetic-grafana-monitoring/keentic_influxdb_exporter.py >/dev/null 2>&1 & +``` + +* Run `/opt/etc/init.d/S99keeneticgrafana start` \ No newline at end of file