Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PySQM Darkersky4CE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dario Barghini
PySQM Darkersky4CE
Commits
b8653c53
Commit
b8653c53
authored
5 months ago
by
Dario Barghini
Browse files
Options
Downloads
Patches
Plain Diff
Update config.py
parent
9edf3d59
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
config.py
+65
-55
65 additions, 55 deletions
config.py
with
65 additions
and
55 deletions
config.py
+
65
−
55
View file @
b8653c53
...
...
@@ -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_L
U
'
# Device type in the Header
_device_type
=
'
SQM_L
E
'
# 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
'''
----------
------------------
P
ySQ
M data center (OPTIONAL)
----------
------------------
----------
m
ySQ
L 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
=
[
1
7
,
9
]
# Hours
limits_nsb
=
[
20.0
,
0.
]
# Limits in
y
-axis
(MPSAS)
limits_time
=
[
1
2
,
12
]
# Hours
limits_sunalt
=
[
-
80
,
5
]
# Degrees
'''
Email options
----------------------------
PySQM data center (OPTIONAL)
----------------------------
'''
_send_data
_by_email
=
False
_send_
to_
data
center
=
False
# Send the data to the data center
'''
-------------
EMAIL options
-------------
'''
_send_data_by_email
=
False
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment