$data_dir = ‘c:\plexWatch\’; ## to store the DB, logfile - can be the same as this script
$server_log = ‘C:\Users\Administrator\AppData\Local\Plex Media Server\Logs\Plex Media Server.log’; ## used to log IP address of user (alpha)
$log_client_ip = 1; ## requires $server_log to be available too. (requires File::ReadBackwards)
also required DEBUG log to be turned on in the PMS
However Debug.log displays this:
Thu May 19 20:05:51 2016: Locating IP for 6333:aaaaa[user:movie] from C:\Users\Administrator\AppData\Local\Plex Media Server\Logs\Plex Media Server.log… NO IP found (10001 lines searched)
Thu May 19 20:05:51 2016: Trying fallback mode for IP match (sleeping 5 seconds before reloading log C:\Users\Administrator\AppData\Local\Plex Media Server\Logs\Plex Media Server.log
Why am I not able to track IPs? What am I doing wrong?
Hello all, hoping someone might be able to help me out. On August 30th plexWatch decided to stop recording events, as in, the history just stops being recorded. No new records. When someone is actually watching something, it shows that, I can see everything that is playing, it is just not adding it to my stats or history. Any help out there? Thanks much!
EDIT: Even going into the debug file, I see that it repeats this over and over until it just stops on Aug. 31.
Wed Aug 31 17:13:49 2016: * Total Paused duration: 2 days and 19 hours [239820 seconds]
Wed Aug 31 17:14:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:14:49 2016: * Total Paused duration: 2 days and 19 hours [239880 seconds]
Wed Aug 31 17:15:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:15:49 2016: * Total Paused duration: 2 days and 19 hours [239940 seconds]
Wed Aug 31 17:16:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:16:49 2016: * Total Paused duration: 2 days and 19 hours [240000 seconds]
Wed Aug 31 17:17:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:17:49 2016: * Total Paused duration: 2 days and 19 hours [240060 seconds]
Wed Aug 31 17:18:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:18:49 2016: * Total Paused duration: 2 days and 19 hours [240120 seconds]
Wed Aug 31 17:19:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:19:49 2016: * Total Paused duration: 2 days and 19 hours [240180 seconds]
Wed Aug 31 17:20:49 2016: * Already marked as Paused on Sun Aug 28 22:36:49 2016 [1472438209]
Wed Aug 31 17:20:49 2016: * Total Paused duration: 2 days and 19 hours [240240 seconds]
@OnlyHuman said:
Yes, I understand that, was hoping someone had an easy fix. Will look into PlexPy shortly, appreciate your response.
dang, i just realized mine hasn’t been working either, for the past month.
looked at the log and saw it was timing out due to unauthorized access.
figured out a quick easy fix.
open your config.pl in the plexwatch folder and goto line 13 and change localhost to your server’s internal ip address, e.g. 192.168.1.5.
then go to pms settings → server → network, and put that same ip address in the box under “List of IP addresses and networks that are allowed without auth”
I have used plexwatch (not bad) and plexpy (great), plexpy has everything and more that plexwatch has. It is also much easier to install. I would recommend moving to plexpy @JonnyWong16 is a great developer and readily answer questions about plexpy or tautulli has version 2 is called.
plexpy or tautulli is even featured on plex.tv/plex-labs/