Fork of Varken with InfluxDb v2 support and updated Docker automation
				
			
		| data | ||
| varken | ||
| .gitignore | ||
| .travis.yml | ||
| CHANGELOG.md | ||
| Dockerfile | ||
| README.md | ||
| requirements.txt | ||
| Varken.py | ||
| varken.systemd | ||
Varken
Dutch for PIG. PIG is an Acronym for Plex/InfluxDB/Grafana
Varken is a standalone command-line utility to aggregate data from the Plex ecosystem into InfluxDB. Examples use Grafana for a frontend
Requirements:
- Python3.6+
- Python3-pip
 
Quick Setup
- Clone the repository sudo git clone https://github.com/Boerderij/Varken.git /opt/Varken
- Follow the systemd install instructions located in varken.systemd
- Create venv in project cd /opt/Varken && /usr/bin/python3 -m venv varken-venv
- Install requirements /opt/Varken/varken-venv/bin/python -m pip install -r requirements.txt
- Make a copy of varken.example.initovarken.iniin thedatafoldercp /opt/Varken/data/varken.example.ini /opt/Varken/data/varken.ini
- Make the appropriate changes to varken.iniie.nano /opt/Varken/data/varken.ini
- Make sure all the files have the appropriate permissions sudo chown varken:varken -R /opt/Varken
- After completing the getting started portion of grafana, create your datasource for influxdb.
- Install grafana-cli plugins install grafana-worldmap-panel
Docker
Repo is included in Boerderij/docker-Varken
Example
docker run -d \
  --name=varken \
  -v <path to data>:/config \
  -e PGID=<gid> -e PUID=<uid>  \
  boerderij/varken:nightly