nlef / moonraker-telegram-bot

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

[Bug]: Red Overlayer from Telegram #282

Open SpaceRichard opened 1 year ago

SpaceRichard commented 1 year ago

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!

komandrik commented 1 year ago

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 commented 1 year ago

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

SpaceRichard commented 1 year ago

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

Darthyson commented 1 year ago

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.

SpaceRichard commented 1 year ago

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.

horego commented 1 year ago

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.