nlef / moonraker-telegram-bot

Telegram bot to interact with Moonraker (Klipper Web API Server)
Creative Commons Zero v1.0 Universal
245 stars 64 forks source link

Custom printer name setup in config #301

Open Hoeby opened 6 months ago

Hoeby commented 6 months ago

What would you like to see added?

When the printer is started, the first message is "printer online".

I have multi printers, all with there own klipper environment. But also with there own hardware. Both give the first message "printer online"

Would like to modify the name "printer" so that i know which one is online.

Tried in mainsail to modify the printer name, but that isn't send in the telegram messages

Altblechkutscher commented 6 months ago

Don't you use individual bots? In my case, I have named the bot corresponding to my printer, which gives me a nice notification:

image

Hoeby commented 6 months ago

No, i use 1 bot for all. It is also used for my home automation. This gives me all information in 1 bot view.

I know that i can't use the commands from telegram, to control the printer. Because more environments are lissening to the same bot. But i think that has nothing to do with the name "printer online"

Altblechkutscher commented 6 months ago

So if I've understood correctly, something like this?

grafik

grafik

grafik

Hoeby commented 6 months ago

Yes, that is exactly the idea.

If i see it correctly, it is waiting for approve, to get merged?

Altblechkutscher commented 6 months ago

Yup. Did recently a change for another topic and knew where to add things to the config, so i just added it. You can just take my changes and hardcopy them to your moonraker-telegram-bot folder. I don't know if my changes are compliant to the repo of @nlef , but from my side it works.

owliwar commented 6 months ago

oh! I didnt know I could use a single bot for multiple printers... I added them all in a group chat and added the group id as chat id. it works (kinda)

Hoeby commented 6 months ago

Be aware that sending commands by telegram doesn't work then. If you are adware for this and don't use it, then it is no problem