Няма описание http://j1x-huginn.herokuapp.com

agents.yml 2.9KB

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