×

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

Bi-monthly release with minor bug fixes and improvements

Parameters to pass to a script

  • Posts: 150
  • Thank you received: 15
Hello,

it's would be interesting if i could have some variables to pass to a script.

I explain me

After each photography i can call a script to do something on the image. But, to do that, i must known, at minimum, the name of the picture file. It's would be great if i could get the iso, the duration, the sequence index, ...

that will be sound like that : myscript.sh %picture% %iso% %duration%

Thank you.
6 years 2 months ago #22436

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

Interesting. I guess instead we could just set and unset environment variables and let whatever script uses that. Maybe something like:

EKOS_CAPTURE_FILENAME
EKOS_CAPTURE_ISO
EKOS_CAPTURE_DURATION
EKOS_CAPTURE_...etc

Obviously there are a lot of environment variables to define.
The following user(s) said Thank You: Picard
6 years 2 months ago #22451

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

  • Posts: 150
  • Thank you received: 15
Hi Jasem,

yes, i had not thought at this.

Thank you.
6 years 2 months ago #22474

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

Do you have any programming background? You can try to submit the changes yourself. Look at kstars/ekos/capture.cpp line #1174

This is where the script is executed. You can start setting environment variables before that. It's a good way to get involved in KStars/Ekos. It is a simple task relatively speaking.
6 years 2 months ago #22479

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

  • Posts: 150
  • Thank you received: 15
yes, that will be fun to do. I will try.... see you later.
6 years 2 months ago #22495

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

Time to create page: 0.232 seconds