This is a little example of Google flatbuffers with python3 and hyperion
Google flatbuffers:
- https://github.com/google/flatbuffers
- https://google.github.io/flatbuffers/flatbuffers_guide_tutorial.html
Hyperion docs:
Google flatbuffers (flatc):
Hyperion ambilight project:
Hyperion flatbuffers schemas (*.fbs):
python 3:
python Colour:
- https://github.com/vaab/colour
pip install colour
python Pillow:
- https://github.com/python-pillow/Pillow
pip install pillow
Execute the program and select an option of the menu:
python3 flatbuffers-hyperion.py
If hyperion is not running you will get an error message.
There are a few lines in hyperion local website log with the code:
[FLATBUFSERVER]
and 2 files were created in the program folder:
- flatbuffers_send.bin
- flatbuffers_recv.bin
To transform those .bin into .json execute this:
flatc --json --raw-binary hyperion_request.fbs -- flatbuffers_send.bin
flatc --json --raw-binary hyperion_reply.fbs -- flatbuffers_recv.bin
Google flatbuffers with Kodi and Hyperion:
Google protobuf with Kodi and Hyperion: