Created
December 15, 2010 01:46
-
-
Save burtonian/741509 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tutorial found at: http://www.craigburton.com/?p=3122