Plex Notify

I have been using your app basically to get alerts on my home plex server when users play something.  Now I want to use it remotely and have it send alerts to pushover.  I tried first turning on the webserver and I am getting the system cannot find the path specified error.  I setup pushover and hit test and I get the remote server returned an error bad request 400.

I found these issues both posted here recently with no resolution.  Any ideas?

Soon.....

3QE7I7F.png

Here is the error in the log from pushover:

    0.0.0.79
    The remote server returned an error: (400) Bad Request.
      at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at DojoNorthSoftware.Pushover.Pushover.SendNotification(String appToken, String userKey, String title, String message, Priority pri, PushoverSound sound, String device, String supplementaryUrl, String urlTitle, Int32 emergencyRetry, Int32 emergencyExpire, Exception& except)
    The remote server returned an error: (400) Bad Request.
      at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at DojoNorthSoftware.Pushover.Pushover.SendNotification(String appToken, String userKey, String title, String message, Priority pri, PushoverSound sound, String device, String supplementaryUrl, String urlTitle, Int32 emergencyRetry, Int32 emergencyExpire, Exception& except)
    There was a problem connecting to Pushover.net
    Pushover
 

Here is the error in the log from pushover:

    0.0.0.79
    The remote server returned an error: (400) Bad Request.
      at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at DojoNorthSoftware.Pushover.Pushover.SendNotification(String appToken, String userKey, String title, String message, Priority pri, PushoverSound sound, String device, String supplementaryUrl, String urlTitle, Int32 emergencyRetry, Int32 emergencyExpire, Exception& except)
    The remote server returned an error: (400) Bad Request.
      at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at DojoNorthSoftware.Pushover.Pushover.SendNotification(String appToken, String userKey, String title, String message, Priority pri, PushoverSound sound, String device, String supplementaryUrl, String urlTitle, Int32 emergencyRetry, Int32 emergencyExpire, Exception& except)
    There was a problem connecting to Pushover.net
    Pushover
 

Ensure you have no special characters in your notification messages and verify your API key is correct.

I copied and pasted the key several times, and my notification message is {UserName} is watching {Video} on server {PMS}.

OK here is what I am actually trying to do, maybe there is a easier way.

I have the Phillips Hue system and I want the lights to auto dim when I start playing anything on plex. When I pause I want the lights to come back on and resume dim again.

I think I can do this with Pushover and an ifttt recipe if I could get pushover to work.

Alpha v0.0.0.80
 - Added Pushbullet
 - Fixed crash where informational messages could be clicked.
 - Fixed crash where closing some notifications would cause Plex Notify to crash.

OK here is what I am actually trying to do, maybe there is a easier way.

I have the Phillips Hue system and I want the lights to auto dim when I start playing anything on plex. When I pause I want the lights to come back on and resume dim again.

I think I can do this with Pushover and an ifttt recipe if I could get pushover to work.

I just added Pushbullet: https://ifttt.com/pushbullet

Hello,
A big thank you for your application, I would like to know if it will be possible to get a notification when new media is added.
I would also like to know if it was possible to send a http request for each pause or playback media for a specific user (in order to incorporate it into my home automation)
Thank you for your answers!

Hello,
A big thank you for your application, I would like to know if it will be possible to get a notification when new media is added.
I would also like to know if it was possible to send a http request for each pause or playback media for a specific user (in order to incorporate it into my home automation)
Thank you for your answers!


I will have recently added done tomorrow.

At the moment there is nothing planned for pause or resume playback. All ideas are welcome though.

Sent from my SM-N900P using Tapatalk
Excellent! 
 
For a http request, just a field available in the application to a specific user. But I am aware that my application is very specific. Or can be used a notification service already available and articulate it with a http request .. I need to think about. 
 
An integration with Twitter is it also possible? 
 
I love this app!
Excellent! 
 
For a http request, just a field available in the application to a specific user. But I am aware that my application is very specific. Or can be used a notification service already available and articulate it with a http request .. I need to think about. 
 
An integration with Twitter is it also possible? 
 
I love this app!

Thank you for the positive feedback! 

Twitter, facebook and google plus are in the works. This way you can post your recently added content.

Alpha v0.0.0.81

New Users screen. Remote desktop friendly and easier to use!

lUgwKBF.png

Road to Beta 1 Update:

Beta v0.0.1.0
- Added Music Support. (This can get very spammy. Notifications are off by default and is used only for statistics purposes.)
- Added additional plugin support
    
- Plugin settings tab has been added to the settings screen.
- Added Web Server
    - Added Web Server
 configurations
    
- Added Web UI for Plugins.
    - Added Web API.
    - Added Web page for your users to manage their notifications.
- Added RSS Feed

- Pushbullet Support
- Added Recently added support
- Added Email Support
    - Added a Email screen where you can create email notifications for users.
    - Emails can be configured to auto-send or send manually.
    - Users can opt-out of emails with an unsubscirbe button auto added to all emails. You will not be able to send email to these users.
    - You can create your own custom HTML email.
    - 2 template emails are included
        
- weekly newsletter
        
- Recently added
    
- Emails use tokens similar to Notification messages to populate the email.
        - Note: (x) is configurable.
