aboutsummaryrefslogtreecommitdiff
path: root/config/HTMLTest.xml
blob: 159cec4699c5a24ea4f55b46c3c11006f72965a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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>