Results 1 to 3 of 3

Thread: Access iio-sensorproxy from python

  1. #1

    Default Access iio-sensorproxy from python

    Hello everybody,

    I would like to read my flipbook sensors within a python code.
    I discovered this library: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy, but my programming skills are too low to allow me to understand how to call it from python.

    Could you please give me some pointers?
    Many thanks in advance

  2. #2
    Join Date
    Sep 2012
    Posts
    7,856

    Default Re: Access iio-sensorproxy from python

    iio-sensors-proxy exports information over D-Bus. The monitor-sensor program included with iio-sensors-proxy can be used as reference to available properties and how to query/parse them and there is a lot of boiler plate code for using D-Bus in Python. Actually monitor-sensor probably translates one-to-one into Python with GDbus.

  3. #3

    Default Re: Access iio-sensorproxy from python

    Thanks for the suggestion, I'm now looking into that. It seems that I could probably achieve the same results with some bash scripting, in my case is going to be qdbus though

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •