Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Parameters to pass to a script

Parameters to pass to a script 7 months 19 hours 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 7 months 10 hours 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 6 months 4 weeks 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 6 months 4 weeks 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 6 months 4 weeks 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.320 seconds

Login

1. 3rd Party

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

1. 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