moonraker-telegram-bot icon indicating copy to clipboard operation
moonraker-telegram-bot copied to clipboard

Custom printer name setup in config

Open Hoeby opened this issue 1 year ago • 7 comments

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

Hoeby avatar Feb 18 '24 11:02 Hoeby

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

Altblechkutscher avatar Feb 19 '24 07:02 Altblechkutscher

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"

Hoeby avatar Feb 19 '24 07:02 Hoeby

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

grafik

grafik

grafik

Altblechkutscher avatar Feb 20 '24 18:02 Altblechkutscher

Yes, that is exactly the idea.

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

Hoeby avatar Feb 20 '24 19:02 Hoeby

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.

Altblechkutscher avatar Feb 20 '24 20:02 Altblechkutscher

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)

owliwar avatar Mar 07 '24 12:03 owliwar

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

Hoeby avatar Mar 07 '24 19:03 Hoeby