Commit 4c479058 authored by vertighel's avatar vertighel
Browse files

refactor: cameras.ini sostituisce viewer.ini come sorgente di verità UI



Nuovo file noctua/config/cameras.ini con sezioni scicam1/2/teccam1/2/3.
Campi: role, station, power_api, fits_path, device (solo teccam), has_loop.
viewer.ini eliminato.

Co-Authored-By: default avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent 0e08dcab
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line

# #########################################################
# [cam_id]        — canonical identifier used in URLs and
#                   telemetry (e.g. scicam1, teccam2)
#
# role      — sci | tec
# station   — integer station number
# power_api — REST endpoint that gates this camera's power;
#             empty means always available (depends-on cab only)
# fits_path — path to the FITS file relative to data/
#             (or absolute); written by devices, read by viewer
# device    — device name in devices.ini that the viewer loop
#             drives directly (tec only: viewer IS the acq loop)
# has_loop  — true if the viewer can run a hw-driven live loop
# #########################################################

##############
# Scientific cameras
##############

[scicam1]
role      = sci
station   = 1
power_api = /scicam1/power
fits_path = fits/scicam1.fits

[scicam2]
role      = sci
station   = 2
power_api = /scicam2/power
fits_path = fits/scicam2.fits

# [scicam3]
# role      = sci
# station   = 3
# fits_path = fits/scicam3.fits

##############
# Technical (guider) cameras
##############

[teccam1]
role      = tec
station   = 1
power_api = /scicam1/power
fits_path = fits/teccam1.fits
device    = tec1
has_loop  = true

[teccam2]
role      = tec
station   = 2
fits_path = fits/teccam2.fits
device    = tec2
has_loop  = true

[teccam3]
role      = tec
station   = 3
fits_path = fits/teccam3.fits
device    = tec3
has_loop  = true

noctua/config/viewer.ini

deleted100644 → 0
+0 −26
Original line number Diff line number Diff line
# noctua/config/viewer.ini
#
# Map station/camera identifiers to FITS file paths.
# The key must match the URL pattern: /api/viewer/<station>/<camera>/...
# Paths are relative to the project data/ directory.

[station1/scicam]
path = fits/scicam1.fits

[station1/teccam]
path = fits/teccam1.fits
device = teccam

[station2/scicam]
path = fits/scicam2.fits

[station2/teccam]
path = fits/teccam2.fits
device = teccam2

[station3/scicam]
path = /data/station3/latest_sci.fits

[station3/teccam]
path = fits/teccam3.fits
device = teccam3