PlexWatch and PlexWatchWeb - install.sh - unRAID 5.* only (until webserver)


Recommended Posts

plexWatchWeb Install Script

Notify and Log 'Now Playing'+'Watched' content on a Plex Media Server + Recently Added content

 

No longer supported.  I have moved to docker as it is much more stable.

 

PlexWatch - https://forums.plex.tv/index.php/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/

PlexWatchWeb - https://forums.plex.tv/index.php/topic/82819-plexwatchweb-a-web-front-end-for-plexwatch/

Github - https://github.com/smdion/pw

 

Requires: WebServer running on SimpleFeatures or Dynamix, curl

 

Installs: PlexWatch (from GIT), PlexWatchWeb (from GIT), python2.7,git, trolley, make, perl, libidn, gcc, gcc-g++, libmpc, glibc, mpfr, kernel-headers, binutils, cpanm

 

How-To:

1. Install Script:

 

Install into default directories:

location=/mnt/cache/appdata

webroot=/mnt/cache/appdata/www

curl https://raw.github.com/smdion/pw/master/install.sh | sudo sh

 

Download install.sh and change the install directories:

https://raw.github.com/smdion/pw/master/install.sh

Than run install.sh

 

2. Modify PHP.ini of WebServer in SimpleFeatures or Dynamix

If changes are made to php.ini while WebServer is running, you will need to stop and restart the WebServer

 

/etc/httpd/php.ini - it will update necessary config files for Dyanmix (haven't tested for SF)

 

extension=curl.so
extension=sqlite.so
extension=sqlite3.so

 

I also changed the following line around line #996 of php.ini to fix the time display in plexWatchWeb.  US/Chicago is default is NOT correct syntax.

See this document for correct syntax if you are not CST - http://php.net/manual/en/datetime.configuration.php

 

date.timezone = "US/Central"

 

3. Edit /mnt/cache/appdata/plexWatch/config.pl

Change localhost to IP of unRAID

Change database location to /mnt/cache/appdata/plexWatch

Add myPlex username/pass

 

4. Config Settings PlexWatchWeb

Defaults for all except noted.

plexWatch Database - /mnt/cache/appdata/plexWatch/plexWatch.db

 

5. Push Notifications

uncomment needed dependencies in /boot/config/plugins/plexWatch/run.sh

sudo sh run.sh

 

Known Issues:

None

 

Qwerks:

If PlexWatch isn't updating run the following command

killall crond && crond

 

Change Log:

.0.1 - initial release

.0.2 - moved run.sh from /mnt/cache/appdata/plexWatch to /boot/config/plugins/plexWatch to allow for start on reboot.

      - organized install.sh and run.sh for it to work across reboot

.0.3 - added dependencies for push support

      - added check for cron job so if install script is run multiple times it will not add again

.0.4 - check if dependencies are installed before installing.  Fixed crontab issue.

.0.6 - persists across reboot.  Takes about 10 minutes after array mounts to finish installing

.0.7 - changed install directories to variables.

.0.8 - removed trolley installer, was installing incorrect GIT

.0.9 - moved packages off of git to dropbox

.0.9.1 - added new feature for Recently Added in Plex

 

How to completely remove:

rm -r /mnt/cache/appdata/plexWatch
rm -r /mnt/cache/appdata/www/plexWatchWeb
vi /boot/config go

 

remove following lines

 

#version .0.6 plexWatch
echo '# Start of plexWatch crontab entries' >> /var/spool/cron/crontabs/root
echo '* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl' >> /var/spool/cron/crontabs/root
echo '# End of plexWatch crontab entries' >> /var/spool/cron/crontabs/root
su root /boot/config/plugins/plexWatch/run.sh
#end plexWatch

 

crontab -e

 

remove following lines

 

# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl
# End of plexWatch crontab entries

 

Thanks:

 

nicinabox - for the creation of trolley

miyagawa - for cpanminus

DToX/victoRaid - for assistance with cron

DToX - timezone setting in php.ini

DToX - help with /boot/config/go issues

speeding_ant - for SimpleFeatures

bonienl - for Dynamix

ljunkie @ PlexForums - plexWatch

eleese @ PlexForums - plexWatch/Web

Link to comment
  • Replies 173
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Seems you have a typo somewhere because at the end of the cmd this comes up

 

/boot/config/plugins/plexWatch/run.sh: No such file or directory

sh: /boot/config/plugins/plexWatch/run.sh: No such file or directory

root@Tower:/boot/config/plugins#

 

And it makes this folder

"TOWER\flash\config\plguins\plexWatch"

Link to comment

Seems you have a typo somewhere because at the end of the cmd this comes up

 

/boot/config/plugins/plexWatch/run.sh: No such file or directory

sh: /boot/config/plugins/plexWatch/run.sh: No such file or directory

root@Tower:/boot/config/plugins#

 

And it makes this folder

"TOWER\flash\config\plguins\plexWatch"

 

You are correct.  Fixed my typo. 

Link to comment

Seems you have a typo somewhere because at the end of the cmd this comes up

 

/boot/config/plugins/plexWatch/run.sh: No such file or directory

sh: /boot/config/plugins/plexWatch/run.sh: No such file or directory

root@Tower:/boot/config/plugins#

 

And it makes this folder

"TOWER\flash\config\plguins\plexWatch"

 

You are correct.  Fixed my typo.

 

.... you are killing me I was looking at your code and I could not find the mistake ANYWHERE... I was losing my mind thinking I was crazy and it's because you updated it so fast.... A+ work :)

Link to comment

Seems you have a typo somewhere because at the end of the cmd this comes up

 

/boot/config/plugins/plexWatch/run.sh: No such file or directory

sh: /boot/config/plugins/plexWatch/run.sh: No such file or directory

root@Tower:/boot/config/plugins#

 

And it makes this folder

"TOWER\flash\config\plguins\plexWatch"

 

You are correct.  Fixed my typo.

 

.... you are killing me I was looking at your code and I could not find the mistake ANYWHERE... I was losing my mind thinking I was crazy and it's because you updated it so fast.... A+ work :)

 

I had the cron commands commented out as well for bit.  You may want to re-install.  I've found a problem with it running the plexWatch.pl from cron and the more research I do the more confused I am by unRAID's implementation of cron.

 

I've even added

 

echo "* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl" >> /var/spool/cron/crontabs/root

 

directly to /boot/config/go and it still won't run

Link to comment

Seems you have a typo somewhere because at the end of the cmd this comes up

 

/boot/config/plugins/plexWatch/run.sh: No such file or directory

sh: /boot/config/plugins/plexWatch/run.sh: No such file or directory

root@Tower:/boot/config/plugins#

 

And it makes this folder

"TOWER\flash\config\plguins\plexWatch"

 

You are correct.  Fixed my typo.

 

.... you are killing me I was looking at your code and I could not find the mistake ANYWHERE... I was losing my mind thinking I was crazy and it's because you updated it so fast.... A+ work :)

 

I had the cron commands commented out as well for bit.  You may want to re-install.  I've found a problem with it running the plexWatch.pl from cron and the more research I do the more confused I am by unRAID's implementation of cron.

 

I've even added

 

echo "* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl" >> /var/spool/cron/crontabs/root

 

directly to /boot/config/go and it still won't run

 

Try this on your go file

 

crontab -l > /tmp/file
echo '#' >> /tmp/file
echo '# Start of plexWatch crontab entries' >> /tmp/file
echo '* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl' >> /tmp/file
echo '# End of plexWatch crontab entries' >> /tmp/file
crontab /tmp/file
rm -f /tmp/file

 

Hmm I seem to be having some plex token issues with plexwatchweb and I cant remember how i fixed this last time :/

 

Edit: yup it's about 4AM and i'm an idiot... forgot to enable curl & sqlite3 in the php.ini, thank you smdion for doing the heavy lifting on this

Link to comment

 

Try this on your go file

 

crontab -l > /tmp/file
echo '#' >> /tmp/file
echo '# Start of plexWatch crontab entries' >> /tmp/file
echo '* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl' >> /tmp/file
echo '# End of plexWatch crontab entries' >> /tmp/file
crontab /tmp/file
rm -f /tmp/file

 

 

 

I edit'd my install.sh to run this and cat it into boot/config/go. I'm at work and will see if the database gets updated when I'm home, my dev unRAID box isn't accessible to the outside world.

Link to comment

Hello! After following the above, I'm getting an error in my Dynamix Web Server log when I try to navigate to plexWatchWeb:

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Is anyone else seeing this? Any help would be greatly appreciated!

Link to comment

Hello! After following the above, I'm getting an error in my Dynamix Web Server log when I try to navigate to plexWatchWeb:

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Is anyone else seeing this? Any help would be greatly appreciated!

 

Looking at the code on the index.php page of plexWebWatch did you change from localhost to the IP of your unRAID server in plexWatch/config.pl?

Link to comment

 

Hello! After following the above, I'm getting an error in my Dynamix Web Server log when I try to navigate to plexWatchWeb:

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Is anyone else seeing this? Any help would be greatly appreciated!

 

Looking at the code on the index.php page of plexWebWatch did you change from localhost to the IP of your unRAID server in plexWatch/config.pl?

 

Yes, unfortunately I get the error both ways.

Link to comment

 

Hello! After following the above, I'm getting an error in my Dynamix Web Server log when I try to navigate to plexWatchWeb:

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Is anyone else seeing this? Any help would be greatly appreciated!

 

Looking at the code on the index.php page of plexWebWatch did you change from localhost to the IP of your unRAID server in plexWatch/config.pl?

 

Yes, unfortunately I get the error both ways.

 

I know I had the error when it was "localhost".  Just to humor me can you change it back to the IP.

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87

 

Makes it seem like it is still set to localhost

Link to comment

 

Hello! After following the above, I'm getting an error in my Dynamix Web Server log when I try to navigate to plexWatchWeb:

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Is anyone else seeing this? Any help would be greatly appreciated!

 

Looking at the code on the index.php page of plexWebWatch did you change from localhost to the IP of your unRAID server in plexWatch/config.pl?

 

Yes, unfortunately I get the error both ways.

 

did you edit your php.ini file? I was getting similar errors until I made the correct edits

Link to comment

 

Try this on your go file

 

crontab -l > /tmp/file
echo '#' >> /tmp/file
echo '# Start of plexWatch crontab entries' >> /tmp/file
echo '* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl' >> /tmp/file
echo '# End of plexWatch crontab entries' >> /tmp/file
crontab /tmp/file
rm -f /tmp/file

 

 

 

Well, I did update my install file with your code there. Its a nice way to get it into cron, but even after reboot my crontab isn't working.  For some odd reason TTRSS isn't updating either.  Did that crontab code work for you?

Link to comment

 

Hello! After following the above, I'm getting an error in my Dynamix Web Server log when I try to navigate to plexWatchWeb:

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Is anyone else seeing this? Any help would be greatly appreciated!

 

Looking at the code on the index.php page of plexWebWatch did you change from localhost to the IP of your unRAID server in plexWatch/config.pl?

 

Yes, unfortunately I get the error both ways.

 

I know I had the error when it was "localhost".  Just to humor me can you change it back to the IP.

 

[20-Jan-2014 11:17:07 America/Chicago] PHP Warning: file_get_contents(http://localhost:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87

 

Makes it seem like it is still set to localhost

 

Same error after changing:

[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(http://10.0.1.2:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://10.0.1.2:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

Link to comment

Same error after changing:

[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(http://10.0.1.2:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://10.0.1.2:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Thanks for humoring me.  What do you get when you run this command?

 

sudo cpanm HTML::Entities

Link to comment

Same error after changing:

[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(http://10.0.1.2:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://10.0.1.2:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Thanks for humoring me.  What do you get when you run this command?

 

sudo cpanm HTML::Entities

 

Of course! Thank you for helping. Here is the results:

 

root@Tower:/mnt/user/apps# sudo cpanm HTML::Entities
HTML::Entities is up to date. (3.69)

Link to comment

Same error after changing:

[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(http://10.0.1.2:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://10.0.1.2:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Thanks for humoring me.  What do you get when you run this command?

 

sudo cpanm HTML::Entities

 

Of course! Thank you for helping. Here is the results:

 

root@Tower:/mnt/user/apps# sudo cpanm HTML::Entities
HTML::Entities is up to date. (3.69)

 

Is your web root /mnt/user/apps or /mnt/user/apps/www?  Also, just to repeat what DToX asked, did you enable the 3 lines in php.ini?

Link to comment

Same error after changing:

[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(http://10.0.1.2:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://10.0.1.2:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Thanks for humoring me.  What do you get when you run this command?

 

sudo cpanm HTML::Entities

 

Of course! Thank you for helping. Here is the results:

 

root@Tower:/mnt/user/apps# sudo cpanm HTML::Entities
HTML::Entities is up to date. (3.69)

 

Is your web root /mnt/user/apps or /mnt/user/apps/www?  Also, just to repeat what DToX asked, did you enable the 3 lines in php.ini?

 

Yep, php.ini was the problem! The way I read it in this post: http://lime-technology.com/forum/index.php?topic=30941.0, you only had to remove the "no-install" section in the table for Dynamix, but apparently you also have to uncomment out each line in /boot/config/plugins/dynamix/dynamix.php.cfg:

extension=curl.so
extension=sqlite.so
extension=sqlite3.so

 

Thanks for all the help. Looks like I'm good to go!

Link to comment

Same error after changing:

[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: file_get_contents(http://10.0.1.2:32400/status/sessions?query=c&X-Plex-Token=): failed to open stream: No such file or directory in /mnt/user/apps/plexWatchWeb/index.php on line 87
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /mnt/user/apps/plexWatchWeb/index.php on line 90
[20-Jan-2014 12:30:52 America/Chicago] PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://10.0.1.2:32400/library/sections" in /mnt/user/apps/plexWatchWeb/index.php on line 90

 

Thanks for humoring me.  What do you get when you run this command?

 

sudo cpanm HTML::Entities

 

Of course! Thank you for helping. Here is the results:

 

root@Tower:/mnt/user/apps# sudo cpanm HTML::Entities
HTML::Entities is up to date. (3.69)

 

Is your web root /mnt/user/apps or /mnt/user/apps/www?  Also, just to repeat what DToX asked, did you enable the 3 lines in php.ini?

 

Yep, php.ini was the problem! The way I read it in this post: http://lime-technology.com/forum/index.php?topic=30941.0, you only had to remove the "no-install" section in the table for Dynamix, but apparently you also have to uncomment out each line in /boot/config/plugins/dynamix/dynamix.php.cfg:

extension=curl.so
extension=sqlite.so
extension=sqlite3.so

 

Thanks for all the help. Looks like I'm good to go!

 

Awesome.. I'll update my how-to so its more clear.  Glad its working!

Link to comment

 

Known Issues

 

cron does not run the plexWatch.pl file to update the database.

 

 

I was able to fix the cron problem by restarting it with the below command:

 

killall crond && crond

 

You might want to add this to the end of your script.

 

Thank you so much.  Added.  Fixed my issue as well.

Link to comment

.0.6 released.  Now persists across reboot.  Takes a while for the dependencies to install after reboot.  Much thanks to DToX. 

 

There has been a lot of changes with the /boot/config/go, this is how it should look

 

#version .0.6 plexWatch
echo '# Start of plexWatch crontab entries' >> /var/spool/cron/crontabs/root
echo '* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl' >> /var/spool/cron/crontabs/root
echo '# End of plexWatch crontab entries' >> /var/spool/cron/crontabs/root
su root /boot/config/plugins/plexWatch/run.sh
#end plexWatch

 

 

Link to comment

Just installed Dynamix 2.1.0 and it's Plugin Control, then installed your plugin.

 

/etc/httpd/php.ini does not exist for me

root@Tower:/etc/httpd# ls

mod_php.conf.example  php.ini-dist  php.ini-recommended

 

/boot/config/plugins/plexWatch folder does not exist for me

 

How do I know if it is working or not?

 

edit: rebooted server and now some stuff doesn't work... main gui, sickbeard. plex server and transmission still working fine.

 

edit2: ok the plugins and ui works, but it really takes a long while to load them

now i am getting this:

Jan 28 20:27:01 Tower crond[1176]: exit status 2 from user root /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl

Jan 28 20:27:01 Tower crond[2798]: unable to exec /usr/sbin/sendmail: cron output for user root /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl to /dev/null

 

Don't think it is working, because tower/plexWatch is blank. Any help to solve this issue would be great.

Link to comment

Just installed Dynamix 2.1.0 and it's Plugin Control, then installed your plugin.

 

/etc/httpd/php.ini does not exist for me

root@Tower:/etc/httpd# ls

mod_php.conf.example  php.ini-dist  php.ini-recommended

 

/boot/config/plugins/plexWatch folder does not exist for me

 

How do I know if it is working or not?

 

edit: rebooted server and now some stuff doesn't work... main gui, sickbeard. plex server and transmission still working fine.

 

edit2: ok the plugins and ui works, but it really takes a long while to load them

now i am getting this:

Jan 28 20:27:01 Tower crond[1176]: exit status 2 from user root /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl

Jan 28 20:27:01 Tower crond[2798]: unable to exec /usr/sbin/sendmail: cron output for user root /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl to /dev/null

 

Don't think it is working, because tower/plexWatch is blank. Any help to solve this issue would be great.

 

ower crond[2798]: unable to exec /usr/sbin/sendmail

shows up on mine too, but I'm not using any sendmail so I'm not worried about it. 

 

This does take a long time to install because it has to build perl dependencies from source.

 

What message do you get when you run the following code

/mnt/cache/appdata/plexWatch/plexWatch.pl

 

 

Also,

 

Jan 28 20:27:01 Tower crond[1176]: exit status 2 from user root /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl

 

Will show up in the logs until the script is done installing.  Does it work at www.IPOFTOWER.com:PORT/plexWatchWeb ?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.