Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.58 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.58 KB

Google flatbuffers example

This is a little example of Google flatbuffers with python3 and hyperion

Documentation

Google flatbuffers:

Hyperion docs:

Requirements

Google flatbuffers (flatc):

Hyperion ambilight project:

Hyperion flatbuffers schemas (*.fbs):

python 3:

python Colour:

python Pillow:

Execution

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.

Results

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

Other projects:

Google flatbuffers with Kodi and Hyperion:

Google protobuf with Kodi and Hyperion: