my camera feed is unfortunatly rotated by 90 degrees. I didn't find any way to rotate the camera feed itself - which is acceptable, but I'm sending a snapshot via telegram, and that is also rotated.
Not the question wold be: is there any way to rotate the image somewhere in the process?
Here's my code:
Code: Select all
os.execute('wget -O /opt/domoticz/userdata/camsnapshot.jpg http://127.0.0.1:8090/camsnapshot.jpg?idx=1')
os.execute('curl -s -X POST "https://api.telegram.org/bot"XXXXXXXX"/sendPhoto" -F chat_id=XXXXXX -F photo="@/opt/domoticz/userdata/camsnapshot.jpg"')