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