Skip to content

Browse the (old) divoom cloud via a website (started by e.g. Home Assistant) and directly add media to a folder on the server or via a GUI and download the desired asset as GIF/PNG

License

Notifications You must be signed in to change notification settings

RandomModderJDK/divoom-cloud-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Divoom Cloud Browser

Ever wanted to browse/export animations/images without using the divoom app?

Web Page through home assistant integration

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

Supported media on the web page

  • cloud v1: 11x11px animations and pictures

Installation of web server as home assistant integration

  1. Clone this repo (by downloading and extracting the zip or git clone)
  2. Copy or symlink (with docker) the divoom_cloud_browser folder into the custom_components folder of your HA configuration directory (you maybe need to create it first).
  3. Add divoom_cloud_browser: to your configuration.yaml
  4. Restart home assistant
  5. Open up http://<host_ip>:5000 Optional:
  6. 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
  1. 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 image

Using the web page

Browse 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.

Run development server

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

(unstable) tkinter GUI

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.

Run GUI

python custom_components/divoom_cloud_browser/CloudAnimationBeanDecoder.py

Supported media on the tkinter GUI (GUI is untested except the cloud gallery page)

  • cloud v1: 11x11px & 16x16px animations and pictures
  • cloud v2: 16x16px, 32x32px & 64x64px animations and pictures

About

Browse the (old) divoom cloud via a website (started by e.g. Home Assistant) and directly add media to a folder on the server or via a GUI and download the desired asset as GIF/PNG

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published