Hello, I’m attempting to open a file located in the /config/www/
directory of Home Assistant using the Python package PIL within my AppDaemon. This file is a camera snapshot that I want to crop.
Here’s the relevant line of code:
im = Image.open('/config/www/test.jpg')
Error:
File “/config/apps/app_daemon_cap_flap.py”, line 12, in onActionFired
im = Image.open(‘/config/www/test.jpg’)
How can I achieve this please?