I love the friendly name feature but am wondering if you might suggest the best way to retroactively change a name in the plexWatch db/logs. (I should probably just familiarize myself with SQLite...)
Also, I want to get your thoughts on a couple of feature requests:
Would it be possible to get more information out of the --stats command, such as:
media listed by popularity (e.i. "Breaking Bad s5e11 - 5 watches")
time listed by highest PMS traffic (e.i. "Sun 8/25, 8PM - 4 watchers")
These two stats would give valuable information to what content on your PMS is the most popular and when your server is at the highest demand.
Finally, what would you think about being able to give a friendly name to a user + client which would amount to "location"? For example:
JohnSmith + Roku HD = "The Smith's"
JohnSmith + iOS = "John"
This would help differentiate between household clients and personal clients.
I'm not sure what the interest level would be in the above, but I think it would be a fantastic addition to the already amazing plexWatch script.
Thanks again!
* The friendly name is just a live conversion. If you change the name in the config.pl it will show the new name for all the previous content. I store the "real" username in the database.
* I'd love for the stats to be improved, it's just a matter of finding the time and ideas. The two stats sound like a pretty good idea and I will see if I can put those on the list.
* Friendly Name + Client is in interesting idea. I will take a look and see what I can come up with. The only quick issue I see is the Roku for example. As of now it doesn't have a unique name as others can have (my iphone actually shows my devices name), so if someone had multiple Rokus, it would think of them as the same. Not a huge deal, but just one anomaly I can already see.
I’m not a fan of the third requests. I like seeing the user and the device separately. I can figure out if the user is my wife and device is iPhone that she’s watching remotely.
Finally, what would you think about being able to give a friendly name to a user + client which would amount to "location"? For example:
JohnSmith + Roku HD = "The Smith's"
JohnSmith + iOS = "John"
This would help differentiate between household clients and personal clients.
I'm not sure what the interest level would be in the above, but I think it would be a fantastic addition to the already amazing plexWatch script.
Thanks again!
I'm not a fan of the third requests. I like seeing the user and the device separately. I can figure out if the user is my wife and device is iPhone that she's watching remotely.
This was actually easier than I thought to implement. It also gave me the need to clean up the --user --exclude_user logic a little. You can now specify 'user+platform' to make it unique. Example below: (Notice I have +Roku and +Roku 3 because at some point the Roku channel update now includes the version of roku)
I love the friendly name feature but am wondering if you might suggest the best way to retroactively change a name in the plexWatch db/logs. (I should probably just familiarize myself with SQLite...)
Also, I want to get your thoughts on a couple of feature requests:
Would it be possible to get more information out of the --stats command, such as:
media listed by popularity (e.i. "Breaking Bad s5e11 - 5 watches")
time listed by highest PMS traffic (e.i. "Sun 8/25, 8PM - 4 watchers")
These two stats would give valuable information to what content on your PMS is the most popular and when your server is at the highest demand.
Finally, what would you think about being able to give a friendly name to a user + client which would amount to "location"? For example:
JohnSmith + Roku HD = "The Smith's"
JohnSmith + iOS = "John"
This would help differentiate between household clients and personal clients.
I'm not sure what the interest level would be in the above, but I think it would be a fantastic addition to the already amazing plexWatch script.
Thanks again!
I am trying to do this as well. As far as the statistical counts and popularity analysis, that can be easily handled by a pivot table in excel with an ODBC connection to the sql db. I just have the excel pivot always open and periodically refresh the data to get an updated "dashboard".
As for distinguishing between one account and multiple devices I have started using the IP address (see above post) to segment this data. I am also exploring the idea of assigning different accounts to different devices or locations, such as "Lake Tahoe House".
I have a new branch that includes searching the logfile for the clients IP address and inserting it into the DB field ip_address (only on the initial insert). This will not work going backwards as logs are rotated like mad in PMS. For now it will iterate through the first log specified and if no match is found it will try the next log as it's possible the log was rotated by PMS.
You may need to change your $server_log location in the config.pl
While we are talking about feature requests....is there anyway to get the Mbps setting that the transcoder has acknowledged from the client? I went through the logs and I could not readily find any designation around this. Would be a great thing to track if it is available.
While we are talking about feature requests....is there anyway to get the Mbps setting that the transcoder has acknowledged from the client? I went through the logs and I could not readily find any designation around this. Would be a great thing to track if it is available.
Yep. I need to fix the Direct/Transcoded bit anyways. Right now it shows Transcoded if the video or audio is transcoded, but either one might also be a copy instead of a covert. Bitrate is part of that, so I'll see about adding that.
When I say add, I'll be adding it to my output. It's already in the XML field in the DB. Just look at the transcoded area of the XML.
*Mobile now otherwise I'd give an example.
EDIT: I take that all back. It doesn't look like the transcode section includes the bitrate. I do believe it's part of the api url @ /transcode/sessions/ (that I do not query as of now) so I might have to look into logging that XML result if the stream is transcoded.
EDIT2: wrong again.. the /transcode/sessions/ api call is exactly the same result as the XML I am logging now, it just includes the TranscodeSection part though.. so I will have to research this a bit more. I am not sure this is possible yet.
This was actually easier than I thought to implement. It also gave me the need to clean up the --user --exclude_user logic a little. You can now specify 'user+platform' to make it unique. Example below: (Notice I have +Roku and +Roku 3 because at some point the Roku channel update now includes the version of roku)
FYI, you can actually specify the name of the Roku in the preference that will show up in Now Playing. It's under Plex Roku's Preference > Remote. I've changed it to say "Bobby's Roku 3" for my brother.
I have a new branch that includes searching the logfile for the clients IP address and inserting it into the DB field ip_address (only on the initial insert). This will not work going backwards as logs are rotated like mad in PMS. For now it will iterate through the first log specified and if no match is found it will try the next log as it's possible the log was rotated by PMS.
You may need to change your $server_log location in the config.pl
Ljunkie, can I make a small request? Can we customize the “appname” variable with other variables? Instead of my pushover title saying “plexWatch: watchng”. It would day “Bobby: Watching”.
This was actually easier than I thought to implement. It also gave me the need to clean up the --user --exclude_user logic a little. You can now specify 'user+platform' to make it unique. Example below: (Notice I have +Roku and +Roku 3 because at some point the Roku channel update now includes the version of roku)
Thank you! I can't believe how quickly you were able to get this done (for the record < 8 hours). I've been testing it and the only snag I've ran into so far is it not recognizing single quotes. As in: Victor's iPhone. I'm sure it has something to do with how you're escaping them or how they're stored in the SQLite db.
EDIT: Its stored in the db as "Victorâs iPhone" and I've tried that and "Victor\'s iPhone" with no success. Other than that little issue, its great.
Thank you! I can't believe how quickly you were able to get this done (for the record < 8 hours). I've been testing it and the only snag I've ran into so far is it not recognizing single quotes. As in: Victor's iPhone. I'm sure it has something to do with how you're escaping them or how they're stored in the SQLite db.
EDIT: Its stored in the db as "Victorâs iPhone" and I've tried that and "Victor\'s iPhone" with no success. Other than that little issue, its great.
It works for me.
Relevant config.pl
$user_display = {
‘myplexUsername+RR's Iphone’ => ‘Robert’,
};
./plexWatch.pl --watching --show_xml
-- cut --
-- cut --
======================================= Watching ========================================
User: Robert [myplexUsername]
Tue Aug 27 11:59:34 2013: Robert watching The Great Outdoors [T] [1988] [PG] [1 hour and 31 minutes] on RR's Iphone [59 minutes left] ip-removed
note: I have probably confused people with the platform. If there is no "player platform title" then it falls back to just "player platform". Notice above my platform is "iOS", but the end result is "RR's Iphone" instead of "iOS". I could have combined platform and title, but it was redundant for most clients with defaults.
Ljunkie, can I make a small request? Can we customize the "appname" variable with other variables? Instead of my pushover title saying "plexWatch: watchng". It would day "Bobby: Watching".
I followed the installation-guide for mac os posted somewhere in this thread. My only Problem is, that notifications only work once, then they stop:
log:
Wed Aug 28 01:20:25 2013: GNTP failed: Alex watched 10,000 B.C. [T] [2008] [de/12] on Plex/Web (Safari) for 20 minutes [17%] - setting GNTP to back off additional notifications
Wed Aug 28 01:20:25 2013: Alex watching 2012 [T] [2009] [de/12] on Plex/Web (Safari) [4 minutes in]
Wed Aug 28 01:20:25 2013: BOXCAR failed: Alex watching 2012 [T] [2009] [de/12] on Plex/Web (Safari) [4 minutes in] - setting boxcar to back off additional notifications
I have no idea how to fix this and it was hard to activate standbye for my macbook after installing it. I guess i forget to install something or did miss anything, but i'm helpless.
Is there any chance someone would put this in an installable format as an app, for "noobs" like me?
I followed the installation-guide for mac os posted somewhere in this thread. My only Problem is, that notifications only work once, then they stop:
log:
I have no idea how to fix this and it was hard to activate standbye for my macbook after installing it. I guess i forget to install something or did miss anything, but i'm helpless.
Is there any chance someone would put this in an installable format as an app, for "noobs" like me?
Alex,
Look at the FAQ (at the bottom of the readme) and set up a launchagent to poll PMS.