Skip to content

Instantly share code, notes, and snippets.

@seeARMS
Created February 25, 2020 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seeARMS/103b3399f3f925fb6c366600f0bad3c6 to your computer and use it in GitHub Desktop.
Save seeARMS/103b3399f3f925fb6c366600f0bad3c6 to your computer and use it in GitHub Desktop.
Huginn Scenarios
{
"schema_version": 1,
"name": "News - Hacker News",
"description": "Monitor Hacker News for relevant discussion keywords you're interested in.",
"source_url": false,
"guid": "3fe5a3bf0684c6bd4c8bc731b62e7093",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2020-02-23T05:55:49Z",
"agents": [
{
"type": "Agents::SlackAgent",
"name": "Slack Agent - Hacker News",
"disabled": false,
"guid": "3ed7e8ce5c2b021607dc568675da35c0",
"options": {
"webhook_url": "https://hooks.slack.com/services/your_webhook",
"channel": "#trending",
"username": "Huginn",
"message": "{{message}}",
"icon": ""
},
"propagate_immediately": true
},
{
"type": "Agents::TriggerAgent",
"name": "Hacker News: Relevant Posts Filter",
"disabled": false,
"guid": "e98b79e2d3d5569ff49152fe99468126",
"options": {
"expected_receive_period_in_days": "2",
"keep_event": "false",
"rules": [
{
"type": "regex",
"value": "(google|android|iphone|apple)",
"path": "title"
}
],
"message": "<a href=\"{{url}}\">{{title}}</a> {{description}}"
},
"keep_events_for": 604800,
"propagate_immediately": true
},
{
"type": "Agents::RssAgent",
"name": "Hacker News RSS Agent",
"disabled": false,
"guid": "f6573405e70f4719afad53146dd70d57",
"options": {
"expected_update_period_in_days": "1",
"clean": "false",
"url": "https://hnrss.org/frontpage"
},
"schedule": "every_10m",
"keep_events_for": 604800
}
],
"links": [
{
"source": 1,
"receiver": 0
},
{
"source": 2,
"receiver": 1
}
],
"control_links": [
]
}
{
"schema_version": 1,
"name": "Deals - Slickdeals",
"description": "Monitor the Slickdeals RSS feed and find deals.",
"source_url": false,
"guid": "6fae10f003870636e940aa7a363e1944",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2020-02-23T05:55:27Z",
"agents": [
{
"type": "Agents::RssAgent",
"name": "Slickdeals RSS",
"disabled": false,
"guid": "426ec8cd42b9bbd7687babe6964ee3f4",
"options": {
"expected_update_period_in_days": "1",
"clean": "true",
"url": "http://feeds.feedburner.com/SlickdealsnetFP?format=atom"
},
"schedule": "every_1h",
"keep_events_for": 604800
},
{
"type": "Agents::SlackAgent",
"name": "Slack Agent - Deals",
"disabled": false,
"guid": "a745e98a0402e5529219b0200b6707a2",
"options": {
"webhook_url": "https://hooks.slack.com/services/your_hook",
"channel": "#deals",
"username": "Huginn",
"message": "{{message}}",
"icon": ""
},
"propagate_immediately": true
},
{
"type": "Agents::TriggerAgent",
"name": "Slickdeals Trigger",
"disabled": false,
"guid": "d60669f517c897f98c78fc3306ab8fb6",
"options": {
"expected_receive_period_in_days": "2",
"keep_event": "false",
"rules": [
{
"type": "regex",
"value": "tesla|macbook|iphone|Tesla|Macbook|iPhone|error|mistake|(h.*o.*t(!))",
"path": "title"
}
],
"message": "{{title}}: {{urls | first}}"
},
"keep_events_for": 604800,
"propagate_immediately": false
}
],
"links": [
{
"source": 0,
"receiver": 2
},
{
"source": 2,
"receiver": 1
}
],
"control_links": [
]
}
{
"schema_version": 1,
"name": "Twitter - Peaks",
"description": "Monitor Twitter for peaks, and alert on any significant standard deviation.",
"source_url": false,
"guid": "46f585a5fffafd1d3e1ea60c516d6e6f",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2020-02-23T05:55:58Z",
"agents": [
{
"type": "Agents::EventFormattingAgent",
"name": "Format Peaks",
"disabled": false,
"guid": "28ba121fef511f48e5f7eeacfbb4de90",
"options": {
"instructions": {
"message": "Peak of {{peak}} found in {{grouped_by}} - https://twitter.com/search?q={{grouped_by | uri_escape}}"
},
"matchers": [
],
"mode": "clean"
},
"keep_events_for": 0,
"propagate_immediately": true
},
{
"type": "Agents::TwitterStreamAgent",
"name": "Twitter 30min checks",
"disabled": false,
"guid": "6585a492a0227d85540d3b4fbc63277b",
"options": {
"filters": [
"gravity waves detected",
"Google",
"Apple",
"iPhone",
"Macbook",
"Android Messages",
"encryption",
"tesla",
"amazon",
"machine learning"
],
"expected_update_period_in_days": "2",
"generate": "counts"
},
"schedule": "every_30m",
"keep_events_for": 604800
},
{
"type": "Agents::PeakDetectorAgent",
"name": "Twitter Peak Detecter",
"disabled": false,
"guid": "9ae1408850bd868c189ef3d9669bb5fe",
"options": {
"expected_receive_period_in_days": "2",
"group_by_path": "filter",
"value_path": "count",
"message": "A peak of {{count}} was found in {{filter}}",
"min_events": "100",
"std_multiple": "6"
},
"keep_events_for": 31536000,
"propagate_immediately": false
},
{
"type": "Agents::TwitterStreamAgent",
"name": "Twitter 1min checks",
"disabled": false,
"guid": "b0764cdb55b8cb7693cb3590529b455a",
"options": {
"filters": [
"san francisco earthquake",
"bay area earthquake",
"california emergency",
"san francisco emergency",
"california active shooter"
],
"expected_update_period_in_days": "45",
"generate": "counts"
},
"schedule": "every_1m",
"keep_events_for": 604800
},
{
"type": "Agents::SlackAgent",
"name": "Slack Agent - Twitter peaks",
"disabled": false,
"guid": "e7c99a66829121905ca2e5c2156cda1c",
"options": {
"webhook_url": "https://hooks.slack.com/services/your_webook",
"channel": "#trending",
"username": "HuginnTwitter",
"message": "{{message}}",
"icon": ""
},
"propagate_immediately": true
}
],
"links": [
{
"source": 0,
"receiver": 4
},
{
"source": 1,
"receiver": 2
},
{
"source": 2,
"receiver": 0
},
{
"source": 3,
"receiver": 2
}
],
"control_links": [
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment