|
| 1 | +{ |
| 2 | + "schema_version": 1, |
| 3 | + "name": "Shake, Rattle, and Roll", |
| 4 | + "description": "Agent network that monitors the USGS' Earthquake Hazards API server (http://earthquake.usgs.gov/earthquakes/feed/v1.0/) for human-detectible earthquakes.", |
| 5 | + "source_url": false, |
| 6 | + "guid": "4888e9b976e2b45919289bf62a5fb818", |
| 7 | + "tag_fg_color": null, |
| 8 | + "tag_bg_color": null, |
| 9 | + "exported_at": "2015-12-28T07:30:21Z", |
| 10 | + "agents": [ |
| 11 | + { |
| 12 | + "type": "Agents::WebsiteAgent", |
| 13 | + "name": "Shake, Rattle, and Roll - Pittsburgh, PA", |
| 14 | + "disabled": false, |
| 15 | + "guid": "2d66d26d2d0b6b6406deace2ae85b82e", |
| 16 | + "options": { |
| 17 | + "expected_update_period_in_days": "3650", |
| 18 | + "url": "http://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&latitude=40.4313684&longitude=-79.9805005&maxradiuskm=25&limit=1&format=geojson&eventtype=earthquake&minmagnitude=4.0", |
| 19 | + "type": "json", |
| 20 | + "mode": "on_change", |
| 21 | + "user_agent": "Exocortex v0.1.0 Earthquake API Bot (details: https://github.com/cantino/huginn)", |
| 22 | + "extract": { |
| 23 | + "magnitude": { |
| 24 | + "path": "features[*].properties.mag" |
| 25 | + }, |
| 26 | + "location": { |
| 27 | + "path": "features[*].properties.place" |
| 28 | + }, |
| 29 | + "url": { |
| 30 | + "path": "features[*].properties.url" |
| 31 | + }, |
| 32 | + "latitude": { |
| 33 | + "path": "features[*].geometry.coordinates.[0]" |
| 34 | + }, |
| 35 | + "longitude": { |
| 36 | + "path": "features[*].geometry.coordinates.[1]" |
| 37 | + }, |
| 38 | + "depth": { |
| 39 | + "path": "features[*].geometry.coordinates.[2]" |
| 40 | + } |
| 41 | + } |
| 42 | + }, |
| 43 | + "schedule": "every_5m", |
| 44 | + "keep_events_for": 604800, |
| 45 | + "propagate_immediately": false |
| 46 | + }, |
| 47 | + { |
| 48 | + "type": "Agents::WebsiteAgent", |
| 49 | + "name": "Shake, Rattle, and Roll - Washington, DC", |
| 50 | + "disabled": false, |
| 51 | + "guid": "426334cb1ef21b2ae8be5dfb30ccd988", |
| 52 | + "options": { |
| 53 | + "expected_update_period_in_days": "3650", |
| 54 | + "url": "http://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&latitude=38.907192&longitude=-77.036871&maxradiuskm=75&limit=1&format=geojson&eventtype=earthquake&minmagnitude=4.0", |
| 55 | + "type": "json", |
| 56 | + "mode": "on_change", |
| 57 | + "user_agent": "Exocortex v0.1.0 Earthquake API Bot (details: https://github.com/cantino/huginn)", |
| 58 | + "extract": { |
| 59 | + "magnitude": { |
| 60 | + "path": "features[*].properties.mag" |
| 61 | + }, |
| 62 | + "location": { |
| 63 | + "path": "features[*].properties.place" |
| 64 | + }, |
| 65 | + "url": { |
| 66 | + "path": "features[*].properties.url" |
| 67 | + }, |
| 68 | + "latitude": { |
| 69 | + "path": "features[*].geometry.coordinates.[0]" |
| 70 | + }, |
| 71 | + "longitude": { |
| 72 | + "path": "features[*].geometry.coordinates.[1]" |
| 73 | + }, |
| 74 | + "depth": { |
| 75 | + "path": "features[*].geometry.coordinates.[2]" |
| 76 | + } |
| 77 | + } |
| 78 | + }, |
| 79 | + "schedule": "every_5m", |
| 80 | + "keep_events_for": 604800, |
| 81 | + "propagate_immediately": false |
| 82 | + }, |
| 83 | + { |
| 84 | + "type": "Agents::EventFormattingAgent", |
| 85 | + "name": "Shake, Rattle, and Roll - Create XMPP-compatible messages out of USGS earthquake events", |
| 86 | + "disabled": false, |
| 87 | + "guid": "542894ccd4319aef19a3ffe1c6cb938e", |
| 88 | + "options": { |
| 89 | + "instructions": { |
| 90 | + "created_at": "{{ created_at }}", |
| 91 | + "message": "Incoming message from Shake, Rattle, and Roll - earthquake detected in {{ location }}!", |
| 92 | + "earthquake": "Magnitude {{ magnitude }} seismic event at latitude {{ latitude }}, longitude {{ longitude }}, depth {{ depth }} km. The event has a page on the USGS Earthquake Hazards page here: {{ url }}" |
| 93 | + }, |
| 94 | + "matchers": [ |
| 95 | + |
| 96 | + ], |
| 97 | + "mode": "clean" |
| 98 | + }, |
| 99 | + "keep_events_for": 1209600, |
| 100 | + "propagate_immediately": false |
| 101 | + }, |
| 102 | + { |
| 103 | + "type": "Agents::BeeperAgent", |
| 104 | + "name": "Shake, Rattle, and Roll - Send earthquake alerts through beeper.io", |
| 105 | + "disabled": false, |
| 106 | + "guid": "a07c9e7d99013a6dfef187159223cdd0", |
| 107 | + "options": { |
| 108 | + "type": "message", |
| 109 | + "app_id": "{% credential beeper_app_id %}", |
| 110 | + "api_key": "{% credential beeper_api_key %}", |
| 111 | + "sender_id": "565277853134610001c20400", |
| 112 | + "phone": "{% credential beeper_phone_number %}", |
| 113 | + "text": "{{ message }} -- {{ earthquake }}" |
| 114 | + }, |
| 115 | + "propagate_immediately": false |
| 116 | + }, |
| 117 | + { |
| 118 | + "type": "Agents::EmailAgent", |
| 119 | + "name": "Shake, Rattle, and Roll - Contact everybody!", |
| 120 | + "disabled": false, |
| 121 | + "guid": "afa6593af0e9e798e2e7826b4dde2825", |
| 122 | + "options": { |
| 123 | + "subject": "Seismic event detected!", |
| 124 | + "expected_receive_period_in_days": "3650", |
| 125 | + "recipients": [ |
| 126 | + "somebody@example.com", |
| 127 | + "somebody_else@example.com", |
| 128 | + "another_person@example.com" |
| 129 | + ] |
| 130 | + }, |
| 131 | + "propagate_immediately": false |
| 132 | + }, |
| 133 | + { |
| 134 | + "type": "Agents::JabberAgent", |
| 135 | + "name": "Shake, Rattle, and Roll - Send an XMPP message", |
| 136 | + "disabled": false, |
| 137 | + "guid": "d774fa151ad08f374702b65260de7df3", |
| 138 | + "options": { |
| 139 | + "jabber_server": "{% credential primary_xmpp_server %}", |
| 140 | + "jabber_port": "5222", |
| 141 | + "jabber_sender": "{% credential srr_xmpp_username %}", |
| 142 | + "jabber_receiver": "{% credential primary_xmpp_destination %}", |
| 143 | + "jabber_password": "{% credential srr_xmpp_password %}", |
| 144 | + "message": "{{ message }} -- {{ earthquake }}", |
| 145 | + "connect_to_receiver_radio": "true", |
| 146 | + "connect_to_receiver": "true", |
| 147 | + "expected_receive_period_in_days": "3650" |
| 148 | + }, |
| 149 | + "keep_events_for": 604800, |
| 150 | + "propagate_immediately": false |
| 151 | + }, |
| 152 | + { |
| 153 | + "type": "Agents::ManualEventAgent", |
| 154 | + "name": "Shake, Rattle, and Roll - Inject test events", |
| 155 | + "disabled": false, |
| 156 | + "guid": "ea25dee8aea6592f17efe8a4e4ed1e1e", |
| 157 | + "options": { |
| 158 | + "no options": "are needed" |
| 159 | + }, |
| 160 | + "keep_events_for": 3600 |
| 161 | + }, |
| 162 | + { |
| 163 | + "type": "Agents::WebsiteAgent", |
| 164 | + "name": "Shake, Rattle, and Roll - Oakland, CA", |
| 165 | + "disabled": false, |
| 166 | + "guid": "eb1e2b2a2ebc8ab946a16ef8b0207c6f", |
| 167 | + "options": { |
| 168 | + "expected_update_period_in_days": "3650", |
| 169 | + "url": "http://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&latitude=37.804358908571395&longitude=-122.27096557617188&maxradiuskm=75&limit=1&eventtype=earthquake&minmagnitude=4.0", |
| 170 | + "type": "json", |
| 171 | + "mode": "on_change", |
| 172 | + "user_agent": "Exocortex v0.1.0 Earthquake API Bot (details: https://github.com/cantino/huginn)", |
| 173 | + "extract": { |
| 174 | + "magnitude": { |
| 175 | + "path": "features[*].properties.mag" |
| 176 | + }, |
| 177 | + "location": { |
| 178 | + "path": "features[*].properties.place" |
| 179 | + }, |
| 180 | + "url": { |
| 181 | + "path": "features[*].properties.url" |
| 182 | + }, |
| 183 | + "latitude": { |
| 184 | + "path": "features[*].geometry.coordinates.[0]" |
| 185 | + }, |
| 186 | + "longitude": { |
| 187 | + "path": "features[*].geometry.coordinates.[1]" |
| 188 | + }, |
| 189 | + "depth": { |
| 190 | + "path": "features[*].geometry.coordinates.[2]" |
| 191 | + } |
| 192 | + } |
| 193 | + }, |
| 194 | + "schedule": "every_5m", |
| 195 | + "keep_events_for": 604800, |
| 196 | + "propagate_immediately": false |
| 197 | + } |
| 198 | + ], |
| 199 | + "links": [ |
| 200 | + { |
| 201 | + "source": 0, |
| 202 | + "receiver": 2 |
| 203 | + }, |
| 204 | + { |
| 205 | + "source": 1, |
| 206 | + "receiver": 2 |
| 207 | + }, |
| 208 | + { |
| 209 | + "source": 2, |
| 210 | + "receiver": 5 |
| 211 | + }, |
| 212 | + { |
| 213 | + "source": 2, |
| 214 | + "receiver": 4 |
| 215 | + }, |
| 216 | + { |
| 217 | + "source": 2, |
| 218 | + "receiver": 3 |
| 219 | + }, |
| 220 | + { |
| 221 | + "source": 6, |
| 222 | + "receiver": 3 |
| 223 | + }, |
| 224 | + { |
| 225 | + "source": 7, |
| 226 | + "receiver": 2 |
| 227 | + } |
| 228 | + ], |
| 229 | + "control_links": [ |
| 230 | + |
| 231 | + ] |
| 232 | +} |
0 commit comments