Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Parameters to pass to a script

Parameters to pass to a script 4 months 5 days ago #22436

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.

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

Parameters to pass to a script 4 months 4 days ago #22451

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: Christian

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Parameters to pass to a script 4 months 4 days ago #22474

Hi Jasem,

yes, i had not thought at this.

Thank you.

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

Parameters to pass to a script 4 months 3 days ago #22479

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.

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Parameters to pass to a script 4 months 3 days ago #22495

yes, that will be fun to do. I will try.... see you later.

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

  • Page:
  • 1
Time to create page: 0.110 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica