ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

Thumbnail

Getrss

Get an RSS feed and assign each response to a variable in an array. Use the variable to speak the response or perform parsing, etc.

+ How To Add This Control To Your Project (Click to Expand)
  1. Make sure you have the latest version of ARC installed.
  2. Select the Get button in this page to download the archive file.
  3. Double click the downloaded archive file to execute installer.
  4. The installer will add this control to ARC.
  5. Load ARC and press the Project -> Add Control button from the menu.
  6. Choose the Communication category tab.
  7. Press the Getrss icon to add the control to your project.

Manual

Get an RSS feed and assign each response to a variable in an array. Use the variable to speak the response or perform parsing, etc.

User-inserted image


Send a ControlCommand to the GetRSS robot skill plugin with the URL of the RSS feed. The response will be populated in global variable arrays.

Variables


The request of the RSS feed is initiated by the ControlCommand from a script. The response will be populated in global variables after the request.

"$RSSSuccess" - bool
This will return a true (1) or false (0) about the status of the last RSS query request. If the response is false (0), the error will be displayed in the robot skill log window and populated in the "$RSSErrorMsg" variable.

"$RSSErrorMsg" - string
If the $RSSSuccess is false (0), this variable will be populated with the error message.

"$RSSDescriptions" - string array
An array containing the list of descriptions from the RSS feed.

"$RSSTitles" - string array
The array of titles for each description in the RSS feed.

"$RSSLinks" - string array
An array of links (optional) for each description of the RSS feed. 

"$RSSDates" - string date array
The array of dates is in string format for each description of the feed.


ControlCommand


There is one ControlCommand that accepts the RSS URL to query. Execute the ControlCommand() from another script, provide the RSS URL and the response will be populated in the variables. It is a good idea to check the status of the query,

Javascript example print response:

Quote:


ControlCommand("GetRSS", "get", "https://rss.art19.com/apology-line");

if (getVar("$RSSSuccess")) {

print(getVar("$RSSDescriptions[0]"));
} else {

print(getVar("$RSSErrorMsg"));
}


Javascript example speak response out of PC speaker:

Quote:


ControlCommand("GetRSS", "get", "https://rss.art19.com/apology-line");

if (getVar("$RSSSuccess")) {

Audio.say(getVar("$RSSDescriptions[0]"));

} else {

Audio.say("Error getting feed");
print(getVar("$RSSErrorMsg"));
}

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!