insta360-wifi-api icon indicating copy to clipboard operation
insta360-wifi-api copied to clipboard

package needed

Open pascalisfort opened this issue 2 years ago • 1 comments

Hi, I really insterested to try your code to comunicate with our insta360 camera. But when I try to use insta360-remote or the exemple code, I receive the message (ModuleNotFoundError: No module named 'capture_state_pb2'), I search for a package including this module, but I dont find it, can you indicate to me which pacakage I need to install to run your code

Thank you Pascal

pascalisfort avatar Aug 18 '23 19:08 pascalisfort

The missing package is the result of the compilation of the Protobuf files into an importable Python code. The Protobuf files are not distributed by Insta, but you can extract them from e.g. the Android Insta360 package. You can find a recipe describing the required steps (extract the files from the Android library and convert them into Python code) and the links to the required tools here: https://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/insta360_one_rs_wifi_reverse_engineering#getting_the_proto_files_from_the_android_apk

RigacciOrg avatar Aug 19 '23 04:08 RigacciOrg