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

[Bug]: Red Overlayer from Telegram

Open SpaceRichard opened this issue 1 year ago • 6 comments

What happened and in what context?

The timelaps video gets a red overlay at the end. The 5sec video have it too, but the klipper timelapse not, so I would locate this issue to the telegram generation within telegram.

If needed, paste the relevant bot log contents here.

No response

If needed, paste the relevant bot journal contents here.

No response

What branch does this occur on?

master

Reports only on latest master or development branches!

  • [X] I have updated to latest development/master version before submitting the bug

SpaceRichard avatar Jul 22 '23 09:07 SpaceRichard

I have the same problem. The bot sends normal pictures to Telegram, but renders them in red.

https://github.com/nlef/moonraker-telegram-bot/assets/40995038/b8ea3140-a5af-4538-bfd7-f8e592d96b23

1

komandrik avatar Jul 24 '23 22:07 komandrik

I didn't wait for a response, reinstalled debian11 x32, and the video stopped showing in red.

komandrik avatar Aug 01 '23 23:08 komandrik

Really wonder what is the reason. A fix would be great instead of reinstalling the system.

SpaceRichard avatar Aug 06 '23 21:08 SpaceRichard

Maybe an outdated version of OpenCV. You can try pip3 install opencv-python. At least it worked for me today on a raspberry 4 with bullseye x64.

Darthyson avatar Aug 06 '23 21:08 Darthyson

Thanks @Darthyson I also run pip3 install --upgrade pip as only OpenCV was not solving the issues. Now the red layer is gone.

I'm not sure if the project can or should do something in order to prevent this, so I keep it open. Let the author decide.

SpaceRichard avatar Aug 07 '23 06:08 SpaceRichard

Same issue for me. A proper fix would help.

Edit: @Darthyson for me this solution worked out on Rpi 3b with most recent Bullseye 64bit.

source ~/moonraker-telegram-bot-env/bin/activate
pip install opencv-python

i noticed that this package is included in requirements.dev.txt but not inside requirements.txt. Have not diggt to deep inside the issue but maybe adding "opencv-python" inside requirements.txt might help. I'm not very familiar with python. Hopefully the author can have a look.

horego avatar Aug 18 '23 20:08 horego