Closed EricClaeys closed 6 months ago
Alex, let me know if you think the status should be stored in the settings file instead of a separate file. That's make getting the status from Python files easy. I can do another PR to change it.
Alex, let me know if you think the status should be stored in the settings file instead of a separate file. That's make getting the status from Python files easy. I can do another PR to change it.
Eric
Its fine in a separate file
Cheers
Alex
Keep track of the current status of Allsky. ~/allsky/variables defines:
Shell scripts can call
set_allsky_status ONE_OF_THE_VARIABLES_ABOVE
to set the status. It also have atimestamp
of when the status was last updated. Not sure if we'll ever need it though.Shell scripts can call
get_allsky_status
to get the status (one of the strings above). If they need the the timestamp, callget_allsky_status_timestamp
.The WebUI has a
define(ALLSKY_STATUS)
set to ${ALLSKY_STATUS}. It does NOT have variables for the various status strings.