{"id":16272608,"url":"https://github.com/jemus42/tauturri","last_synced_at":"2025-08-01T21:04:24.245Z","repository":{"id":56937197,"uuid":"121064812","full_name":"jemus42/tauturri","owner":"jemus42","description":"A Tautilli/PlexPy API wrapper for R","archived":false,"fork":false,"pushed_at":"2024-02-01T08:24:43.000Z","size":4635,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T15:57:02.500Z","etag":null,"topics":["api-client","cran","plexpy","r","r-package","rstats","tautulli"],"latest_commit_sha":null,"homepage":"https://jemus42.github.io/tauturri/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jemus42.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-10T23:46:14.000Z","updated_at":"2022-09-18T16:44:17.000Z","dependencies_parsed_at":"2024-11-07T01:16:03.896Z","dependency_job_id":null,"html_url":"https://github.com/jemus42/tauturri","commit_stats":{"total_commits":120,"total_committers":2,"mean_commits":60.0,"dds":"0.14166666666666672","last_synced_commit":"2f23895985d962f18b1d9ea3977fefdfbca714f0"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemus42%2Ftauturri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemus42%2Ftauturri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemus42%2Ftauturri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jemus42%2Ftauturri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jemus42","download_url":"https://codeload.github.com/jemus42/tauturri/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247877031,"owners_count":21011148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","cran","plexpy","r","r-package","rstats","tautulli"],"created_at":"2024-10-10T18:18:26.804Z","updated_at":"2025-04-08T15:49:54.480Z","avatar_url":"https://github.com/jemus42.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n\nlibrary(tauturri)\nlibrary(ggplot2)\nlibrary(tidyr)\n```\n# tauturri\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/jemus42/tauturri/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jemus42/tauturri/actions/workflows/R-CMD-check.yaml)\n[![Coverage status](https://codecov.io/gh/jemus42/tauturri/branch/master/graph/badge.svg)](https://codecov.io/github/jemus42/tauturri?branch=master)\n[![CRAN status](https://www.r-pkg.org/badges/version/tauturri)](https://cran.r-project.org/package=tauturri)\n[![CRAN downloads](https://cranlogs.r-pkg.org/badges/grand-total/tauturri)](https://cran.r-project.org/package=tauturri)\n[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)\n\u003c!-- badges: end --\u003e\n\nThe goal of `tauturri` is to get data out of [**Tautulli**](https://github.com/Tautulli/Tautulli) (formerly **PlexPy**) as simply as possible.\n\nThe project is still pretty young, and while it's reasonably functional, there might still be some issues. At least it passes all the tests, I guess?\n\n## Installation\n\nCurrent stable version on CRAN:\n\n```r\ninstall.packages(\"tauturri\")\n```\n\nCurrent development version on GitHub:\n\n```r\nif (!(\"remotes\" %in% installed.packages())){\n  install.packages(\"remotes\")\n}\n\nremotes::install_github(\"jemus42/tauturri\")\n```\n\n## Setup\n\nTo use this package, you'll need a working instance of [Tautulli](http://tautulli.com/), enable the API and store the URL and your API key.\n\nIn your `~/.Renviron`, set the following:\n\n```\n# Tautulli\ntautulli_url=\u003cTautulli URL (with port, if necessary)\u003e\ntautulli_apikey=\u003cTautilli API key\u003e\n```\n\nThat's it.  \nAlternatively use `Sys.setenv()` to set the appropriate values in a script.\n\n## Server Info\n\n```{r server_info}\ninfo \u003c- get_servers_info()\n\n# Probably shouldn't show URL etc.\nnames(info)\ninfo[c(\"name\", \"version\")]\n```\n\n\n## `get_plays_by` [date|dayofweek|...]\n\nAll plays in the current year, per day:\n\n```{r get_plays_by_date}\nplays \u003c- get_plays_by_date(time_range = lubridate::yday(lubridate::now()))\n\nplays |\u003e\n  gather(category, playcount, TV, Movies, Music) |\u003e\n  ggplot(aes(x = date, y = playcount, fill = category)) +\n  geom_col() +\n  scale_fill_brewer(\n    palette = \"Set1\",\n    breaks = c(\"Movies\", \"TV\", \"Music\")\n  ) +\n  labs(\n    title = \"Plex Plays by Date\",\n    subtitle = \"Showing Movie, TV and Music Categories\",\n    x = \"Date\", y = \"Plays\", fill = \"Category\"\n  ) +\n  theme_minimal() +\n  theme(legend.position = \"top\")\n```\n\n... per day of week:\n\n```{r get_plays_by_dayofweek}\nplays \u003c- get_plays_by_dayofweek(time_range = lubridate::yday(lubridate::now()))\n\nplays |\u003e\n  gather(category, playcount, TV, Movies, Music) |\u003e\n  ggplot(aes(x = day, y = playcount, fill = category)) +\n  geom_col() +\n  scale_fill_brewer(\n    palette = \"Set1\",\n    breaks = c(\"Movies\", \"TV\", \"Music\")\n  ) +\n  labs(\n    title = \"Plex Plays by Day of Week\",\n    subtitle = \"Showing Movie, TV and Music Categories\",\n    x = \"Day\", y = \"Plays\", fill = \"Category\"\n  ) +\n  theme_minimal() +\n  theme(legend.position = \"top\")\n```\n\n... and per hour of day:\n\n```{r get_plays_by_hourofday}\nplays \u003c- get_plays_by_hourofday(time_range = lubridate::yday(lubridate::now()))\n\nplays |\u003e\n  gather(category, playcount, TV, Movies, Music) |\u003e\n  ggplot(aes(x = hms::hms(hours = hour), y = playcount, fill = category)) +\n  geom_col() +\n  scale_fill_brewer(\n    palette = \"Set1\",\n    breaks = c(\"Movies\", \"TV\", \"Music\")\n  ) +\n  labs(\n    title = \"Plex Plays by Hour of Day\",\n    subtitle = \"Showing Movie, TV and Music Categories\",\n    x = \"Hour\", y = \"Plays\", fill = \"Category\"\n  ) +\n  theme_minimal() +\n  theme(legend.position = \"top\")\n```\n\n## API Functions Not Yet Implemented\n\n```{r}\napi_functions \u003c- names(api_request(cmd = \"docs\")$data)\napi_functions \u003c- api_functions[grepl(\"^get_\", api_functions)]\nsort(api_functions[!(api_functions %in% getNamespaceExports(\"tauturri\"))])\n```\n\n## CoC\n\nPlease note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).  \nBy participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjemus42%2Ftauturri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjemus42%2Ftauturri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjemus42%2Ftauturri/lists"}