minor documentation

Andrew Cantino 11 jaren geleden
bovenliggende
commit
c29c8aa260
2 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 1 0
      README.md
  2. 2 0
      app/models/agents/public_transport_agent.rb

+ 1 - 0
README.md

@@ -15,6 +15,7 @@ Huginn is a system for building agents that perform automated tasks for you onli
15 15
 * Scrape websites and receive emails when they change
16 16
 * Compose digest emails about things you care about to be sent at specific times of the day
17 17
 * Track counts of high frequency events and SMS on changes, such as the term "san francisco emergency"
18
+* Watch public transit
18 19
 * Track your location over time
19 20
 * Create Amazon Mechanical Turk tasks as the input, or output, of events
20 21
 

+ 2 - 0
app/models/agents/public_transport_agent.rb

@@ -23,6 +23,8 @@ module Agents
23 23
           agency: "sf-muni"
24 24
           stops: ["N|5221", "N|5215"]
25 25
 
26
+      Remember to pick the appropriate stop, which will have different tags for in-bound and out-bound.
27
+
26 28
       This Agent will generate predictions by requesting a URL similar to the following:
27 29
 
28 30
       [http://webservices.nextbus.com/service/publicXMLFeed?command=predictionsForMultiStops&a=sf-muni&stops=N|5221&stops=N|5215](http://webservices.nextbus.com/service/publicXMLFeed?command=predictionsForMultiStops&a=sf-muni&stops=N|5221&stops=N|5215)