Jump to content

Telemby - Emby Telegram Bot


Recommended Posts

This is really good, I'm impressed. It's something I will use for instant commands and Telegram is the only instant messenger I use these days. You should also add an command option to restart Emby.

Link to post
Share on other sites

Funny you should say that, it's already in the code I just forgot to add it to the help text as it's literally a fire and forget atm.

 

Try /restartserver and it should work already.

 

There's no status polling or anything though so it will be a case of waiting and firing /status a few times till it comes back.

Link to post
Share on other sites
  • 4 weeks later...

Hello,

 

is there a way to install the plugin without docker?

I would like to have my debian server as clean as possible

  • Like 1
Link to post
Share on other sites

Hello,

 

is there a way to install the plugin without docker?

I would like to have my debian server as clean as possible

 

 

yup of course you can, although I'd argue that the container would keep it cleaner to be honest.

 

You'll need to install Python3.

 

Then install the requirements at https://github.com/matty87a/telemby/blob/master/src/requirements.txt via pip3.

 

Once that's done you can set up the config and run the .py file (both located here: https://github.com/matty87a/telemby/tree/master/app)

 

It may also be worth wrapping the .py file in a systemd file for easier process management - e.g: https://tecadmin.net/setup-autorun-python-script-using-systemd/

 

Hope that helps!

Link to post
Share on other sites

Hello,

 

is there a way to install the plugin without docker?

I would like to have my debian server as clean as possible

 

Sorry OT

 

I don't think there's a cleaner way to do software than docker containers and docker-compose. I have about 20 containers on my dedi server. The docker host only has docker installed (and an rclone gsuite mount) no other software and because the software is all in containers it is completely OS neutral and can be easily moved to another host (move from linux to windows even) by just moving the config volumes and running docker-compose on the new host

Edited by Pog22
Link to post
Share on other sites

Very cool, how do I install on windows? Can you help me?

 

Hi,

 

I'm not a windows user, but I'm fairly sure you can just use the same docker image?

Link to post
Share on other sites

Is there any way i could get this to post the output from /status to a channel on a daily schedule?

 

Hi,

 

For that the easiest thing would be a cron job firing a simplified script, knocked one up for you:

 

script: https://github.com/matty87a/telemby/blob/master/send_status.py

 

rough guide: https://github.com/matty87a/telemby/blob/master/SEND_STATUS.md

 

It's a bit rough around the edges as I've only just put it together, so your mileage may vary.

 

Afraid I won't be able to help too much with it outside of the above, but its worked fine for me when I've tested it. 

 

Hope it helps!

Link to post
Share on other sites

Hi,

 

For that the easiest thing would be a cron job firing a simplified script, knocked one up for you:

 

script: https://github.com/matty87a/telemby/blob/master/send_status.py

 

rough guide: https://github.com/matty87a/telemby/blob/master/SEND_STATUS.md

 

It's a bit rough around the edges as I've only just put it together, so your mileage may vary.

 

Afraid I won't be able to help too much with it outside of the above, but its worked fine for me when I've tested it.

 

Hope it helps!

That is super thanks.

Link to post
Share on other sites

Ah, I have this working many thanks, but I'd like the info at the end of status movies episodes etc. sorry for being a right pain  :D

Link to post
Share on other sites

Ah, I have this working many thanks, but I'd like the info at the end of status movies episodes etc. sorry for being a right pain  :D

 

updated the script - while i was there I managed to remove the guide but i'll add that back at some point in case anyone else needs it.

 

https://github.com/matty87a/telemby/blob/master/send_status.py

 

If anything else needs adding in you'll have to adapt it from the main bot scripts  ;)

Edited by matty87a
Link to post
Share on other sites
  • 1 year later...

Does anyone know if this still works?

2020-12-09 06:25:51,429 - telegram.bot - DEBUG - Entering: get_updates          
2020-12-09 06:25:51,429 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - D
EBUG - Starting new HTTPS connection (4): api.telegram.org                      
2020-12-09 06:25:56,630 - telegram.ext.updater - DEBUG - Timed out getting Updat
es: Timed out                                                                   
2020-12-09 06:25:56,630 - telegram.bot - DEBUG - Entering: get_updates          
2020-12-09 06:25:56,631 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - D
EBUG - Starting new HTTPS connection (5): api.telegram.org                      
2020-12-09 06:26:01,835 - telegram.ext.updater - DEBUG - Timed out getting Updat
es: Timed out                                                                   
2020-12-09 06:26:01,835 - telegram.bot - DEBUG - Entering: get_updates          
2020-12-09 06:26:01,835 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - D
EBUG - Starting new HTTPS connection (6): api.telegram.org                      
2020-12-09 06:26:07,034 - telegram.ext.updater - DEBUG - Timed out getting Updat
es: Timed out                                                                   
2020-12-09 06:26:07,034 - telegram.bot - DEBUG - Entering: get_updates          
2020-12-09 06:26:07,034 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - D
EBUG - Starting new HTTPS connection (7): api.telegram.org                      
2020-12-09 06:26:12,241 - telegram.ext.updater - DEBUG - Timed out getting Updat
es: Timed out                                                                   
2020-12-09 06:26:12,241 - telegram.bot - DEBUG - Entering: get_updates          
2020-12-09 06:26:12,242 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - D
EBUG - Starting new HTTPS connection (8): api.telegram.org        

 

Never properly starts

Edited by matt4542
Link to post
Share on other sites
  • 1 month later...
matty87a

@matt4542
 

My container has been running (with auto restarts) pretty much constantly for a while, the current has been up for 2 weeks and, having just checked, i'm seeing the same error in my docker logs - but the actual bot and telegram commands are working fine still for me.

 

I dont currently have time to work on this, but the log entries may be a red herring as ive been able to use all bot commands fine when I have tested today.

 

Link to post
Share on other sites
Prfilmes
I installed the Plugin, but I am still unable to receive notifications of releases by telegrams of the posted files.
 This plugin does this, we have some manual, or video for these details.
 I thank you and your work is very good
Edited by Prfilmes
Link to post
Share on other sites
Luke
On 1/23/2021 at 12:42 PM, Prfilmes said:

I installed the Plugin, but I am still unable to receive notifications of releases by telegrams of the posted files.
 This plugin does this, we have some manual, or video for these details.
 I thank you and your work is very good

Hi, did you configure the plugin?

Link to post
Share on other sites

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