Cant send .png files always get the message "Provided path is not a file" #363
Unanswered
phantom101
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You are definitely entering the "platinum issue description" category. On the first glance it looks good to me. We'll investigate and get back to you, thanks for the effort of writing everything up this nicely. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just want to send the gcode preview along with my print start message.
My original macro:
[gcode_macro START_PRINT_MSG]
gcode:
RESPOND PREFIX=tg_send_image MSG="path=['/home/phantom/printer_data/gcodes/.thumbs/{printer.print_stats.filename}-300x300.png'], message='🖨️ Printer has started: {printer.print_stats.filename}' "
Outcome:
Telegram msg:
Provided path is not a file
Console:
tg_send_image path=['/home/phantom/printer_data/gcodes/.thumbs/msgtest.gcode-300x300.png'], message='🖨️ Printer has started: msgtest.gcode'
Log:
No log entry to this.
First i thought maybe the {printer.print_stats.filename} will be a problem so for testing i changed it to a full path:
RESPOND PREFIX=tg_send_image MSG="path='./printer_data/gcodes/.thumbs/msgtest-300x300.png', message='test' "
or
RESPOND PREFIX=tg_send_image MSG="path='/printer_data/gcodes/.thumbs/msgtest-300x300.png', message='test' "
Outcome: The same as above.
Next thought was maybe the bot has no file permission so i have done a chmod 777 on folder and file.
Outcome: The same as above.
Then i noticed the "." in the folder name .thumbs may be here is the problem so a try a absolute different file to get sure bot has permissions also done a chmod 777.
RESPOND PREFIX=tg_send_image MSG="path='./klipper/docs/img/klipper-logo.png', message='test' "
or
RESPOND PREFIX=tg_send_image MSG="path='/klipper/docs/img/klipper-logo.png', message='test' "
outcome:
Always the same as above ...
Maybe i am too dumb and miss something ?
Thanks for help !
Beta Was this translation helpful? Give feedback.
All reactions