×

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

Bi-monthly release with minor bug fixes and improvements

Adding custom readable variables to an indi driver

  • Posts: 456
  • Thank you received: 76
I have written a roll-off driver for my roof and its working well. I based it on the roll-off simulator driver.
However I would like to be able to query the driver's properties programatically to determine if the roof is open/closed.
Currently I have no property that stores the open/close state of the roof.
See list of props below.

Is it possible to add my own custom property to my driver or am I restricted to the ones that come wth INDI::Dome?
If so then I guess I could use the 'shutter' propery from there....

Derek
pi@raspberrypi ~ $ indi_getprop -h 192.168.1.226 -p 7624 "Aldi roof.*.*"
Aldi roof.CONNECTION.CONNECT=On
Aldi roof.CONNECTION.DISCONNECT=Off
Aldi roof.DRIVER_INFO.DRIVER_NAME=Aldi roof
Aldi roof.DRIVER_INFO.DRIVER_EXEC=indi_aldiroof
Aldi roof.DRIVER_INFO.DRIVER_VERSION=1.0
Aldi roof.DRIVER_INFO.DRIVER_INTERFACE=32
Aldi roof.DEBUG.ENABLE=Off
Aldi roof.DEBUG.DISABLE=On
Aldi roof.SIMULATION.ENABLE=Off
Aldi roof.SIMULATION.DISABLE=On
Aldi roof.CONFIG_PROCESS.CONFIG_LOAD=Off
Aldi roof.CONFIG_PROCESS.CONFIG_SAVE=Off
Aldi roof.CONFIG_PROCESS.CONFIG_DEFAULT=Off
Aldi roof.DEVICE_PORT.PORT=/dev/ttyUSB0
Aldi roof.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator
Aldi roof.ACTIVE_DEVICES.ACTIVE_WEATHER=
Aldi roof.DOME_MOTION.DOME_CW=Off
Aldi roof.DOME_MOTION.DOME_CCW=Off
Aldi roof.DOME_ABORT_MOTION.ABORT=Off
Aldi roof.DOME_PARK.PARK=Off
Aldi roof.DOME_PARK.UNPARK=On
Aldi roof.DOME_AUTOPARK.Enable=Off
Aldi roof.DOME_AUTOPARK.Disable=On
Aldi roof.USEJOYSTICK.ENABLE=Off
Aldi roof.USEJOYSTICK.DISABLE=On
Aldi roof.DEVICE_PORT.PORT=/dev/ttyUSB0
Aldi roof.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator
Aldi roof.ACTIVE_DEVICES.ACTIVE_WEATHER=
Aldi roof.USEJOYSTICK.ENABLE=Off
Aldi roof.USEJOYSTICK.DISABLE=On
8 years 1 month ago #7269

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

Time to create page: 0.200 seconds