source: trunk/src/reporting/gmewhtmlemail/gmewhtmlemail.d @ 8007

Revision 8007, 10.1 KB checked in by alexander, 4 months ago (diff)

Adding in new conversion file for EWAVE and gmewhtmlemail
Also adding option to restrict thresholds to particular network

  • Property svn:executable set to *
Line 
1# gmewhtmlemail configuration file
2
3
4# Earthworm stuff
5 MyModuleId     MOD_GMEWHTMLEMAIL          # Module ID
6 InRing         HYPO_RING
7 HeartbeatInt   30                   # Heartbeat interval in seconds
8 LogFile        1                    # If 0. don't write logfile; if 1. do
9                                     # if 2. write module log but not stderr/stdout
10 Debug          0
11 DebugEmail     0               # echo the email command used if set to 1
12
13# Get messages from
14 GetLogo  INST_WILDCARD  MOD_WILDCARD # TYPE_HYP2000ARC
15
16#DataCenter         between quotes (optional and is used in the table header)
17# DataCenter  "My data Center"
18
19
20#CenterPoint 45.0 -121.0  # OPTIONAL lat and lon for EmailRecipientWithMinMagAndDist
21
22# ShortHeader - OPTIONAL flag to compress the header table and leave less whitespace
23#
24
25#
26# DontShowMd - Optional feature to remove Md from the report.
27#
28# DontUseMd - Optional feature to not use Md  for email decisions for any EmailRecipientWithMinMag args
29#
30# UseML - OPTIONAL feature to turn on TYPE_MAGNITUDE (localmag) use
31# UseMW - OPTIONAL feature to turn on TYPE_MAGNITUDE and detect MW  magnitude messages
32#
33# MagWaitSeconds - OPTIONAL wait this long before releasing an
34#                  email that may not have an ML or MW, default 5 seconds
35 
36# Note that hyp2000arc messages can be very large if the number of stations
37# is high.
38 MaxMessageSize   16384
39
40# site_file - MANDATORY station file. This corresponds to the station file in
41#             hypoinverse-compatible format, as used by hyp2000. It is used to
42#             know which waveforms are to be search from the waveservers and
43#             also to plot the stations in the static google map.
44 site_file    memphis2.hinv
45                         
46# RAD_file - MANDATORY file defining the (R)egions, (A)reas and (D)ams the module
47#       will report on.  This supersedes the files that were identified w/ the now
48#       unrecognized commands dam_file and full_dam_file, holding new information
49#       in a new format.
50
51RAD_file        /path/to/file/USBR_sites_2016.csv
52
53# conversions_file - file gain factors used by EWAVE to convert from displaying
54#                                       max value in 'counts' to acceleration in units of cm/s/s
55conversions_file station_conversions.txt
56
57# OnlyAllowThresholdsFromNetwork - optional filter to only monitor the PGA values
58#               of a particular network
59OnlyAllowThresholdsFromNetwork RE
60
61# HTMLFile - MANDATORY base name for the html file of this event. The actual 
62#            filename will be <HTMLFile>_<event id>.html
63#            This configuration allows creating a folder with html files for the
64#            detected seismic events.
65 HTMLFile        temp/emailfile
66
67#SPfilter   
68SPfilter
69
70
71# a new option is to produce GMT data
72#GMTmap   
73
74
75# the next four (4) settings govern what GMT format to use
76#Two map projections for GMT map: Mercator or Albers. Note: Mercator is the default projection
77#Mercator       
78#Albers
79
80#Cities         used when GMTmap is enable
81#Cities /home/earthworm/run/params/cities.txt
82
83#StationNames  used when GMTmap is enable
84#StationNames
85
86#MapLegend     Used when GMTmap is enable
87#MapLegend /home/earthworm/run/params/ewhtmlemail.legend
88 
89
90
91# KML - output (option)
92#   SYNTAX for KML OPTION:
93#       KML dir preamble_file
94# dir is where kml file is written
95# preamble_file is where kml preamblefile is read in from, must be the one from the src distro
96
97 
98# EmailProgram - Optional email program. It is imperative that the email program
99#                is capable of handling html email. ewhtmlemail has been created
100#                specifically for sendmail. If this option is commented out, the
101#                module assumes that emails are not to be sent and will not
102#                include the mime header in the html file. In this sense, this
103#                module becomes an event-to-html converter.
104 EmailProgram    /usr/sbin/sendmail
105
106# UseBlat - Optional to say that the EmailProgram is blat type, which takes
107#      syntax "blat.exe file -to recipient"
108#   make sure EmailProgram has the absolute path to blat.exe if it is not
109#   in your path, but set the EmailProgram entry regardless
110
111# BlatOptions "-server localhost:1099 -profile gmailsmtp"  - Optional if you need to use stunnel or something for gmail smtp
112#           Note this is not even used if you do not have UseBlat configured in the .d file
113
114#UseUTC - Optional to set the time at UTC in the html email messages (localtime zone of PC is default)
115 
116# SubjectPrefix - Optional to set the prefix of the subject to customize the email. Defaults to EWalert if this is not set.
117
118# ShowDetail - Optional to show a lot more event information in detail, errh, errz, gap, rms etc....
119
120# List of email recipients
121 EmailRecipient test@mail.com
122
123# StaticMapType - optional, can be the maptype for the google static map.
124#               could be: terrain, satellite, or roadmap
125#               Default: hybrid (satellite+roads)
126 
127 
128# StyleFile - Optional style file for the generated html file. Some items have
129#             specific ids and classes that allows some customization through a
130#             css file. Please consult the example ewhtmlemail.css file for the
131#             ids and class names.
132 StyleFile       ewhtmlemail.css
133
134
135# PathToEventEmail - Directory to which event:email-address mappings are written
136#                    Files are written here with the filename corresponding to an NEIC eventID
137#                    Email addresses which this event has been disseminated to are stored 1 per line
138
139PathToEventEmail /tmp
140
141
142 #######################
143 # Waveserver Settings #
144 #######################
145 MAX_SAMPLES   100000    # Maximum number of samples to extract from any given
146                         #    station of the waveserver.
147                         #    Default: 60000
148
149 WSTimeout          5    # Waveserver timeout in seconds
150
151# List of waveservers aaa.bbb.ccc.ddd:portno
152 WaveServer 192.168.0.1:16022
153 WaveServer 192.168.0.2:16022
154 
155 
156 # TimeMargin - Optional parameter to set the time margin for downloading
157 #              waveforms from the waveservers in seconds.
158 #              Default: 10.0
159 TimeMargin     10.0
160 
161
162 # MaxDuration - is the maximum duration of the trace from origin_time - TimeMargin to endtime+ TimeMargin
163 # if trace is longer than this in length, then endtime is set to  origin_time - TimeMargin + MaxDuration
164 MaxDuration    60.0   # defaults to 144 seconds, new feature
165
166 # EWAVE: a RESTful plotting service, optional (instead of Google Trace API or GIF)
167 # Uncomment the following parameters to use it
168 EwaveAddr   127.0.0.1
169 EwavePort       5000
170
171#  UseGIF
172 
173 #TraceWidth   1200             # Sets width of traces (Default 600)
174 #TraceHeight   200             # Sets height of traces (Default 60)
175 # Note that changing width or height is limited to 300 000 points for google charts
176 # In addition, the css file should be changed accordingly to avoid resizing
177 
178
179# NoWaveformPlots    # this is an OPTIONAL setting to turn off the google static plots of waveforms; On if not set.
180                         
181
182# set one letter below: Note quality from hypoinverse is A,B,C,D where A is best, like in grade school!
183# MinQuality D          # optional configuration that sets the letter of the minimum hypo quality to send emails
184                        # this filter is ONLY for email sending. All .html and .kml (if selected) will be created
185                         
186
187MinPGA    3.0   # OPTIONAL configuration that sets value of the minimum PGA to send emails     
188                # Note that this overrides any other thresholds in the sending process!
189                # This filter is ONLY for email sending. All .html and .kml (if selected) will be created
190                # units of this option are in cm/s/s
191
192UseRegionName           # OPTION: use flynn-enghdal region names in the table at the top of the email
193
194
195# MaxStationDist: Maximum distance (in km) from the origin for a station to be included in the email
196#                   Default is 100km
197MaxStationDist  200
198
199# MaxFacilityDist: Maximum distance (in km) from the origin for a facility to be included in the email
200#                   Default is 100km
201MaxFacilityDist  400
202
203# db_path:  Absolute path to db file populated by ark2arc
204
205db_path     /home/earthworm/run/params/pdl2ew.db
206
207ShowMiles       # OPTION: display distances in miles as well as km
208
209IgnoreArcOlderThanSeconds   3500000     # OPTION
210
211# IgnoreOlderThanHours: Option to not send email for events older than this many hours old
212IgnoreOlderThanHours 2400
213
214# IgnorePGABelow: Ignore stations w/ PGA below this value (default is 0.01) - units cm/s/s
215# IgnorePGABelow 0.1
216
217
218# EmailDelay  60  # OPTION: seconds to wait until after ARC or trigger until email is sent; defaults to 30
219
220# PlotAllSCNLs: OPTION: if absent, only plot SCNL w/ maximum PGA for each SNL
221
222# This is the developer key needed to use MapQuest's map-generating service
223# If specified, MapQuest will be used instead of Google
224MapQuestKey     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
225
226# ShowRegionAndArea: Option to show USBoR Facility Region & Area information
227ShowRegionAndArea
228
229# MapQuestKey: OPTION: Developer key to used MapQuest for generating maps (use Google if not present)
230MapQuestKey fJGsNA2wtXlsvZmdIAOlUGJRKpLgc7ue
231
232# ShowRegionAndArea: Option to show USBoR Facility Region & Area information
233ShowRegionAndArea
234
235# IgnoreOlderThanHours: Option to not send email for events older than this many hours old
236IgnoreOlderThanHours 24
237
238# EarthquakeDisclaimer: Optional path to a file to be appended to earthquake emails sent out
239EarthquakeDisclaimer    /path/to/earthquake/disclaimer/file
240
241# TriggerDisclaimer: Optional path to a file to be appended to trigger emails sent out
242TriggerDisclaimer       /path/to/earthquake/disclaimer/file
243
244# The full path to the Python executable used to execute utc2localtime.py
245PathToPython    /usr/bin/python
246
247# The path to utc2localtime.py
248PathToLocaltime ${EW_HOME}/earthworm/bin/utc2localtime.py
249
250# Name pretty much says it; arg is path to folder containing estimator
251ReportEstimatedPGAs      /path/to/GmpeGmm/folder
252
253# Path to Subscription info (generated by web app)
254SubscriptionPath    /path/to/subscriptions.txt
255
256# Options to control size of email generated
257# MaxFacilitiesOnMap   10     # default is 25
258# MaxFacilitiesInTable 100    # default is no limit
259
260# DontHiliteMax     # Option to night highlight maxima
Note: See TracBrowser for help on using the repository browser.