Jump to content

Recommended Posts

Posted

Hi I wanted to ask you for help to configure notifications on telegram by inserting images via the webhook plugin. I use the plugin taken from this link https://github.com/Fahmula/emby-telegram-notifier. I set the configuration of the app.py file in this way
TELEGRAM_BOT_TOKEN = os.environ.get("79.......2HRI")
TELEGRAM_CHAT_ID = os.environ.get("-100.......8")
EMBY_BASE_URL = os.environ.get("http://f......e:5000")
EMBY_API_KEY = os.environ.get("0a2......63")
putting where emby base url is the address for remote access to the server. I run the file and it gives me this:

* Serving Flask app 'app' * Debug mode: off 2024-10-31 08:31:35,746 - INFO - [31m [1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. [0m

* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:5000
* Running on http://192.168.1.14:5000
2024-10-31 08:31:35,791 - INFO - [33mPress CTRL+C to quit [0m


From emby I add the configuration as a photo in attachment, send the test notification and I get this response:

2024-10-31 08:37:46,317 - INFO - 127.0.0.1 - - [31/Oct/2024 08:37:46] "POST /webhook HTTP/1.1" 200 -

but no notification arrives on telegram
Does anyone understand something?

Screenshot 2024-10-31 083638.png

Posted

when i add new content i get this response from the program.

 

2024-10-31 11:26:55,908 - ERROR - Failed to retrieve item details: Invalid URL 'None/emby/Items': No scheme supplied. Perhaps you meant https://None/emby/Items?
Exception in thread Thread-280 (process_payload):
Traceback (most recent call last):
  File "C:\Users\Antonio\AppData\Local\Programs\Python\Python313\Lib\threading.py", line 1041, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "C:\Users\Antonio\AppData\Local\Programs\Python\Python313\Lib\threading.py", line 992, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Antonio\Desktop\Nuova cartella (2)\emby-telegram-notifier-main\app.py", line 145, in process_payload
    if not item_details["Items"][0].get("Overview"):
           ~~~~~~~~~~~~^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Posted

Hi, have you consulted with the developer of this plugin for instructions on how to use it?

Posted (edited)

sì è @jdazzle44 ma non mi ha ancora risposto. Non so se qualcun altro può aiutarmi

Edited by AntonioP01
Posted
2 hours ago, Luke said:

OK waiting on @jdazzle44. Thanks.

but where can I find the emby api?

Posted
2 hours ago, AntonioP01 said:

but where can I find the emby api?

What do you mean by emby api?

Posted
14 hours ago, Luke said:

Cosa intendi per emby api?

in the program it asks me for some variables to set including emby api key. I wanted to know exactly where I can find it.

Screenshot_20241101_112208_Chrome.jpg

Posted

Have you explored the api keys section in the server dashboard?

Posted (edited)
16 minutes ago, Luke said:

Have you explored the api keys section in the server dashboard?

this? Sorry but the page is in Italian, is it API key? chiavi api= API KEY

Screenshot 2024-11-01 222044.png

Edited by AntonioP01
Posted

Did you configure the display language to be Italian?

Posted
7 hours ago, Luke said:

Did you configure the display language to be Italian?

this?

Screenshot 2024-11-02 090844.png

Posted
On 11/2/2024 at 4:10 AM, AntonioP01 said:

this?

Screenshot 2024-11-02 090844.png

Yes.

Posted
4 hours ago, Luke said:

Yes.

yes, I use this one. But that plugin doesn't work either.

Posted

What exactly doesn't work?

Posted
1 minute ago, Luke said:

What exactly doesn't work?

the plugin i configured, i sent the error in the first post, i'm still waiting for the creator's response.

  • Thanks 1
  • 2 months later...
richenginner
Posted

how to run in windows 10?

Posted
37 minutes ago, richenginner said:

how to run in windows 10?

The github link in the first post seems to have some detailed instructions.

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...