×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Device Types

  • Posts: 21
  • Thank you received: 0

Device Types was created by Stephen Cookson

Hi People,

I had to create a new logon, so I don't know what happened to my old one. (That's not why I'm writing, just curious)

I have my own client front-end written in Python using microservices. So of course I rely on the PyIndi class of routines. I'm trying to get a dropdown list of devices by device type (eg CCDs). And there isn't obvisly a device-type field. The nearst I can find is the list segment of the driver name. The driver name seems to be indi_<brand>_<device type>. Is that the only place I can reliably find ccd or ao or telescope or whatever?

Kind regards,

Steve.
1 year 8 months ago #84367

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

Replied by Jasem Mutlaq on topic Device Types

You can use getDriverInterface function. Perhaps there is something similar in pyINDI.
The following user(s) said Thank You: Stephen Cookson
1 year 8 months ago #84369

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

  • Posts: 1185
  • Thank you received: 370

Replied by Wolfgang Reissenberger on topic Device Types

Take a look at the INDI Web Manager implementation indilib.org/support/tutorials/162-indi-web-manager.html. It's written in python. As far as I know it parses the drivers XMLs and gets the device type information from there.
The following user(s) said Thank You: Stephen Cookson
1 year 8 months ago #84370

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

  • Posts: 21
  • Thank you received: 0

Replied by Stephen Cookson on topic Device Types

Thank you guys, Great ansers. I learned much more than I asked.

I had no idea there was all that documentation availbale and I had no idea there was a restful api for the web manager, although I could have guessed. The /status api looks really useful.

Thanks again,

Kind regards

Steve.
1 year 8 months ago #84372

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

Time to create page: 0.241 seconds