Fork of Varken with InfluxDb v2 support and updated Docker automation
Find a file
2018-12-03 23:47:46 -06:00
dashboard Add online users beta table 2018-08-31 15:11:38 -04:00
data changed default verify to false 2018-12-03 13:43:41 -06:00
Legacy ported ombi 2018-12-01 22:26:44 -06:00
Varken added ability to define data folder 2018-12-03 23:47:46 -06:00
.gitignore migrated radarr 2018-12-01 20:33:33 -06:00
README.md added ability to define data folder 2018-12-03 23:47:46 -06:00
requirements.txt Revert "added forced package imports" 2018-12-02 14:23:42 -06:00
varken.py added ability to define data folder 2018-12-03 23:47:46 -06:00
varken.service modified for venv 2018-12-02 14:52:55 -06:00

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 /w install links: Grafana, Python3, InfluxDB

Quick Setup (Varken Alpha)

  1. Clone the repository sudo git clone https://github.com/DirtyCajunRice/grafana-scripts.git /opt/Varken
  2. Change ownership to current user sudo chown $USER -R /opt/Varken/
  3. Switch to the testing branch cd /opt/Varken && git checkout refactor-project
  4. Create venv in project /usr/bin/python3 -m venv varken-venv
  5. Install requirements /opt/Varken/varken-venv/bin/python -m pip install -r requirements.txt
  6. Make a copy of varken.example.ini to varken.ini in the data folder cp /opt/Varken/data/varken.example.ini /opt/Varken/data/varken.ini
  7. Make the appropriate changes to varken.ini nano /opt/Varken/data/varken.ini
  8. Copy the systemd file sudo cp /opt/Varken/varken.service /etc/systemd/system/
  9. Edit the username of the systemd file sudo sed -i "s/username/$USER" /etc/systemd/system/varken.service
  10. start the service and enable it systemctl start varken && systemctl enable varken
  11. After completing the getting started portion of grafana, create your datasource for influxdb. At a minimum, you will need the plex database.
  12. Install grafana-cli plugins install grafana-worldmap-panel
  13. 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