Esempio n. 1
0
#    validation.email.header.missing[bcc, cc, mail_to, sender, signature, subject]
#    validation.email.header.summary
#    validation.email.header.summary[bcc, cc, mail_to, sender, signature, subject]
#    validation.email.header.test
#    validation.email.header.test[bcc, cc, mail_to, sender, signature, subject]
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# initialize validation configuration
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

validation = ConfigObject('validation', None)
validation.constraints = (('network', '!=', 'icao'), ('active', '=', 'Y'))
validation.search_criteria = (('network', '!=', 'icao'), )

# station.(activate or deactivate or missing).(html or text)
activate = ConfigObject('activate', None, 'html', 'text')
deactivate = ConfigObject('deactivate', None, 'html', 'text')
missing = ConfigObject('missing', None, 'html', 'text')
station = ConfigObject('station', None, activate, deactivate, missing)
del activate, deactivate, missing

# summary.(activate or deactivate or missing)
summary = ConfigObject('summary', None, 'activate', 'deactivate', 'missing')

# content.(station or summary)
content = ConfigObject('content', None, station, summary)
# validaton.email.(header or content)
Esempio n. 2
0
#    sensors.email.header.test[bcc, cc, mail_to, sender, signature, subject]
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# initialize sensor error detection configuration
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

sensors = ConfigObject('sensors', None, 'email.header', 'email.content',
                       'email.content.error.html', 'email.content.error.text',
                       'email.content.summary.detail', 'pcpn')

# some attributes coomon to all sensors
sensors.constraints = (('network', '!=', 'icao'), ('active', '=', 'Y'))
sensors.end_hour = 7
sensors.grid_offset = 0.0625  # 5 x 5 grid, 20 km**2
sensors.search_criteria = (('network', '!=', 'icao'), )
sensors.start_hour = 8
sensors.station_metadata =\
        'sid,name,ucanid,active,network,lat,lon,first_hour,last_report'

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# precip specific attributes
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

sensors.pcpn.grid_threshold = 0.1  # 0.05
sensors.pcpn.missing_threshold = 1