| 1 | StormXmlSiren's main configuration file is based on the standard INI file format. The file consists of the following main sections, followed by an unlimited number of [wiki:DeviceConfiguration device sections]. |
|---|
| 2 | |
|---|
| 3 | * ['''main'''] |
|---|
| 4 | * '''states''' = ''[comma separated list]'' [[BR]]This is a list of states that will referenced in subsequent device sections. This list should include all states that will be covered. |
|---|
| 5 | {{{ |
|---|
| 6 | Example: |
|---|
| 7 | states = TX,TN,AL,CA |
|---|
| 8 | }}} |
|---|
| 9 | * '''watchers''' = ''integer''[[BR]]The total number of devices contained in the configuration file[[BR]] |
|---|
| 10 | {{{ |
|---|
| 11 | Example: |
|---|
| 12 | devices = 5 |
|---|
| 13 | }}} |
|---|
| 14 | * '''history''' = ''integer''[[BR]]The total number of previous alerts to keep on file. Older alerts will be trimmed to keep the memory footprint smaller and execution time quicker. (Default: 200)[[BR]] |
|---|
| 15 | {{{ |
|---|
| 16 | Example: |
|---|
| 17 | history = 100 |
|---|
| 18 | }}} |
|---|
| 19 | * ['''smtp'''] |
|---|
| 20 | * '''host''' = ''string''[[BR]]The hostname of your mail server. (Default: localhost)[[BR]] |
|---|
| 21 | {{{ |
|---|
| 22 | Example: |
|---|
| 23 | host = localhost |
|---|
| 24 | }}} |
|---|
| 25 | * '''port''' = ''integer''[[BR]]The port number that your mail server is listening on. (Default: 25)[[BR]] |
|---|
| 26 | {{{ |
|---|
| 27 | Example: |
|---|
| 28 | port = 25 |
|---|
| 29 | }}} |
|---|
| 30 | * '''from''' = ''string''[[BR]]The Email address that Email based alerts will appear to be from. (Default: noreply@example.com)[[BR]] |
|---|
| 31 | {{{ |
|---|
| 32 | Example: |
|---|
| 33 | from = noreply@storms.example.com |
|---|
| 34 | }}} |
|---|
| 35 | * '''user''' = ''string''[[BR]]The username to use when trying to send email if your SMTP gateway requires authentication. If this is not set, SMTP authentication will not be used.[[BR]] |
|---|
| 36 | {{{ |
|---|
| 37 | Example: |
|---|
| 38 | user = chris.freeze |
|---|
| 39 | }}} |
|---|
| 40 | * '''password''' = ''string''[[BR]]The password to use when trying to send email if your SMTP gateway requires authentication.[[BR]] |
|---|
| 41 | {{{ |
|---|
| 42 | Example: |
|---|
| 43 | password = secret |
|---|
| 44 | }}} |
|---|
| 45 | * ['''jabber'''] |
|---|
| 46 | * '''host''' = ''string''[[BR]]The hostname of your jabber server. (Default: localhost)[[BR]] |
|---|
| 47 | {{{ |
|---|
| 48 | Example: |
|---|
| 49 | host = jabber.example.com |
|---|
| 50 | }}} |
|---|
| 51 | * '''port''' = ''integer''[[BR]]The port number that your jabber server is listening on. (Default: 5223)[[BR]] |
|---|
| 52 | {{{ |
|---|
| 53 | Example: |
|---|
| 54 | port = 5222 |
|---|
| 55 | }}} |
|---|
| 56 | * '''user''' = ''string''[[BR]]The username for StormXmlSiren to use when authenticating to your jabber server.[[BR]] |
|---|
| 57 | {{{ |
|---|
| 58 | Example: |
|---|
| 59 | user = weatherbot |
|---|
| 60 | }}} |
|---|
| 61 | * '''password''' = ''string''[[BR]]The password for StormXmlSiren to use when authenticating to your jabber server.[[BR]] |
|---|
| 62 | {{{ |
|---|
| 63 | Example: |
|---|
| 64 | password = secret |
|---|
| 65 | }}} |
|---|
| 66 | * ['''media'''] |
|---|
| 67 | * '''player''' = string[[BR]]The media player to use to play the files below.[[BR]] |
|---|
| 68 | {{{ |
|---|
| 69 | Example: |
|---|
| 70 | player = /usr/bin/mplayer |
|---|
| 71 | }}} |
|---|
| 72 | * '''forecast''' = string [[BR]]The media file to play when a new forecast is to be alerted on.[[BR]] |
|---|
| 73 | {{{ |
|---|
| 74 | Example: |
|---|
| 75 | forecast = "C:\Sounds\forecast.wav" |
|---|
| 76 | }}} |
|---|
| 77 | * '''statement''' = string[[BR]]The media file to play when a new statement is to be alerted on.[[BR]] |
|---|
| 78 | {{{ |
|---|
| 79 | Example: |
|---|
| 80 | statement = "C:\Sounds\statement.avi" |
|---|
| 81 | }}} |
|---|
| 82 | * '''advisory''' = string[[BR]]The media file to play when a new advisory is to be alerted on.[[BR]] |
|---|
| 83 | {{{ |
|---|
| 84 | Example: |
|---|
| 85 | advisory = "C:\Sounds\advisory.mid" |
|---|
| 86 | }}} |
|---|
| 87 | * '''watch''' = string[[BR]]The media file to play when a new watch is to be alerted on.[[BR]] |
|---|
| 88 | {{{ |
|---|
| 89 | Example: |
|---|
| 90 | watch = "C:\Sounds\watch.wav" |
|---|
| 91 | }}} |
|---|
| 92 | * '''warning''' = string[[BR]]The media file to play when a new warning is to be alerted on.[[BR]] |
|---|
| 93 | {{{ |
|---|
| 94 | Example: |
|---|
| 95 | warning = "C:\Sounds\warning.wav" |
|---|
| 96 | }}} |
|---|
| 97 | * ['''execution'''] |
|---|
| 98 | * '''forecast''' = string [[BR]]The program to execute when a new forecast is to be alerted on.[[BR]] |
|---|
| 99 | {{{ |
|---|
| 100 | Example: |
|---|
| 101 | forecast = "C:\Scripts\forecast.bat" |
|---|
| 102 | }}} |
|---|
| 103 | * '''statement''' = string[[BR]]The program to execute when a new statement is to be alerted on.[[BR]] |
|---|
| 104 | {{{ |
|---|
| 105 | Example: |
|---|
| 106 | statement = "C:\Scripts\statement.bat" |
|---|
| 107 | }}} |
|---|
| 108 | * '''advisory''' = string[[BR]]The program to execute when a new advisory is to be alerted on.[[BR]] |
|---|
| 109 | {{{ |
|---|
| 110 | Example: |
|---|
| 111 | advisory = "/home/cfreeze/bin/weather/advisory.sh" |
|---|
| 112 | }}} |
|---|
| 113 | * '''watch''' = string[[BR]]The program to execute when a new watch is to be alerted on.[[BR]] |
|---|
| 114 | {{{ |
|---|
| 115 | Example: |
|---|
| 116 | watch = "/home/cfreeze/bin/weather/watch.sh" |
|---|
| 117 | }}} |
|---|
| 118 | * '''warning''' = string[[BR]]The program to execute when a new warning is to be alerted on.[[BR]] |
|---|
| 119 | {{{ |
|---|
| 120 | Example: |
|---|
| 121 | warning = "C:\Scripts\warning.cmd" |
|---|
| 122 | }}} |
|---|