NewsPublishing

Publishing a source channel is very easy and can be done in three steps:

1. Repro: Obtain an account at github and setup an repro. The name of the repro will be shown in the list of sources, so it is good convention to define a meaningful name for the repro. In the description field, you can give more infos to the user. However, the description must end with the pattern "(com.grabow.informer.source)", otherwise it won't be found by the app. Example:
Name of repro:
Germany-Deutschlandradio
Description: RSS Feed channel from german highways (com.grabow.informer.source) 



Additional information about your news channel can be written in the README.md file.

2. plugin.js: Select "Create new file" and create the file "plugin.js" which contains all information about your news channel.  

3. JSON: Specify your news channel by defining a so called JSON-String.
  • For RSS Feeds type the following information:
    {
       
    "moduleId" : "grabowCommuter/Germany-Deutschlandfunk",   
        "type" : "RSS",   
        "name" : "Deutschlandfunk",   
        "uri" : "http://www.deutschlandradio.de/verkehrsmeldungen.438.de.rss"
    }
  • The moduleId must contain the relative path to the repro.The type must contain the type of source ("Rss")The name must contain an arbitrary name The uri must contain the exact URL of the source (incl. http or https)´
  • For Twitter Feeds type the following information:
    {
        "moduleId" : "grabowCommuter/Germany-Deutschlandfunk",   
        "type" : "Twitter",    
       
        "name" : "511 SFBay",   
        "uri" : "@511SFBay"
    }
  • The moduleId must contain the relative path to the repro.
    The type must contain the type of source ( "Twitter" )
    The name must contain an arbitrary name
    The uri must contain the search string for tweets
  • For Website Feeds type the following information:
    {
      "moduleId" : "grabowCommuter/myRepro",
      "type" : "Website",
      "name" : "CA.gov",
      "uri" : "http://www.dot.ca.gov/dist11/d11tmc/sdmap/summary.php",
      "startTrigger" : "LOCATION",
      "endTrigger" : "",
      "startTag" : "tr",
      "endTag" : "tr"
    }
  • The moduleId must contain the relative path to the repro. The type must contain the type of source ( "Website" ) The name must contain an arbitrary name The uri must contain the exact URL of the website The startTrigger must contain a text string, indicating the beginning of the interesting part The endTrigger must contain a text string, indicating the end of the interesting part The startTag must contain a html-tag indicating the beginning of a information-item The endTag must contain a html-tag indicating the end of an information item


Keine Kommentare:

Kommentar veröffentlichen