- Statistics tokens are for the emailed user not The plex server as a whole.
        - All tables, lists and elements are named for CSS in the tokens. See Documentation at PlexNotify.com for more information and examples.
        - {Recently Added} - This will show the recently added content for the past (x) days OR only the content the emailed user has not been notified about.
        - {Recently Added Detail} - Same as recently added but in a table that displays all the media information.
        - {Movies Watched} - Number of movies watched in the past (x) days.
        - {TV Shows Watched} - Number of TV shows watched in the past (x) days.
        - {Audio Listened To} - Number of audio files listened to in the past (x) days.
        - {Total Plex Time} - The grand total of all the time in both audio and video on your plex servers over the past (x) days.
        - {Total Listen Time} - Total amount of time listened to audio on your plex servers over the past (x) days.
        - {Total Watch Time} - Total amount of time watched on your plex servers over the past (x) days.
        - {Total TV Show Watch Time} - Total amount of time watched for TV shows on your plex servers over the past (x) days.
        - {Total Movie Watch Time} - Total amount of time watched for Movies on your plex servers over the past (x) days.
        - {UserName} - The Friendly name of the user, or if blank or not set, the users Plex Name.
        - {PlexName} - Displays the users Plex Name.
        - {View List Audio} - Displays a list of all audio listened to over the past (x) days.
        - {View List Audio Detail} - Same as View List Audio but in a table that displays all the audio information.
        - {View List TV Show} - Displays a list of all TV shows watched to over the past (x) days.
        - {View List TV Show Detail} - Same as View List TV Show but in a table that displays all the video information.
        - {View List Movies} - Displays a list of all Movies watched to over the past (x) days.
        - {View List Movies Detail} - Same as View List Movies but in a table that displays all the video information.
- UI improvements in settings and statistics screen.
- Updated User Management in settings.
- Fixed detection for video watch "Re-starts"
- Fixed some cases where notifications would be infinitely sent out.
- Fixed memory leak in Stats page

- Social Media Support (Twitter, Facebook, Google+) 

You rock Jbur, this is amazing!


Sent from my Nexus 4 using Tapatalk

Last night, with the update to .80, I started getting an "application cannot be started" error. Details are:

PLATFORM VERSION INFO

Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18444
System.Deployment.dll : 4.0.30319.18408 built by: FX451RTMGREL
clr.dll : 4.0.30319.18444 built by: FX451RTMGDR
dfdll.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
 
SOURCES
Deployment url : file:///C:/Plex%20Notify/Plex%20Notify.application
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET
X-AspNet-Version: 4.0.30319
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET
X-AspNet-Version: 4.0.30319
 
IDENTITIES
Deployment Identity : Plex Notify.application, Version=0.0.0.81, Culture=neutral, PublicKeyToken=74c4c3a5386d1f89, processorArchitecture=msil
Application Identity : Plex Notify.exe, Version=0.0.0.81, Culture=neutral, PublicKeyToken=74c4c3a5386d1f89, processorArchitecture=msil, type=win32
 
APPLICATION SUMMARY
* Installable application.
 
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Plex Notify\Plex Notify.application resulted in exception. Following failure messages were detected:
+ Value does not fall within the expected range.
 
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
 
WARNINGS
There were no warnings during this operation.
 
OPERATION PROGRESS STATUS
* [5/24/2014 9:39:19 PM] : Activation of C:\Plex Notify\Plex Notify.application has started.
* [5/24/2014 9:39:20 PM] : Processing of deployment manifest has successfully completed.
* [5/24/2014 9:39:20 PM] : Installation of the application has started.
* [5/24/2014 9:39:20 PM] : Processing of application manifest has successfully completed.
* [5/24/2014 9:39:21 PM] : Found compatible runtime version 4.0.30319.
* [5/24/2014 9:39:21 PM] : Request of trust and detection of platform is complete.
 
ERROR DETAILS
Following errors were detected during this operation.
* [5/24/2014 9:39:21 PM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.LockApplicationPath(UInt32 Flags, IDefinitionAppId ApId, IntPtr& Cookie)
at System.Deployment.Application.ComponentStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.SubscriptionStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
 
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

Any ideas?

J

ETA: thanks for the excellent work, by the way. I use this literally every day.

Last night, with the update to .80, I started getting an "application cannot be started" error. Details are:

Any ideas?

J

ETA: thanks for the excellent work, by the way. I use this literally every day.

Got it working again. I went into programs and features to uninstall and re-install, and it gave me an option to restore the application to its previous state. 
Not sure what it did, but it's up and running.

J

Got it working again. I went into programs and features to uninstall and re-install, and it gave me an option to restore the application to its previous state. 
Not sure what it did, but it's up and running.

J

Its something with the registry.

First off, awesome work on this.  It's exactly what I was looking for!

I haven't read this entire thread, so I apologize if this has been answered, but is the web server working?  I get the following error when trying to access the web interface:

Server Error in '/' Application.

Specified argument was out of the range of valid values.
Parameter name: site

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298

[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

First off, awesome work on this.  It's exactly what I was looking for!

I haven't read this entire thread, so I apologize if this has been answered, but is the web server working?  I get the following error when trying to access the web interface:

Server Error in '/' Application.

Specified argument was out of the range of valid values.
Parameter name: site

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298

[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

Rss is the only available URL http://localhost:8082/rss/ The root URL will be populated in the near future with something.