Jump to content

Telegram notification?


schumi2004

Recommended Posts

schumi2004

Well I'm almost done except I'm struggling getting it compiled.

I followed this guide but visual studio is to new I think?

https://github.com/MediaBrowser/Emby/wiki/How-to-build-a-Server-Plugin

 

Keeps complainig I'm missing things. I probably doing things wrong regarding inherit stuff.

I used pushover project as basis but maybe that's not the way to go?

Link to comment
Share on other sites

schumi2004
This is the error together with a lot of warnings about missing referenced components that could not be found.

 

Severity Code Description Project File Line Suppression State

Error This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is D:\users\winuser\Downloads\Emby.Plugins-master\Emby.Plugins-master\MediaBrowser.Plugins.TelegramNotifications\\.nuget\NuGet.targets. MediaBrowser.Plugins.TeleGramNotifications D:\users\winuser\Downloads\Emby.Plugins-master\Emby.Plugins-master\MediaBrowser.Plugins.TelegramNotifications\MediaBrowser.Plugins.TeleGramNotifications.csproj 83

 

I'm using Visual Studio 2015 and was unable to select Windows Universal 8.1 framework so i picked Windows Universal 10.

Visual Studio is also completely new for me;)

Link to comment
Share on other sites

  • 8 months later...
  • 8 months later...
darkside40

Okay i had a look at the Plugin schumi2004 push to his repo. Dont know if he is the author or where the Plugin originated.

 

First i have to say that i am not an very good software engineer nor have i ever done something with C#, Emby Plugin Developement or VS2017. So have mercy with the code.

After 3-4 hours of fiddling, searching the net etc. i am at the stage where i can send Messages to a bot. Yeah!

 

I have rebuild the plugin like mentioned in the wiki to Target .Net Standard 1.3.

I will see that i polish the code a bit over the wiki in than push it up to github, so people could test it.

Link to comment
Share on other sites

darkside40

Hi Luke,

what would be the correct Namespace for this Plugin?

Emby.Plugin.Telegramnotification or Mediabrowser.Plugin.Telegramnotification?

Link to comment
Share on other sites

darkside40

Okay almost done, only one cosmetic question.

How do i include the logo image into my project?

I have lookes at other plugins but have not found out how to do this. 

Link to comment
Share on other sites

Cool, thanks ! I would suggest posting a .dll here that users can install easily. Once it's gotten a little user testing then we can submit it to the catalog. Thanks.

Link to comment
Share on other sites

Overseer

I downloaded the zip from github, copied the DLL to my plugin folder and restarted EMBY.  The plug-in appears under my plug-ins.  I got to the setup page but the "Configure Telegram notifications for:" box is empty.  Should users appear there?

 

I enter the bot token and user key but when I hit save I get the following message:

 

Exception of type 'MediaBrowser.Common.Extensions.ResourceNotFoundException' was thrown.

 

This looks to be part of the log for the error:

2018-05-21 18:21:54.060 Info HttpServer: WS http://emby.****.us:8096/socket?api_key=7efd282bdd334a3093fb65807d9f1dce&deviceId=b1c59c9e8e45f8eed19df40dd7d0955ec560f628. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
2018-05-21 18:22:54.053 Error HttpServer: Error in SharpWebSocket: An exception has occurred while receiving a message.. Exception.Message: The header part of a frame cannot be read from the data source.
2018-05-21 18:23:18.386 Info HttpServer: HTTP GET http://emby.****.us:8096/web/configurationpage?fakeusernameremembered=&fakepasswordremembered=. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
2018-05-21 18:23:18.390 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.4.1.6
	Command line: C:\Users\Admin\AppData\Roaming\Emby-Server\system\EmbyServer.dll -service
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 4
	Program data path: C:\Users\Admin\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\Admin\AppData\Roaming\Emby-Server\system
	MediaBrowser.Common.Extensions.ResourceNotFoundException: Exception of type 'MediaBrowser.Common.Extensions.ResourceNotFoundException' was thrown.
	   at MediaBrowser.WebDashboard.Api.DashboardService.Get(GetDashboardConfigurationPage request)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.Execute(Type serviceType, IRequest request, Object instance, Object requestDto, String requestName)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
	MediaBrowser.Common.Extensions.ResourceNotFoundException
	   at MediaBrowser.WebDashboard.Api.DashboardService.Get(GetDashboardConfigurationPage request)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.Execute(Type serviceType, IRequest request, Object instance, Object requestDto, String requestName)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

post-254-0-92403500-1526952836_thumb.png

Edited by Overseer
Link to comment
Share on other sites

darkside40

I will have a look at it.

Seems that you use the latest beta.

I have only tested the Plugin on the stable version of Emby.

 

First i have to figure out how to have multiple Server Versions installed on my machine. 

Link to comment
Share on other sites

Overseer

My apologies. Yes, I'm on the beta channel for Emby server. I should have mentioned that.

Link to comment
Share on other sites

  • 1 month later...
george.carstoiu

Thanks for the work. Just installed and configured and it works flawlessly. Looking forward to seeing it in the plugins catalog.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...