×

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

Bi-monthly release with minor bug fixes and improvements

pyindi-client to get specific types of device (e.g. TELESCOPE_INTERFACE)

  • Posts: 90
  • Thank you received: 12
I was attempting to use pyindi-client to get a specific type of devices from the indi server.
What I'm trying to do is to mount the lsm303d to the telescope OTA, and roughly line up its position pointing to the sky and sync its alt/az to the connected telescope device. So I can speed up the plate-solving by populating the coordinates the telescope is (roughly) pointing to, to the Ekos plate-solving module.

I've found this in the C++ lib but seemed the pyindi-client do not have an interface to it?
bool INDI::BaseClient::getDevices ( std::vector< INDI::BaseDevice * > & deviceList, uint16_t driverInterface )

I was able to see in PyIndi.py that certain enum were defined. But I'm not sure how to use them. Any clues?

INDI_DEVICE_NOT_FOUND = _PyIndi.BaseDevice_INDI_DEVICE_NOT_FOUND
INDI_PROPERTY_INVALID = _PyIndi.BaseDevice_INDI_PROPERTY_INVALID
INDI_PROPERTY_DUPLICATED = _PyIndi.BaseDevice_INDI_PROPERTY_DUPLICATED
INDI_DISPATCH_ERROR = _PyIndi.BaseDevice_INDI_DISPATCH_ERROR
GENERAL_INTERFACE = _PyIndi.BaseDevice_GENERAL_INTERFACE
TELESCOPE_INTERFACE = _PyIndi.BaseDevice_TELESCOPE_INTERFACE
CCD_INTERFACE = _PyIndi.BaseDevice_CCD_INTERFACE
GUIDER_INTERFACE = _PyIndi.BaseDevice_GUIDER_INTERFACE
FOCUSER_INTERFACE = _PyIndi.BaseDevice_FOCUSER_INTERFACE
FILTER_INTERFACE = _PyIndi.BaseDevice_FILTER_INTERFACE
DOME_INTERFACE = _PyIndi.BaseDevice_DOME_INTERFACE
GPS_INTERFACE = _PyIndi.BaseDevice_GPS_INTERFACE
WEATHER_INTERFACE = _PyIndi.BaseDevice_WEATHER_INTERFACE
AO_INTERFACE = _PyIndi.BaseDevice_AO_INTERFACE
DUSTCAP_INTERFACE = _PyIndi.BaseDevice_DUSTCAP_INTERFACE
LIGHTBOX_INTERFACE = _PyIndi.BaseDevice_LIGHTBOX_INTERFACE
DETECTOR_INTERFACE = _PyIndi.BaseDevice_DETECTOR_INTERFACE
ROTATOR_INTERFACE = _PyIndi.BaseDevice_ROTATOR_INTERFACE
SPECTROGRAPH_INTERFACE = _PyIndi.BaseDevice_SPECTROGRAPH_INTERFACE
AUX_INTERFACE = _PyIndi.BaseDevice_AUX_INTERFACE
5 years 2 months ago #34078

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

Time to create page: 0.323 seconds