views
- Flask url definitions¶
-
fplaneserver.flask.views.
get_current_fplane
(datestr=None)[source]¶ Get the fplane file for a given date, or the current one of datestr is not given or is one of latest or current
Retrieve the the fplane file for a given date or the current one.
-
fplaneserver.flask.views.
update_fplane
()[source]¶ Update the spectrograph configuration
The datestr is used as the starting date of the new configuration
The data section of the request must be a json dictionary. Its structure must be:
{config: config dictionary commit: True | False}
The
config
is the dictionary retrieved from TCS using:syscmd -V 'get_hardware_status'
The
commit
is boolean flag, specifying if the update should be commited to the databaseThe fplaneserver updates the database tables and returns a new fplane file.