diff options
author | eugue <eug.sun@gmail.com> | 2011-01-27 20:27:12 -0500 |
---|---|---|
committer | eugue <eug.sun@gmail.com> | 2011-01-27 20:27:12 -0500 |
commit | 6341992254c837b1d814b3eaa24b2ab3e729c8e2 (patch) | |
tree | 4cdf2f65e7a5b1d0a4be0f667754e73053af8493 /config/HTMLTest.xml | |
parent | f103e47da5d563d1b8448bc021676ed7db0f529d (diff) |
Added HTMLInput, SmootWind behavior, and a config file for testing.
Diffstat (limited to 'config/HTMLTest.xml')
-rwxr-xr-x | config/HTMLTest.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/config/HTMLTest.xml b/config/HTMLTest.xml new file mode 100755 index 0000000..159cec4 --- /dev/null +++ b/config/HTMLTest.xml @@ -0,0 +1,58 @@ +<LightInstallation> + <InstallationConfiguration> + <Defaults> + <PixelMapper>simplemap</PixelMapper> + </Defaults> + </InstallationConfiguration> + <PixelConfiguration> + <InheritsFrom>layouts/BasicSixStrip.xml</InheritsFrom> + </PixelConfiguration> + <PixelMapperConfiguration> + <PixelMapper> + <Class>pixelmappers.SimpleMapper</Class> + <Args> + <Id>simplemap</Id> + <CutoffDist>20</CutoffDist> + </Args> + </PixelMapper> + <PixelMapper> + <Class>pixelmappers.GaussianMapper</Class> + <Args> + <Id>gaussmap</Id> + <CutoffDist>30</CutoffDist> + <MinWeight>0.1</MinWeight> + <Width>10</Width> + <Height>1</Height> + </Args> + </PixelMapper> + </PixelMapperConfiguration> + <RendererConfiguration> + <Renderer> + <InheritsFrom>renderers/Pygame.xml</InheritsFrom> + </Renderer> + </RendererConfiguration> + <InputConfiguration> + <InputElement> + <Class>inputs.HTMLInput</Class> + <Args> + <Id>weatherinput</Id> + <Src>'http://sailing.mit.edu/weather/'</Src> + <!--<Regex>'rtWindSpeed = (\d+).*rtWindDir = (\d+)'</Regex>--> + <Regex>'rtWindSpeed = (\d+).*\s.*\s.*rtWindDir = (\d+)'</Regex> + <!--<RefreshInterval>60000</RefreshInterval>--> + </Args> + </InputElement> + </InputConfiguration> + <BehaviorConfiguration> + <Behavior> + <Class>behaviors.EchoBehavior</Class> + <Args> + <Inputs> + <Id>weatherinput</Id> + </Inputs> + <Id>echo</Id> + <RenderToScreen>False</RenderToScreen> + </Args> + </Behavior> + </BehaviorConfiguration> +</LightInstallation> |