#Matrix Portal Album Art
1 messages · Page 1 of 1 (latest)
Yes, you need to make it writable in boot.py, see https://learn.adafruit.com/circuitpython-essentials/circuitpython-storage
Here is my code I use on my web server to convert the image starting on line 71: https://github.com/prcutler/silversaucer/blob/dev/services/api_service.py
And I use AdafruitIO for MQTT, made it easy (I use to run my own MQTT broker, but that was a pain)
I will most likely use the media player integration in home assistant to fetch the image from there over its api. I already have a broker setup there, so Im not sure which method I will use for getting the image just yet.
If I can only have my computer or the Circuit python device interacting with the onboard storage, How do i switch between them? Do I delete the boot.py when iam modifying the other script?
I do this, which I believe is not recommended:
import time
import storage
print("**************** WARNING ******************")
print("Using the filesystem as a write-able cache!")
print("This is risky behavior, backup your files!")
print("**************** WARNING ******************")
storage.remount("/", disable_concurrent_write_protection=True)
time.sleep(5)