Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Thanks a lot for your help!

 

I changed the script with alternative install directories

#Edit following 2 lines to change install directories
location=/mnt/cache/_Usenet/appdata
webroot=/mnt/cache/_Usenet/appdata/www

 

Output:

root@Server:~# ls -l /mnt/cache/appdata/plexWatch
/bin/ls: cannot access /mnt/cache/appdata/plexWatch: No such file or directory
root@Server:~# ls -l /mnt/cache/_Usenet/appdata/plexWatch
/bin/ls: cannot access /mnt/cache/_Usenet/appdata/plexWatch: No such file or directory

 

For sake of completeness, the script creates ../_Usenet/appdata and ../_Usenet/appdata/www. However those directories remain empty.

 

Okay so you downloaded this file https://raw.github.com/smdion/pw/master/install.sh then made the following edit

#Edit following 2 lines to change install directories
location=/mnt/cache/_Usenet/appdata
webroot=/mnt/cache/_Usenet/appdata/www

Then ran

sh /download-location/install.sh

Make sure to enter the correct location of install.sh when you run the above command as well

  • Replies 173
  • Views 48k
  • Created
  • Last Reply

Yep, that's exactly what I did. I just now did a fresh install (after removing everything) with same results as described above. I copied the output to a text file (attached). For me this for the greater part is abracadabra, but maybe it helps?

 

edit: when checking I noticed that with this re-install crontab was not edited by the script. I'm sure that such was the case with previous runs of the script (I'm totally lost here). However, ../_Usenet/appdata and ../_Usenet/appdata/www folders are created (but empty...) and dependencies are now in extra.

 

edit2: apologies for another addition. After a reboot of the server I noticed that the cron job is now added to crontab.

 

edit3: never noticed this before, but Git wasn't running. After I moved the git package (from boot/packages) to boot/extra git is running and installing the files.

 

I guess I will now get it up and running. Thanks again!

output_install.txt

Yep, that's exactly what I did. I just now did a fresh install (after removing everything) with same results as described above. I copied the output to a text file (attached). For me this for the greater part is abracadabra, but maybe it helps?

 

edit: when checking I noticed that with this re-install crontab was not edited by the script. I'm sure that such was the case with previous runs of the script (I'm totally lost here). However, ../_Usenet/appdata and ../_Usenet/appdata/www folders are created (but empty...) and dependencies are now in extra.

 

edit2: apologies for another addition. After a reboot of the server I noticed that the cron job is now added to crontab.

 

edit3: never noticed this before, but Git wasn't running. After I moved the git package (from boot/packages) to boot/extra git is running and installing the files.

 

I guess I will now get it up and running. Thanks again!

 

Well i'm glad you got it running, I wouldn't have considered it was the fault of Git :(

Please ignore my previous queries. I apologize for not recognizing that Github was not working.

 

It seems that everything is downloading properly and I think I edited the config files as instructed. Still, if I try to approach plexWatchWeb I get: "Failed to access Plex Media Server. Please check your settings." On the settings page, nothing responds and I cannot change anything.

 

Maybe this helps.

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -watched
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i486-linux-thread-multi /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at ./plexWatch.pl line 16.
BEGIN failed--compilation aborted at ./plexWatch.pl line 16.

 

I'm getting close, so any help...  Thank you!

 

Please ignore my previous queries. I apologize for not recognizing that Github was not working.

 

It seems that everything is downloading properly and I think I edited the config files as instructed. Still, if I try to approach plexWatchWeb I get: "Failed to access Plex Media Server. Please check your settings." On the settings page, nothing responds and I cannot change anything.

 

Maybe this helps.

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -watched
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.12.3/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i486-linux-thread-multi /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at ./plexWatch.pl line 16.
BEGIN failed--compilation aborted at ./plexWatch.pl line 16.

 

I'm getting close, so any help...  Thank you!

 

run this and post output

crontab -l

 

and run this command to start it for a test

/mnt/cache/_Usenet/appdata/plexWatch/run.sh

 

then

 

/mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl -stats

@DToX: Thanks a lot for staying with me here!

 

root@Server:~# crontab -l
# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null.  We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
#
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don't need greater granularity than this.  If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
#
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
#
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
#
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
#
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
# System data collection - poll every minute
*/1 * * * * /usr/lib/sa/sa1 1 1 & 1>/dev/null 2>&1
# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl
# End of plexWatch crontab entries
#
# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl --recently_added=movie,tv
# End of plexWatch crontab entries
#

 

I've attached output from all commands in a text file.

 

 

plexWatch.txt

@DToX: Thanks a lot for staying with me here!

 

root@Server:~# crontab -l
# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null.  We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
#
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don't need greater granularity than this.  If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
#
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
#
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
#
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
#
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
# System data collection - poll every minute
*/1 * * * * /usr/lib/sa/sa1 1 1 & 1>/dev/null 2>&1
# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl
# End of plexWatch crontab entries
#
# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl
* * * * * /usr/bin/perl /mnt/cache/appdata/plexWatch/plexWatch.pl --recently_added=movie,tv
# End of plexWatch crontab entries
#

 

I've attached output from all commands in a text file.

 

Well your crontab needs to be edited to the correct locations of plexWatch so use crontab -e to correct that first

I should have spotted that, sorry. Done and now I get

 

# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl
* * * * * /usr/bin/perl /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl --recently_added=movie,tv
# End of plexWatch crontab entries

I should have spotted that, sorry. Done and now I get

 

# Start of plexWatch crontab entries
* * * * * /usr/bin/perl /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl
* * * * * /usr/bin/perl /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl --recently_added=movie,tv
# End of plexWatch crontab entries

 

Okay now running plexWatch.pl -stats what do you get?

 

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -stats

Date Range: Anytime through Now

Date Range: Anytime through Now

* nothing watched

======================================== Stats ========================================

root@Server:/mnt/cache/_Usenet/appdata/plexWatch#

 

Just guessing, could it be a permissions issue?

Okay easy to test run these commands

chmod -R 777 /mnt/cache/_Usenet/appdata/plexWatch

 

Then start watching something on plex and while that's running do the following

 

/mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl -watching

 

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -stats

Date Range: Anytime through Now

Date Range: Anytime through Now

* nothing watched

======================================== Stats ========================================

root@Server:/mnt/cache/_Usenet/appdata/plexWatch#

 

Just guessing, could it be a permissions issue?

Grrrrr.. That's not i then.

 

root@Server:~# chmod -R 777 /mnt/cache/_Usenet/appdata/plexWatchroot@Server:~#

 

Started a show

 

root@Server:~# /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl -watching 
======================================= Watching ========================================
* nothing in progress

root@Server:~#

 

Will (again) try a complete fresh re-install tomorrow. Thanks!

Can you post your config.pl but redact your plex username and password from it before posting please.

 

Grrrrr.. That's not i then.

 

root@Server:~# chmod -R 777 /mnt/cache/_Usenet/appdata/plexWatchroot@Server:~#

 

Started a show

 

root@Server:~# /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl -watching 
======================================= Watching ========================================
* nothing in progress

root@Server:~#

 

Will (again) try a complete fresh re-install tomorrow. Thanks!

Is your plex running on the same server as plexwatch?

 

Attaching config.pl and a screenshot.

Yep (screenshot attached).

Screen_Shot_2014-03-13_at_10_54.17_PM.png.6a376bcf240c70d69ebadd3a259bd46e.png

Okay edit config.pl and set server IP to localhost

 

Then run /mnt/cache/_Usenet/appdata/plexWatch/plexWatch.pl and start playing something on plex then run plexWatch.pl -watching

Yep (screenshot attached).

This is strange. The output only shows a remote user, and not myself also watching a show.

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -watching

======================================= Watching ========================================

User: bart rooijmans
Thu Mar 13 23:05:02 2014: bart rooijmans playing Banshee - Pilot - s01e01 [T] [2013] [TV-MA] [1 hour] on iPad van Bart for 1 minute [2%] [58 minutes left] 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch

 

plexWatch still gives the same message: Failed to access Plex Media Server. Please check your settings.

 

When I change config.pl back (from localhost) to IP address, output is the same as above.

 

edit: Now I'm (also) watching a show on my iPad:

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -watching

======================================= Watching ========================================

User: bart rooijmans
Thu Mar 13 23:05:02 2014: bart rooijmans playing Banshee - Pilot - s01e01 [T] [2013] [TV-MA] [1 hour] on iPad van Bart for 15 minutes [24%] [46 minutes left] 

User: smoldersonline
Thu Mar 13 23:19:44 2014: smoldersonline playing The Assets - My Name Is Aldrich Ames - s01e01 [T] [2014] [41 minutes] on Dirk's iPad for 1 second [64%] [15 minutes left] 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch

What do you mean it doesn't show you playing local? And don't worry about plexwatchweb one thing at a time

 

This is strange. The output only shows a remote user, and not myself also watching a show.

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -watching

======================================= Watching ========================================

User: bart rooijmans
Thu Mar 13 23:05:02 2014: bart rooijmans playing Banshee - Pilot - s01e01 [T] [2013] [TV-MA] [1 hour] on iPad van Bart for 1 minute [2%] [58 minutes left] 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch

 

plexWatch still gives the same message: Failed to access Plex Media Server. Please check your settings.

 

When I change config.pl back (from localhost) to IP address, output is the same as above.

 

edit: Now I'm (also) watching a show on my iPad:

 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch# plexWatch.pl -watching

======================================= Watching ========================================

User: bart rooijmans
Thu Mar 13 23:05:02 2014: bart rooijmans playing Banshee - Pilot - s01e01 [T] [2013] [TV-MA] [1 hour] on iPad van Bart for 15 minutes [24%] [46 minutes left] 

User: smoldersonline
Thu Mar 13 23:19:44 2014: smoldersonline playing The Assets - My Name Is Aldrich Ames - s01e01 [T] [2014] [41 minutes] on Dirk's iPad for 1 second [64%] [15 minutes left] 

root@Server:/mnt/cache/_Usenet/appdata/plexWatch

At some point PMS was serving three clients: 1) a remote (friend's house iPad) user 2) my own iPad and 3) my own Mac mini.

 

The output only showed 1) and 2).

Are you using plex home theater on your Mac?

 

At some point PMS was serving three clients: 1) a remote (friend's house iPad) user 2) my own iPad and 3) my own Mac mini.

 

The output only showed 1) and 2).

Nope, still running Plex Laika.

Guess that might not be supported, try the latest plex home theater for mac

 

Nope, still running Plex Laika.

You are absolutely right. I did a quick PHT install and now it just works fine. Thank you so much for now! It is getting late here. Will work on PlexWatchWeb tomorrow.

Okay sounds good, as to the plexwatchweb you just need to configure the settings on it and it'll work but if there's a problem I'll help you resolve it.

 

You are absolutely right. I did a quick PHT install and now it just works fine. Thank you so much for now! It is getting late here. Will work on PlexWatchWeb tomorrow.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.