-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
enhancementNew feature or requestNew feature or request
Description
If someone wanted to insert a "save what the camera sees every N seconds" routine into the pifinder stack (through a fork + PR) where would you like to see this added?
I would like to add:
- config item to the web to set default capture
- None
- Timer (seconds)
- Sky change
- Capture Settings:
- interval in seconds
- Sky change Delta of float(RA), Delta of float(Dec)
- console menu to select current image capture mode (default behavior to only be modifiable from the web config)
- console menu to adjust the interval seconds and save to stored config (RA/Dec should probably only be changed in the web config)
- web page area for viewing/downloading/erasing the images.
- a storage folder
- card capacity protection
The solver function is likely the best place to put this so it triggers on a timer always.
from datetime
now = datetime.datetime.now()
New dataclass called "last_solve"
- timestamp: datetime = <time of last platesolve>
- RA: float = CurrentSolve.RA
- Dec: float = CurrentSolve.Dec
def TakeNewPhoto:
imageformat = "PNG"
NewFileName = f"{now.strftime("%Y-%m-%d %H%M%S}_RA-{CurrentSolve.RA}_Dec{CurrentSolve.Dec}.{imageformat.lower()}"
image.save(NewFileName,imageformat)
if config.imagecapture = interval
if now - last_solve.timestamp).total_seconds()) > config.ImageCaptureInterval:
<take a new photo>
elif config.imagecapture = skychange
import math
if math.isclose(abs(last_solve.RA), abs(current_solve.RA),rel_tol=config.skychangedelta) || math.isclose(abs(last_solve.Dec), abs(current_solve.Dec),rel_tol=config.skychangedelta):
<take new photo>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request