Running AutoIntegrate from the Command Line #44
jarmoruuth
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Running AutoIntegrate from the Command Line
You can fully automate AutoIntegrate by launching PixInsight with a script, executing your JSON‑defined workflows, and then exiting—no manual interaction required.
In the GitHub repository https://github.com/jarmoruuth/TestAutoIntegrate there is a sample script runcmdline.js. That script reads a runcmdline.txt file that specifies the Json files to run. Json files are then executed by the AutoIntegrate script. Json files can be created using the AutoIntegrate script.
1. Repository Layout
runcmdline.jsReads
runcmdline.txt, loads each JSON file you list, invokes AutoIntegrate, and writes a per‑run log intoresults/.runcmdline.txtA simple text file listing one or more AutoIntegrate JSON workflows, one per line, optionally followed by a comma and a friendly test name.
2. Configuring
runcmdline.txtEach line in
runcmdline.txthas the format:<path-to-json>[, <test-name>]path-to-jsonAbsolute or relative path to your AutoIntegrate configuration JSON.
test-name(optional)A short label that described the test run.
Example:
D:/Telescopes/test/LRGB_bin2x2/AutoSetupTestDefault.json, LRGB
3. Adjusting the Include Path
By default,
runcmdline.jsexpects the AutoIntegrate source at Windows default installation directory:C:/Program Files/PixInsight/src/scripts/AutoIntegrate/AutoIntegrate.js
If your directory structure differs (for example, you’re using a different operating system), edit the
#includeline at the top ofruncmdline.jsto point to the correct location.4. Running the Script
Invoke PixInsight with the --run option and --force-exit to ensure it quits when done:
5. Output
results/subdirectory is created (if it doesn’t already exist).results/autotest_20250415_235902.logWith this setup, you can batch‑process any number of AutoIntegrate JSON workflows unattended—ideal for nightly runs, CI pipelines, or large‑scale reprocessing.
Beta Was this translation helpful? Give feedback.
All reactions