Ever wanted to browse/export animations/images without using the divoom app?
This home assistant integration spins up a web server to host a website. On this website you can easily browse and export PNG and GIFs to the "pixelart" folder in the HA config folder.
The best thing? You don't even need an account!
NOTE: this product is not affiliated with nor endorsed by Divoom or Home Assistant
- cloud v1: 11x11px animations and pictures
- Clone this repo (by downloading and extracting the zip or
git clone) - Copy or symlink (with docker) the
divoom_cloud_browserfolder into thecustom_componentsfolder of your HA configuration directory (you maybe need to create it first). - Add
divoom_cloud_browser:to yourconfiguration.yaml - Restart home assistant
- Open up
http://<host_ip>:5000Optional: - Add a web view card for this address on a dashboard and make it as big as possible to browse the gallery directly in HA:
type: grid cards: - type: iframe url: http://<host_ip>:5000 aspect_ratio: 100% grid_options: columns: full rows: 12- Set up a media folder to view the assets on the server:
homeassistant: media_dirs: pixelart: /your-path-to-ha-config/pixelart # e.g. "/config/pixelart" in the HA docker imageBrowse for a media you want, enable the "Save to HA" checkbox and click on the desired asset. You will get an alert confirming the export and stating the file name.
You can now use the home assistant integration for divoom devices to display the file.
Make sure your working directory is in the root of the repo
DO NOT USE THIS SERVER IN PRODUCTION! FLASK_APP=custom_components/divoom_cloud_browser/backend_server.py FLASK_ENV=development FLASK_DEBUG=0 python -m flask run
You can also use the tkinter GUI mostly copied from this repo. I added an old (v1) cloud checkbox that enables you to use the older cloud API (without authentication). If you click on the thumbnails, you can also export media to your desired saving location.
python custom_components/divoom_cloud_browser/CloudAnimationBeanDecoder.py
- cloud v1: 11x11px & 16x16px animations and pictures
- cloud v2: 16x16px, 32x32px & 64x64px animations and pictures