Script to use Mini-Timebox from Divoom as matrix display (with sound)

Python and python framework

Moderator: leecollings

Post Reply
Thorgal789
Posts: 918
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Script to use Mini-Timebox from Divoom as matrix display (with sound)

Post by Thorgal789 »

Hi, I have a code to share, but "as it", I will not make support for it.
With this code you can use this little matrix as indicator, or for notification, you can send image/animation/time/sound/scrolling text ect ... just using command line.

The code.
https://github.com/Smanar/timebox
The hardware.
http://www.divoom.com/product/timebox-mini.html

A configuration exemple, with a virtual switch.
timebox.jpg
timebox.jpg (112.65 KiB) Viewed 3039 times
The configuration is a little bit complex as all is hard coded. But some remark:
- it can play wav sound, but you need to install mpg123 for http stream or mp3.
- It works without problem with the integrated bluetooth on Pi3.
- If you don't know the MAC adress of your device, you can use the command "discover" (python2 timebox.py discover)
- You need to pair the device and add it in thrust mode with bluetoothctl.
- Use the timebox.sh file as wrapper to avoid problems
- On my side I have just installed files on home/pi not in domoticz folder, and paths are hardcoded too.
- There is only 2 lines for config (edit the timebox.py file) :

Code: Select all

#Use this line, if you have problem with importerror
sys.path.insert(0,'/home/pi/.local/lib/python2.7/site-packages/')
# Config
MAC_TIMEBOX = "11:75:58:E4:71:30"
Post Reply