config
frog.config
¤
Common constants used throughout the app.
Attributes¤
ANGLE_PRESETS = {'zenith': 180.0, 'nadir': 0.0, 'hot_bb': 270.0, 'cold_bb': 225.0, 'home': 0.0, 'park': 90.0}
module-attribute
¤
Preset angles that the mirror can rotate to.
APP_AUTHOR = 'Imperial College London'
module-attribute
¤
The name of the app's author (used for program data path).
APP_CONFIG_PATH = user_config_path(APP_NAME, APP_AUTHOR, ensure_exists=True)
module-attribute
¤
Path where config files will be saved.
APP_NAME = 'FROG'
module-attribute
¤
A human-readable name for the app.
APP_VERSION = version('frog')
module-attribute
¤
The current version of the app.
BAUDRATES = (4800, 9600, 19200, 38400, 57600, 115200)
module-attribute
¤
The valid baud rates for use by the GUI.
DECADES_HOST = 'localhost'
module-attribute
¤
The IP address or hostname of the DECADES server.
DECADES_POLL_INTERVAL = 5.0
module-attribute
¤
Poll rate for DECADES sensors.
DECADES_URL = 'http://{host}/decades'
module-attribute
¤
The URL of the DECADES sensor data endpoint.
DEFAULT_DATA_FILE_PATH = Path.home()
module-attribute
¤
The default path to save data files.
DEFAULT_DECADES_PARAMETERS = ('static_pressure', 'gin_altitude', 'deiced_true_air_temp_c')
module-attribute
¤
Default DECADES parameters to request.
DEFAULT_EM27_HTTP_TIMEOUT = 20.0
module-attribute
¤
The default HTTP timeout for the EM27Sensors and OPUSInterface devices.
DEFAULT_FTSW500_HOST = 'localhost'
module-attribute
¤
The IP address or hostname of the machine running the FTSW500 software.
DEFAULT_FTSW500_POLLING_INTERVAL = 1.0
module-attribute
¤
How long to wait between polls of FTSW500's status.
DEFAULT_FTSW500_PORT = 7778
module-attribute
¤
The port on which the TCP server of FTSW500 is listening.
DEFAULT_HTTP_TIMEOUT = 10.0
module-attribute
¤
How long to wait for a response from a server for.
DEFAULT_OPUS_HOST = 'localhost'
module-attribute
¤
The IP address or hostname of the machine running the OPUS software.
DEFAULT_OPUS_POLLING_INTERVAL = 1.0
module-attribute
¤
How long to wait between polls of the EM27's status.
Note that in reality the minimum poll interval is ~2s, because that's how long the device takes to reply. This value then determines how often we wait before even starting a request.
DEFAULT_OPUS_PORT = 80
module-attribute
¤
The port for OPUS HTTP requests.
DEFAULT_SCRIPT_PATH = Path.home()
module-attribute
¤
The default path to search for script files in.
EM27_HOST = '10.10.0.1'
module-attribute
¤
The IP address or hostname of the EM27 device.
EM27_SENSORS_POLL_INTERVAL = 60.0
module-attribute
¤
Poll rate for EM27 properties.
EM27_SENSORS_URL = 'http://{host}/diag_autom.htm'
module-attribute
¤
The URL of the EM27 monitoring web server.
FTSW500_TIMEOUT = 5.0
module-attribute
¤
How long to wait for a response from FTSW500 for.
HARDWARE_SET_USER_PATH = APP_CONFIG_PATH / 'hardware_sets'
module-attribute
¤
Path where user-added hardware set config files will be saved.
NUM_TEMPERATURE_MONITOR_CHANNELS = 8
module-attribute
¤
The number of temperature channels for temperature monitors.
SENECA_MAX_MILLIVOLT = 20
module-attribute
¤
The default maximum voltage output (millivolts) of the Seneca K107 device.
SENECA_MAX_TEMP = 105
module-attribute
¤
The default maximum temperature limit of the Seneca K107 device.
SENECA_MIN_MILLIVOLT = 4
module-attribute
¤
The default minimum voltage output (millivolts) of the Seneca K107 device.
SENECA_MIN_TEMP = -80
module-attribute
¤
The default minimum temperature limit of the Seneca K107 device.
SENSORS_TOPIC = 'sensors'
module-attribute
¤
The topic name to use for sensor-related messages.
SPECTROMETER_TOPIC = 'spectrometer'
module-attribute
¤
The topic name to use for spectrometer-related messages.
STEPPER_MOTOR_HOMING_TIMEOUT = 10.0
module-attribute
¤
The number of seconds to wait for the motor to home.
STEPPER_MOTOR_TOPIC = 'stepper_motor'
module-attribute
¤
The topic name to use for stepper motor-related messages.
TEMPERATURE_CONTROLLER_POLL_INTERVAL = 2
module-attribute
¤
Number of seconds between temperature controller device reads.
TEMPERATURE_CONTROLLER_TOPIC = 'temperature_controller'
module-attribute
¤
The topic name to use for temperature controller-related messages.
TEMPERATURE_MONITOR_COLD_BB_IDX = 7
module-attribute
¤
Position of the cold blackbody on the temperature monitoring device.
TEMPERATURE_MONITOR_HOT_BB_IDX = 6
module-attribute
¤
Position of the hot blackbody on the temperature monitoring device.
TEMPERATURE_MONITOR_POLL_INTERVAL = 2
module-attribute
¤
Number of seconds between temperature monitoring device reads.
TEMPERATURE_MONITOR_TOPIC = 'temperature_monitor'
module-attribute
¤
The topic name to use for temperature monitor-related messages.
TEMPERATURE_PLOT_TIME_RANGE = 900
module-attribute
¤
Range of time axis on blackbody temperature plot, in seconds.
TEMPERATURE_PRECISION = 2
module-attribute
¤
Number of decimal places used when writing temperatures to data files (Kelvin).
TIME_NTP_HOST = 'localhost'
module-attribute
¤
The IP address or hostname of the NTP time server.
TIME_NTP_POLL_INTERVAL = 600.0
module-attribute
¤
Poll rate for NTP updates.
TIME_NTP_PORT = 123
module-attribute
¤
The port to use for NTP queries.
TIME_NTP_TIMEOUT = 5.0
module-attribute
¤
The timeout for NTP queries.
TIME_NTP_VERSION = 4
module-attribute
¤
The version of the NTP protocol to use.
TIME_TOPIC = 'time'
module-attribute
¤
The topic name to use for time-related messages.