Skip to content

DanJunior78/Repetier-Server-Telegram-Bot

Repository files navigation

Repetier-Server-Telegram-Bot - Python

Version: 1.1.3 - 27.03.2021 - (Project not supported anymore - 21.01.2022)

Telegram Bot connecting your Repetier Server and your Telegram bot account.

It updates frequently your bot and you´ll have latest information about your prints and printer status.

Application is tested on Windows 10, Windows Server, Raspberry Pi, Proxmox VM and Linux Mint 20 (thanks to all supporting gents from the news group)

Following requierements:

Python >= 3.8

Please visit the wiki for helpful information related to this program: Main Wiki Page

If you want to support me with a fresh coffee and if you think it´s worthing what i'm doing, donate something, to get a fresh coffee Push here 💌

Update requirements from >1.1.0:

Please copy /locale and /mod folder to your local installation.

Images/Pictures

New in V1.1.3:

After first installation bot is able to update via the bot and manual start. The update button is visible if there is an update.

New in V1.1.0:

New Main View Printer Handling Printer Handling Printer Queue Print Slection

New in V1.0.2:

Main View Printer Detail Printing view collapsed Heat up at print start Heat up at print start 2 Cool down at print finish and message New settings in V1.0.2 New debug support files in V1.0.2

impressions from Beta users (thanks again to Seb):

User Impression V1.0.2 User Impression 2 V1.0.2

New in V05 (content still valid in V1.0.2):

External Commands Webcam

New in V04 (content still valid in V1.0.2):

Quick Command and Settings Quick Command and Settings Settings Settings_Temperature Settings_ExtCommand Notifications

Library dependencies (install via pip):

  • pip install arrow
  • pip install websocket_client
  • pip install requests
  • pip install imageio
  • pip install pygifsicle
  • pip install opencv-python
  • pip install python-telegram-bot

please check correct installation depending on your Python installation with: python3 -m pip list / python3.9 -m pip list

and try if not properly installed via e.g. for Python 3.9: python3.9 -m pip install xxxxxxxxxx

UPDATE ALL PIP PACKAGES. CHECK WITH: python3.9 -m pip list --outdated -> Update all what is possible. Some are not possible, leaf them.

12/17/20: please don´t update single libraries via pip. known issues with: pip install numpy==1.19.4 -> program would not start as it is a problem on latest Windows 10 64bit installations.

How to update from an old version:

Please only stop your actual running bot and exchange all files. From V1.0.2 and greater all updates will work without exchange of the .json file. From > V1.0.2 please use in linux:

How to get started:

Configuration File (JSON): Repetier-Server_Telegram_Bot_Vx.json

Requiered data: What to fill in:
"CFG_VERSION": "Vxxx.xxx.xx" --> do not change!!!
"LANGUAGE": "en" --> Possible to change to your language, otherwise it will be used the system setting or if not availble, it will keep program in english.
"MY_REPETIER_SERVER_API_KEY": "" --> Your Repetier-Server API Key
"RepetierServerIP": "" --> Fill in your Repetier-Server IP adress, e.g. "192.168.100.44"
"RepetierServerPort": "3344" --> usually Repetier-Server port is: 3344
"MY_TELEGRAM_ID": --> Your telgram ID -> Is a integer number. You can check the number via the bot: Telegram Bot Raw - It feedbacks your details
"MY_TELEGRAM_TOKEN": "" --> Your botfather token
"printers": [] --> Do not change!!!
"gui": [] --> Do not change!!!

Available Languages:

German, English, Spanish Please be aware of differences in the platform (Windows and Linux).

You can reduce the program size by deleting languages in the folder ./locale (But i would not recommend it, there are still only 3 languages inside...a few kB of your HD)

Additional information & support request

i would appreciate if someone would support me to add languages. I would be fully supportive with it, because i´ve a translation tool available. Please get in contact with me.

I am not a programming specialist, I know the code is looking maybe terrible for some persons which do program frequently. The software itself is stable. I would be happy if someone with better programming skills would support me with dividing the main program to separated files (Bot, Connection to Server, etc.). I was not able to program it (Every program gets somehow better, but i am far away of declaring myself professional).

I am also new to Github. It´s my first program which i made available. So please, i am open to learn. Let me know, if there is something to improve.

I have a job. I do this in my free time. So, please, i´ll answer usually <24h. I am located in europe, so don´t expect wonders, if i am sleeping, lol.

Disclaimer: It´s free, it´s in my eyes a missing feature for persons which used before Octoprint and miss the telegram bot option