×

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

Bi-monthly release with minor bug fixes and improvements

scripting autofocus for filter offset calculation?

  • Posts: 300
  • Thank you received: 57
I'd like to try scripting my filter focus offset data collection in INDI. Have done this previously in javascript for TheSkyX, and I'm an OK amateur python coder.

Basically I want to run through each of my (7) filters let's say 10 times, doing an autofocus each time and save the resulting data.

I envision slewing to an easy-to-autofocus open star cluster then hitting "run" and then doing something like

for cycle in range(nCycles)
for filter in range(nFilters)
(filter, cycle, position) = doAutofocus(filter, cycle)

Then I would process the data to calculate average filter offsets for R, G, B, Ha, O3, and S2 relative to L

I just set up a new scope and need to do this anyway, so might be a good opportunity to lear how to script Ekos.

Can anybody help me learn how to do this?

Or is scripting only available at very low levels (rotate wheel, take exposure, move focuser, etc?)
3 years 3 months ago #64814

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

It's probably possible to do this with Python + DBus. Check out KStars DBus documentation: api.kde.org/appscomplete-api/kstars-apid...tars/html/index.html

THere is also an old tutorial here: www.indilib.org/support/tutorials/148-db...h-kstars-python.html
The following user(s) said Thank You: Scott Denning
3 years 3 months ago #64834

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

Time to create page: 0.457 seconds