{"id":57,"date":"2016-04-03T16:40:35","date_gmt":"2016-04-03T16:40:35","guid":{"rendered":"https:\/\/pure-media.info\/?p=57"},"modified":"2017-04-06T03:53:00","modified_gmt":"2017-04-06T03:53:00","slug":"how-to-install-plexpy-on-ubuntu-14-04-trusty-tahr","status":"publish","type":"post","link":"https:\/\/pure-media.info\/index.php\/2016\/04\/03\/how-to-install-plexpy-on-ubuntu-14-04-trusty-tahr\/","title":{"rendered":"How to install PlexPy on Ubuntu 14.04 (Trusty Tahr)"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/9my2668q34ci.png?ssl=1\" rel=\"attachment wp-att-58\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"58\" data-permalink=\"https:\/\/pure-media.info\/index.php\/2016\/04\/03\/how-to-install-plexpy-on-ubuntu-14-04-trusty-tahr\/9my2668q34ci\/\" data-orig-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/9my2668q34ci.png?fit=1357%2C925&amp;ssl=1\" data-orig-size=\"1357,925\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plexpy\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/9my2668q34ci.png?fit=300%2C204&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/9my2668q34ci.png?fit=800%2C545&amp;ssl=1\" class=\"aligncenter wp-image-58\" src=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/9my2668q34ci.png?resize=534%2C364&#038;ssl=1\" alt=\"plexpy\" width=\"534\" height=\"364\"><\/a><\/p>\n<p>A python based web application for monitoring, analytics and notifications for Plex Media Server (<a href=\"http:\/\/www.plex.tv\/\">www.plex.tv<\/a>).<\/p>\n<p>This project is based on code from <a href=\"https:\/\/github.com\/rembo10\/headphones\">Headphones<\/a> and <a href=\"https:\/\/github.com\/ecleese\/plexWatchWeb\">PlexWatchWeb<\/a>.<\/p>\n<ul>\n<li>PlexPy <a href=\"https:\/\/forums.plex.tv\/discussion\/169591\/plexpy-another-plex-monitoring-program\">forum thread<\/a><\/li>\n<\/ul>\n<h2>Features<\/h2>\n<ul>\n<li>Responsive web design viewable on desktop, tablet and mobile web browsers.<\/li>\n<li>Themed to complement Plex\/Web.<\/li>\n<li>Easy configuration setup (no separate web server required).<\/li>\n<li>Monitor current Plex Media Server activity.<\/li>\n<li>Fully customizable notifications for stream activity and recently added media.<\/li>\n<li>Top statistics on home page with configurable duration and measurement metric.<\/li>\n<li>Global watching history with search\/filtering &amp; dynamic column sorting.<\/li>\n<li>Full user list with general information and comparison stats.<\/li>\n<li>Individual user information including devices IP addresses.<\/li>\n<li>Complete library statistics and media file information.<\/li>\n<li>Rich analytics presented using Highcharts graphing.<\/li>\n<li>Beautiful content information pages.<\/li>\n<li>Full sync list data on all users syncing items from your library.<\/li>\n<li>And many more!!<\/li>\n<\/ul>\n<h3>Install<\/h3>\n<p>PlexPy will be installed to&nbsp;<code>\/opt\/plexpy<\/code>. (installing as root, for non-root users add sudo to the front of any command)<\/p>\n<p>First lets install GIT so we can get the source for PlexPy<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">apt-get install git-core<\/code><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cd \/opt<\/code><\/p>\n<p>Now lets download the software<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">git clone https:\/\/github.com\/drzoidberg33\/plexpy.git<\/code><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cd plexpy<\/code><\/p>\n<p>Now that we have it download, lets start it<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">python PlexPy.py<\/code><\/p>\n<h3>&nbsp;PlexPy will be loaded in your browser or listening @ http:\/\/localhost:8181<\/h3>\n<h2>Now lets setup PlexPy to start on boot using Upstart<\/h2>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano \/etc\/init\/plexpy.conf <\/code><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">description \"PlexPy upstart script\"\r\nauthor \"Reaper0fpower @ Pure-Media.info\"\r\n\r\n# What user to run as\r\nsetuid root\r\n\r\n# What group to run as\r\nsetgid plex\r\n\r\n# When to start the service\r\nstart on runlevel [2345]\r\n\r\n# When to stop the service\r\nstop on runlevel [016]\r\n\r\n# Automatically restart process if crashed\r\nrespawn\r\n\r\n# Start the process\r\nscript\r\nexec python \/opt\/plexpy\/PlexPy.py\r\nend script<\/pre>\n<p>Now just CTRL+X to save (if you get access denied make sure you are running this with elevated privileges)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A python based web application for monitoring, analytics and notifications for Plex Media Server (www.plex.tv). This project is based on<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[85],"tags":[39,12,31,40,41,43,10,35,2,36,38,11,9,42,8,34,7,37,32],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-tech-tip","tag-analytics","tag-create","tag-debian","tag-guide","tag-how","tag-how-to","tag-install","tag-notifications","tag-plex","tag-plexpy","tag-python","tag-setup","tag-tahr","tag-to","tag-trusty","tag-twitter","tag-ubuntu","tag-upstart","tag-watch"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/p7oBs4-V","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}