Batch Stacking Module
- seestarpy.stack.clear_batch_stack()
Clear the batch stack state after stacking completes or is stopped.
The official app sends this as
clear_app_statewith{"name": "BatchStack"}after a batch stack finishes.Note
Confirmed via traffic capture from the official Seestar app v3.0.2 on 2026-02-24.
- Return type:
dict
Examples
>>> from seestarpy import stack >>> stack.clear_batch_stack()
- seestarpy.stack.get_batch_stack_setting()
Get the current batch stack configuration.
Returns the path and list of files currently configured for batch stacking. The firmware enriches each file entry with
date,thn(thumbnail path), andtypefields.Note
Confirmed via traffic capture from the official Seestar app v3.0.2 on 2026-02-24.
- Return type:
dict
Examples
>>> from seestarpy import stack >>> stack.get_batch_stack_setting()
- seestarpy.stack.get_batch_stack_status()
Return the current batch stack progress, or
Noneif no batch stack is active.Queries
iscope_get_app_stateand extracts theBatchStackkey.Note
Confirmed via traffic capture from the official Seestar app v3.0.2 on 2026-02-24.
- Returns:
The
BatchStackstate dict when a batch stack has been run, orNoneif not present. Key fields:state(str):"working","complete","fail", or"cancel".percent(float): Progress from 0 to 100.stacked_img(int): Number of frames stacked so far.total_img(int): Total frames to stack.remaining_sec(int): Estimated seconds remaining.output_file(dict): Present on completion, containspathandfileswith the output FITS and thumbnail.
- Return type:
dict or None
Examples
>>> from seestarpy import stack >>> status = stack.get_batch_stack_status() >>> if status and status["state"] == "complete": ... out = status["output_file"]["files"][0]["name"] ... print(f"Stacked: {out}")
- seestarpy.stack.set_batch_stack_setting(path, files)
Configure which sub-frames to include in the next batch stack.
This must be called before
start_batch_stack(). The files are FITS sub-frames stored on the Seestar’s SD card.Note
Confirmed via traffic capture from the official Seestar app v3.0.2 on 2026-02-24.
- Parameters:
path (str) – Folder on the Seestar containing the sub-frames, e.g.
"MyWorks/M 101_sub". Use forward slashes.files (list[str]) – List of FITS filenames to stack. Each filename follows the Seestar naming convention:
Light_<target>_<exposure>_<filter>_<YYYYMMDD>-<HHMMSS>.fit
- Return type:
dict
Examples
>>> from seestarpy import stack >>> stack.set_batch_stack_setting( ... path="MyWorks/M 101_sub", ... files=[ ... "Light_M 101_10.0s_LP_20260120-061408.fit", ... "Light_M 101_10.0s_LP_20260120-061345.fit", ... "Light_M 101_10.0s_LP_20260120-061326.fit", ... ], ... )
- seestarpy.stack.start_batch_stack()
Start batch stacking the files configured via
set_batch_stack_setting().Call
set_batch_stack_setting()first to select the sub-frames. Monitor progress withget_batch_stack_status(). When stacking completes, callclear_batch_stack()to reset the state.Note
Confirmed via traffic capture from the official Seestar app v3.0.2 on 2026-02-24.
- Return type:
dict
Examples
>>> from seestarpy import stack >>> stack.set_batch_stack_setting("MyWorks/M 101_sub", [ ... "Light_M 101_10.0s_LP_20260120-061408.fit", ... "Light_M 101_10.0s_LP_20260120-061345.fit", ... ]) >>> stack.start_batch_stack()
- seestarpy.stack.stop_batch_stack()
Stop a batch stack that is currently in progress.
- Return type:
dict
Examples
>>> from seestarpy import stack >>> stack.stop_batch_stack()