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: Post capture script parameters

Post capture script parameters 5 months 4 days ago #26005

  • Gilles
  • Gilles's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 120
  • Karma: 2
  • Thank you received: 29
Hi

in order to play around with stacking,
i'd like to know if there is a way to pass a few parameters to the script you can execute after each capture,
or if this script can use some sort of global parameters
(like index of image, target, filter, TS, etc...)
Any thoughts ?



Gilles.
Attachments:

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

Last Edit: by Gilles.

Post capture script parameters 5 months 4 days ago #26008

fyi, Don't know if you've seen this.

indilib.org/develop/developer-manual/104-scripting.html

This is indi properties vs EKOS but you may be able to get what you want. Your idea of "variables" like $filter, etc is a great idea.

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

Post capture script parameters 3 months 5 days ago #27440

  • Gilles
  • Gilles's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 120
  • Karma: 2
  • Thank you received: 29
Hi

doing this i'm able to pass parameters, it looks to do what i want... :)
Any advice ?
diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp
index 561a89b5c..10b56fdf4 100644
--- a/kstars/ekos/capture/capture.cpp
+++ b/kstars/ekos/capture/capture.cpp
@@ -1229,7 +1229,18 @@ bool Capture::setCaptureComplete()
     // Check if we need to execute post capture script first
     if (activeJob->getPostCaptureScript().isEmpty() == false)
     {
-        postCaptureScript.start(activeJob->getPostCaptureScript());
+        postCaptureScript.start(activeJob->getPostCaptureScript(), QStringList() 
+        << activeJob->getFilterName() 
+        << activeJob->getFullPrefix() 
+        << activeJob->getRemoteDir() 
+        << activeJob->getLocalDir() 
+        << activeJob->getRawPrefix() 
+        << activeJob->getDirectoryPostfix() 
+        << QString::number(activeJob->getExposure()) 
+        << QString::number(activeJob->getFrameType()) 
+        << QString::number(seqCurrentCount) 
+        << QString::number(seqTotalCount) 
+        );
         appendLogText(i18n("Executing post capture script %1", activeJob->getPostCaptureScript()));
         return true;
     }

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

  • Page:
  • 1
Time to create page: 0.550 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