Skip to content

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

Notifications You must be signed in to change notification settings

CPVprogrammer/hyperion-flatbuffers-example

Repository files navigation

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:

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages