Commit graph

40 commits

Author SHA1 Message Date
d-mcknight
7e03144365
Influxdb2 (#3)
* #203

* Update docker compose to specify influxdb:1.8.4

* Update requirements to use urllib3==1.26.5

* updated to support Radarr and Sonarr V3 Api

* bump requirements for requests

* Fix Sonarr & Radarr V3 API /queue endpoint (#220)

* Fix lint issues

* More lint fixes

* Update Sonarr structures

* Add Overseerr Support (#210)

* Remove duplicate structures

* update changelog to reflect v1.7.7 changes

* Add IP data to tautulli #202

* add missing ip address in tautulli

* Fixed: Streamlined API calls to Radarr and Sonarr (#221)

* Fixed: Sonarr Data pull issues (#222)

* Fix Sonarrr calendar

* Update lidarr structure (#225)

Added missing arguments to Lidarr structure

Fixes #223

* Clean up request totals. Upstream change sct/overseerr#2426

* Cleanup blank space

* Fix requested_date syntax.

* Fix requested_date for Overseerr tv and movie

* Fix overseerr config refernces

* Fix overseerr structures

* Update intparser to accommodate changes to config structure

* Cleanup overseerr data collection

* Fix SERVICES_ENABLED in varken.py to acomidate overseerr

* Fixed: Sonarr/Lidarr Queues (#227)

* Change sonarr queue structures to str

* Fixed: Multipage queue fetching

* Update historical tautulli import (#226)

* Fixed: Sonarr perams ordering

* Fixed: Proper warnings for missing data in sonarr and radarr

* Added: Overseerr ENVs to docker compose.

* Added: Logging to empty/no data returns

* Update Sonarr & Lidarr Structs to match latest API changes (#231)

* Add support for estimatedCompletionTime in LidarrQueue

* Add support for tvdbId in SonarrEpisode struct

* Fix typo in docker yml

* Rename example url for overseerr in docker yml

* Update radarr structures to inclue originalLanguage

* Update radarr structures to include addOptions

* Update radarr structures to include popularity

* fix(ombi): Update structures.py (#238)

* feat(docker): remove envs from example

* fix(logging): remove depreciation warning. Var for debug mode (#240)

* fix(build): bump schedule version to 1.1

* fix(build): bump docker python version

* fix(dep): update requests and urllib3

* fix(sonarr): ensure invalid sonarr queue items are just skipped over - fixes #239 (#243)

* add branch to build inputs

* update pipeline badge

* Update automation

* Add influxdb 2 client

* Add structure for influxdb 2 params

This contains all the data needed for connecting and writing to an InfluxDB2 server

* Parse influxdb 2 config data

* Add influxdb2 manager class

This stores the data needed for InfluxDB2, and has a single `write_points` function on this that takes an array of points to add to the database

* Use the correct db manager for varken

* Add influxdb2 to the example varken config file

* Create influx bucket if it doesn't exist

* Update InfluxDB type on README

* Clean up linting errors

* Wrap create bucket in try/catch

* Use bucket given in ini file

* Log exception to troubleshoot errors

* Allow configured influx2 address as URL (no port)

* Bypass validity check to troubleshoot

---------

Co-authored-by: mal5305 <malcolm.e.rogers@gmail.com>
Co-authored-by: samwiseg0 <2241731+samwiseg0@users.noreply.github.com>
Co-authored-by: Robin <19610103+RobinDadswell@users.noreply.github.com>
Co-authored-by: tigattack <10629864+tigattack@users.noreply.github.com>
Co-authored-by: Stewart Thomson <stewartthomson3@gmail.com>
Co-authored-by: Cameron Stephen <mail@cajs.co.uk>
Co-authored-by: MDHMatt <10845262+MDHMatt@users.noreply.github.com>
Co-authored-by: Nathan Adams <dinnerbone@dinnerbone.com>
Co-authored-by: Nicholas St. Germain <nick@cajun.pro>
Co-authored-by: Gabe Revells <gcrevell@mtu.edu>
2023-06-22 21:58:21 -07:00
samwiseg0
55fd938f96 Add artists count to Tautulli payload. Fixes #163 2020-01-02 11:44:23 -05:00
samwiseg00
6e1069d6d1 Fix formatting issues 2019-10-08 11:15:25 -04:00
JonnyWong16
4f5750ab16 Don't need to remove key from Tautulli sessions dict anymore 2019-10-07 13:51:39 -07:00
JonnyWong16
93f7628874 Make helper.itemgetter_with_default function return a tuple to act more like operator.itemgetter 2019-10-07 13:46:38 -07:00
JonnyWong16
fa4b5eec63 Use itemgetter_with_default helper function for Tautulli sessions 2019-10-07 13:10:29 -07:00
JonnyWong16
ea563f7a8e Fix to only use NamedTuple fields from TautulliStream
* Allow new fields to be added to Tautulli API without breaking Varken
2019-10-07 11:48:13 -07:00
samwiseg0
89a51e944a Apple... 2019-09-22 13:51:58 -04:00
samwiseg0
9eb58a7b02 Make platform overrides more in line with what plex should have made them 2019-09-22 13:50:57 -04:00
samwiseg0
2e3cfcde81 Add product to data sent to influx 2019-09-20 13:33:26 -04:00
samwiseg0
404b8bc25f Remove product version from historical import 2019-09-20 13:18:08 -04:00
samwiseg0
e4bcc0d903 Enhance platform overrides 2019-09-20 13:13:16 -04:00
samwiseg0
1dd6e494cc Use full resolution when applicable in tautulli 2019-09-19 23:37:54 -04:00
samwiseg0
641ab7f7ae Fix date compare for history gathering in Tautulli 2019-04-30 09:30:26 -04:00
Nicholas St. Germain
640989e495 allow historical import of tautulli 2019-04-29 14:27:57 -05:00
samwiseg0
c42a0b58e4 Add album and track totals to artist library from Tautulli #127 2019-04-20 09:30:17 -04:00
samwiseg0
f9f0953657 Cleanup unknown locations 2019-03-29 21:49:52 -07:00
samwiseg0
07e4adbdb8 Add new "relayed" and "secure" to Tautulli data pushed to influx #114 2019-03-11 18:46:50 -04:00
Nicholas St. Germain
255a2cc199 cleanup 2019-01-09 15:57:03 -06:00
samwiseg0
50c65ef5ac Cleanup external IP lookup to only happen once 2019-01-07 23:12:34 -08:00
samwiseg0
8580ce02a9 Remove erroneous key from Tautulli sessions 2019-01-07 23:11:55 -08:00
Nicholas St. Germain
5ba5e6eda1 Feature added: Unifi. #79 2019-01-04 15:30:27 -06:00
samwiseg0
bf20f84224 Better error checking for failback_ip 2019-01-01 23:41:23 -05:00
Nicholas St. Germain
c95f7519a5 add ability to filter by encoding/decoding status 2018-12-29 22:04:39 -06:00
Nicholas St. Germain
67b98d57ea added stats pull from tautulli -,- 2018-12-18 20:30:04 -06:00
Nicholas St. Germain
556109e8c5 v 2018-12-17 23:47:29 -06:00
Nicholas St. Germain
61fcf3b80c major pep8 cleanup.
funneled scope of imports where possible
fixed #59
Added fstrings where possible
added logging both temporarily and in secondary places
2018-12-17 19:12:37 -06:00
samwiseg0
e70414abc7 Fix spacing 2018-12-12 22:39:48 -05:00
samwiseg0
c16262aba6 Add sanity check for ip_address_public 2018-12-12 22:26:56 -05:00
Nicholas St. Germain
2ec2eda971 made time local to the function. Fixes #56 2018-12-11 00:01:24 -06:00
Nicholas St. Germain
78ce399f33 passed data folder to tautulli for helper functions. Fixes #46 2018-12-09 22:56:09 -06:00
Nicholas St. Germain
743f35842e made more verbose errors for TypeError 2018-12-06 12:04:02 -06:00
Nicholas St. Germain
59bfb4a567 added logger to all subclasses, and added exception handling for structure creation 2018-12-06 11:39:51 -06:00
Nicholas St. Germain
b27066a213 enhancement: moved logger to class as it should be.
also fixed a typo
2018-12-06 11:17:57 -06:00
samwiseg0
308cca4c1b Add exception logging for tautulli 2018-12-05 11:52:42 -05:00
samwiseg0
8245dfd69c Move logger and add --debug 2018-12-05 00:43:15 -05:00
Nicholas St. Germain
002e7b65c1 removed all traces of get_sessions and consolidated to get_activity 2018-12-04 21:52:24 -06:00
Nicholas St. Germain
18a5fdacba fixed clean_check of server_ids, fixed under-indented radarr get_movie,
and added __repr__ for cleaner logging
2018-12-04 21:17:33 -06:00
samwiseg0
50c1be7e41 Changes to logging tautulli 2018-12-04 19:14:08 -05:00
Nicholas St. Germain
8b2056ad66 swapped capitalization 2018-12-04 10:45:18 -06:00
Renamed from Varken/tautulli.py (Browse further)