Fork of Varken with InfluxDb v2 support and updated Docker automation
dashboard | ||
data | ||
Legacy | ||
Varken | ||
.gitignore | ||
README.md | ||
requirements.txt | ||
varken.py | ||
varken.service |
Varken
Dutch for PIG. PIG is an Acronym for Plex/InfluxDB/Grafana
Varken is a standalone commmand-line utility that will aggregate date from the plex ecosystem into influxdb to be displayed in grafana
Requirements /w install links: Grafana, Python3, InfluxDB

Quick Setup (Varken Alpha)
- Clone the repository
sudo git clone https://github.com/DirtyCajunRice/grafana-scripts.git /opt/Varken
- Change ownership to current user
sudo chown $USER -R /opt/Varken/
- Switch to the testing branch
cd /opt/Varken && git checkout refactor-project
- Create venv in project
/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.ini
tovarken.ini
in thedata
foldercp /opt/Varken/data/varken.example.ini /opt/Varken/data/varken.ini
- Make the appropriate changes to
varken.ini
nano /opt/Varken/data/varken.ini
- Copy the systemd file
sudo cp /opt/Varken/varken.service /etc/systemd/system/
- Edit the username of the systemd file
sudo sed -i "s/username/$USER" /etc/systemd/system/varken.service
- start the service and enable it
systemctl start varken && systemctl enable varken
- After completing the getting started portion of grafana, create your datasource for influxdb. At a minimum, you will need the plex database.
- Install
grafana-cli plugins install grafana-worldmap-panel
- TODO:: Click the + on your menu and click import. Using the .json provided in this repo, paste it in and customize as you like.
Docker
Repo is included in si0972/grafana-scripts-docker
Example
docker create \
--name=grafana-scripts \
-v <path to data>:/Scripts \
-e PGID=<gid> -e PUID=<uid> \
si0972/grafana-scripts:varken