Build a python-dbus script


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

  • Posts: 18
  • Thank you received: 1

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic Build a python-dbus script

Hi Luca,

Have you seen this tutorial?
indilib.org/support/tutorials/148-dbus-s...h-kstars-python.html

I believe it has some of what you are looking for.

The Kstars/Ekos API reference for controlling
api.kde.org/kstars/html/group__DBusInterface.html

Gene
2 years 3 months ago #83768

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 1
Ok, some progress has been made.

I can connect, checks the connection and also set the camera properties through the indi dbus interface.

Now I need to use some special functionality of ekos, like the autofocus. Looking in the introspection file of ekos, I didn't find any method that start the autofocus routine.
By now, the only way that came to mind is to load a scheduler with the autofocus setp selected. But is there another method? Maybe more simply and more "command line" like?

I try to look at the API reference of Kstars and Ekos, but I think that the methods reported are only valid for C language and not for python bindings.

Thanks,

Luca
2 years 2 months ago #83919

Please Log in or Create an account to join the conversation.

  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic Build a python-dbus script

Hi Luca,

Check out the focus.h, it identifies d_bus interfaces
github.com/KDE/kstars/blob/master/kstars/ekos/focus/focus.h

I have not used it but another data point
The following user(s) said Thank You: Luca Rosignoli
2 years 2 months ago #83923

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 1

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 2257
  • Thank you received: 223
I'll be highly interested in your focus dbus script.
2 years 1 month ago #85142

Please Log in or Create an account to join the conversation.

Time to create page: 1.235 seconds