Keine Beschreibung http://j1x-huginn.herokuapp.com

agents.yml 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. jane_website_agent:
  2. type: Agents::WebsiteAgent
  3. user: jane
  4. events_count: 1
  5. schedule: "5pm"
  6. name: "ZKCD"
  7. options: <%= {
  8. :url => "http://trailers.apple.com/trailers/home/rss/newtrailers.rss",
  9. :expected_update_period_in_days => 2,
  10. :mode => :on_change,
  11. :extract => {
  12. :title => {:css => "item title", :text => true},
  13. :url => {:css => "item link", :text => true}
  14. }
  15. }.to_json.inspect %>
  16. bob_website_agent:
  17. type: Agents::WebsiteAgent
  18. user: bob
  19. events_count: 1
  20. schedule: "midnight"
  21. name: "ZKCD"
  22. options: <%= {
  23. :url => "http://xkcd.com",
  24. :expected_update_period_in_days => 2,
  25. :mode => :on_change,
  26. :extract => {
  27. :url => {:css => "#comic img", :attr => "src"},
  28. :title => {:css => "#comic img", :attr => "title"}
  29. }
  30. }.to_json.inspect %>
  31. bob_weather_agent:
  32. type: Agents::WeatherAgent
  33. user: bob
  34. schedule: "midnight"
  35. name: "SF Weather"
  36. keep_events_for: 45
  37. options: <%= {
  38. :location => 94102,
  39. :lat => 37.779329,
  40. :lng => -122.41915,
  41. :api_key => 'test'
  42. }.to_json.inspect %>
  43. jane_weather_agent:
  44. type: Agents::WeatherAgent
  45. user: jane
  46. schedule: "midnight"
  47. name: "SF Weather"
  48. keep_events_for: 30
  49. options: <%= {
  50. :location => 94103,
  51. :lat => 37.779329,
  52. :lng => -122.41915,
  53. :api_key => 'test'
  54. }.to_json.inspect %>
  55. jane_rain_notifier_agent:
  56. type: Agents::TriggerAgent
  57. user: jane
  58. name: "Jane's Rain Watcher"
  59. options: <%= {
  60. :expected_receive_period_in_days => "2",
  61. :rules => [{
  62. :type => "regex",
  63. :value => "rain",
  64. :path => "conditions"
  65. }],
  66. :message => "Just so you know, it looks like '<conditions>' tomorrow in <location>"
  67. }.to_json.inspect %>
  68. bob_rain_notifier_agent:
  69. type: Agents::TriggerAgent
  70. user: bob
  71. name: "Bob's Rain Watcher"
  72. options: <%= {
  73. :expected_receive_period_in_days => "2",
  74. :rules => [{
  75. :type => "regex",
  76. :value => "rain",
  77. :path => "conditions"
  78. }],
  79. :message => "Just so you know, it looks like '<conditions>' tomorrow in <location>"
  80. }.to_json.inspect %>
  81. bob_twitter_user_agent:
  82. type: Agents::TwitterUserAgent
  83. user: bob
  84. name: "Bob's Twitter User Watcher"
  85. options: <%= {
  86. :username => "tectonic",
  87. :expected_update_period_in_days => "2",
  88. :consumer_key => "---",
  89. :consumer_secret => "---",
  90. :oauth_token => "---",
  91. :oauth_token_secret => "---"
  92. }.to_json.inspect %>
  93. bob_manual_event_agent:
  94. type: Agents::ManualEventAgent
  95. user: bob
  96. name: "Bob's event testing agent"