Loading config.py +65 −55 Original line number Diff line number Diff line Loading @@ -31,79 +31,89 @@ Python syntax is mandatory. ____________________________ ''' ''' ------------- SITE location ------------- ''' _observatory_name = 'INAF_OATo' # Name of the observatory _observatory_latitude = 45.039868 # Latitude N of the observatory [deg] _observatory_longitude = 7.762582 # Longitude E of the observatory [deg] _observatory_altitude = 600 # Altitude from sea level of the observatory [m] _observatory_horizon = 90 # Altitude of the Sun below which the program will take data [deg] _observatory_name = 'GURUGU' _observatory_latitude = 40.447862 _observatory_longitude = -3.364992 _observatory_altitude = 680 _observatory_horizon = 10 # If Sun is below this altitude, the program will take data ''' ------------ DEVICE specs ------------ ''' _device_shorttype = 'SQM' # Device STR in the file _device_type = 'SQM_LU' # Device type in the Header _device_type = 'SQM_LE' # Device type in the Header _device_id = _device_type + '-' + _observatory_name # Long Device lame _device_locationname = 'Villalbilla/Spain - Observatorio GURUGU' # Device location in the world _data_supplier = 'Mireia Nievas / Universidad Complutense de Madrid' # Data supplier (contact) _device_addr = '/dev/ttyUSB1' # Default IP address of the ethernet device (if not automatically found) _measures_to_promediate = 1 # Take the mean of N measures _delay_between_measures = 2 # Delay between two measures. In seconds. _cache_measures = 1 # Get X measures before writing on screen/file _plot_each = 1 # Call the plot function each X measures. _use_mysql = False # Set to True if you want to store data on a MySQL db. _mysql_host = None # Host (ip:port / localhost) of the MySQL engine. _mysql_user = None # User with write permission on the db. _mysql_pass = None # Password for that user. _mysql_database = None # Name of the database. _mysql_dbtable = None # Name of the table _mysql_port = None # Port of the MySQL server. _device_locationname = 'Pino Torinese/Italy - Astrophysical Observatory of Torino' # Device location in the world _data_supplier = 'Dario Barghini / INAF - OATo' # Data supplier (contact) _device_addr = '169.254.156.64' # Default IP address of the ethernet device (if not automatically found) ''' ---------------- MEASURE settings ---------------- ''' _local_timezone = +1 # UTC+1 _computer_timezone = +0 # UTC _offset_calibration = -0.11 # magnitude = read_magnitude + offset _offset_calibration = -0.11 # Calibration offset (e.g. due to the SQM housing window) _measures_to_promediate = 1 # Take the mean of N measures _delay_between_measures = 300 # Delay between two measures [sec] _cache_measures = 1 # Get X measures before writing on screen/file _plot_each = 1 # Call the plot function each X measures _reboot_on_connlost = False # Reboot if we loose connection # Monthly (permanent) data monthly_data_directory = "/tmp/sqm_gurugu/" # Daily (permanent) data daily_data_directory = monthly_data_directory+"/datos_diarios/" limits_nsb = [20.0,16.5] # Limits in Y-axis # Daily (permanent) graph daily_graph_directory = monthly_data_directory+"/graficos_diarios/" # Current data, deleted each day. current_data_directory = monthly_data_directory # Current graph, deleted each day. current_graph_directory = monthly_data_directory # Summary with statistics for the night summary_data_directory = monthly_data_directory ''' ---------------------------- PySQM data center (OPTIONAL) ---------------------------- ---------- mySQL info ---------- ''' _use_mysql = False # Set to True if you want to store data on a MySQL db _mysql_host = None # Host (ip:port / localhost) of the MySQL engine _mysql_user = None # User with write permission on the db _mysql_pass = None # Password for that user _mysql_database = None # Name of the database _mysql_dbtable = None # Name of the table _mysql_port = None # Port of the MySQL server # Send the data to the data center _send_to_datacenter = False ''' ------------------ DIRECTORY settings ------------------ ''' main_directory = "C:\\PySQM\\data\\" # Main directory monthly_data_directory = main_directory + "monthly\\" # Monthly (permanent) data daily_data_directory = main_directory + "daily\\" # Daily (permanent) data daily_graph_directory = main_directory + "daily\\" # Daily (permanent) graph current_data_directory = main_directory + "current\\" # Current data, deleted each day current_graph_directory = main_directory + "current\\" # Current graph, deleted each day summary_data_directory = main_directory + "current\\" # Summary with statistics for the night ''' Ploting options ------------ PLOT options ------------ ''' full_plot = True limits_nsb = [20.0,16.5] # Limits in Y-axis limits_time = [17,9] # Hours limits_nsb = [20.0, 0.] # Limits in y-axis (MPSAS) limits_time = [12, 12] # Hours limits_sunalt = [-80, 5] # Degrees ''' Email options ---------------------------- PySQM data center (OPTIONAL) ---------------------------- ''' _send_data_by_email = False _send_to_datacenter = False # Send the data to the data center ''' ------------- EMAIL options ------------- ''' _send_data_by_email = False No newline at end of file Loading
config.py +65 −55 Original line number Diff line number Diff line Loading @@ -31,79 +31,89 @@ Python syntax is mandatory. ____________________________ ''' ''' ------------- SITE location ------------- ''' _observatory_name = 'INAF_OATo' # Name of the observatory _observatory_latitude = 45.039868 # Latitude N of the observatory [deg] _observatory_longitude = 7.762582 # Longitude E of the observatory [deg] _observatory_altitude = 600 # Altitude from sea level of the observatory [m] _observatory_horizon = 90 # Altitude of the Sun below which the program will take data [deg] _observatory_name = 'GURUGU' _observatory_latitude = 40.447862 _observatory_longitude = -3.364992 _observatory_altitude = 680 _observatory_horizon = 10 # If Sun is below this altitude, the program will take data ''' ------------ DEVICE specs ------------ ''' _device_shorttype = 'SQM' # Device STR in the file _device_type = 'SQM_LU' # Device type in the Header _device_type = 'SQM_LE' # Device type in the Header _device_id = _device_type + '-' + _observatory_name # Long Device lame _device_locationname = 'Villalbilla/Spain - Observatorio GURUGU' # Device location in the world _data_supplier = 'Mireia Nievas / Universidad Complutense de Madrid' # Data supplier (contact) _device_addr = '/dev/ttyUSB1' # Default IP address of the ethernet device (if not automatically found) _measures_to_promediate = 1 # Take the mean of N measures _delay_between_measures = 2 # Delay between two measures. In seconds. _cache_measures = 1 # Get X measures before writing on screen/file _plot_each = 1 # Call the plot function each X measures. _use_mysql = False # Set to True if you want to store data on a MySQL db. _mysql_host = None # Host (ip:port / localhost) of the MySQL engine. _mysql_user = None # User with write permission on the db. _mysql_pass = None # Password for that user. _mysql_database = None # Name of the database. _mysql_dbtable = None # Name of the table _mysql_port = None # Port of the MySQL server. _device_locationname = 'Pino Torinese/Italy - Astrophysical Observatory of Torino' # Device location in the world _data_supplier = 'Dario Barghini / INAF - OATo' # Data supplier (contact) _device_addr = '169.254.156.64' # Default IP address of the ethernet device (if not automatically found) ''' ---------------- MEASURE settings ---------------- ''' _local_timezone = +1 # UTC+1 _computer_timezone = +0 # UTC _offset_calibration = -0.11 # magnitude = read_magnitude + offset _offset_calibration = -0.11 # Calibration offset (e.g. due to the SQM housing window) _measures_to_promediate = 1 # Take the mean of N measures _delay_between_measures = 300 # Delay between two measures [sec] _cache_measures = 1 # Get X measures before writing on screen/file _plot_each = 1 # Call the plot function each X measures _reboot_on_connlost = False # Reboot if we loose connection # Monthly (permanent) data monthly_data_directory = "/tmp/sqm_gurugu/" # Daily (permanent) data daily_data_directory = monthly_data_directory+"/datos_diarios/" limits_nsb = [20.0,16.5] # Limits in Y-axis # Daily (permanent) graph daily_graph_directory = monthly_data_directory+"/graficos_diarios/" # Current data, deleted each day. current_data_directory = monthly_data_directory # Current graph, deleted each day. current_graph_directory = monthly_data_directory # Summary with statistics for the night summary_data_directory = monthly_data_directory ''' ---------------------------- PySQM data center (OPTIONAL) ---------------------------- ---------- mySQL info ---------- ''' _use_mysql = False # Set to True if you want to store data on a MySQL db _mysql_host = None # Host (ip:port / localhost) of the MySQL engine _mysql_user = None # User with write permission on the db _mysql_pass = None # Password for that user _mysql_database = None # Name of the database _mysql_dbtable = None # Name of the table _mysql_port = None # Port of the MySQL server # Send the data to the data center _send_to_datacenter = False ''' ------------------ DIRECTORY settings ------------------ ''' main_directory = "C:\\PySQM\\data\\" # Main directory monthly_data_directory = main_directory + "monthly\\" # Monthly (permanent) data daily_data_directory = main_directory + "daily\\" # Daily (permanent) data daily_graph_directory = main_directory + "daily\\" # Daily (permanent) graph current_data_directory = main_directory + "current\\" # Current data, deleted each day current_graph_directory = main_directory + "current\\" # Current graph, deleted each day summary_data_directory = main_directory + "current\\" # Summary with statistics for the night ''' Ploting options ------------ PLOT options ------------ ''' full_plot = True limits_nsb = [20.0,16.5] # Limits in Y-axis limits_time = [17,9] # Hours limits_nsb = [20.0, 0.] # Limits in y-axis (MPSAS) limits_time = [12, 12] # Hours limits_sunalt = [-80, 5] # Degrees ''' Email options ---------------------------- PySQM data center (OPTIONAL) ---------------------------- ''' _send_data_by_email = False _send_to_datacenter = False # Send the data to the data center ''' ------------- EMAIL options ------------- ''' _send_data_by_email = False No newline at end of file