Image Labels - aaronwmorris/indi-allsky Wiki

Overview

The image label can now be customized using a template and python string format codes.

Information regarding python string formats may be found here: https://docs.python.org/3/library/string.html#formatspec

Defaults

This is the default template

{timestamp:%Y%m%d %H:%M:%S}
Exposure {exposure:0.6f}
Gain {gain:d}
Temp {temp:0.1f}{temp_unit:s}
Stars {stars:d}

Variables

Name Type Info
timestamp datetime https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
exposure float Image exposure
gain int Camera gain
temp float Camera temperature
temp_unit str Temperature unit
sqm float SQM average
stars int Star count
detections str Line detections (True or False)
sun_alt float Sun altitude
moon_alt float Moon altitude
moon_phase float Moon phase percentage
sun_moon_sep float Angular separation of sun and moon

Full example

{timestamp:%Y%m%d %H:%M:%S}
Exposure {exposure:0.6f}
Gain {gain:d}
Temp {temp:0.1f}{temp_unit:s}
SQM {sqm:0.0f}
Stars {stars:d}
Detections {detections:s}
Sun Alt {sun_alt:0.1f}
Moon Alt {moon_alt:0.1f}
Moon Phase {moon_phase:0.1f}%
Sun/Moon Separation {sun_moon_sep:0.1f}