Skip to content

Instantly share code, notes, and snippets.

@burtonian
Created December 15, 2010 01:46
Show Gist options
  • Save burtonian/741509 to your computer and use it in GitHub Desktop.
Save burtonian/741509 to your computer and use it in GitHub Desktop.
ruleset a35x75 {
meta {
name "Datasource Tutorial Part 1"
author "Craig Burton"
description <<
Simple example for locating the JSON Tree Structure and Data
>>
logging on
}
dispatch {
domain "craigburton.com"
}
global {
datasource WeatherSource:XML <- "http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?format=24+hourly&numDays=1&zipCodeList="
}
rule AlertRule is active {
select using ".*" setting()
pre {
WeatherSourceResult = datasource:WeatherSource("84121");
}
alert("Check the javascript console to see the dataset/source translated into JSON format ");
}
}
@burtonian
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment