aboutsummaryrefslogtreecommitdiff
path: root/config/LightInstallationConfig.xml
blob: a5f4a08aca8b2e5953b0ce4ee8a6bd1fed4c30d3 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!---All configuration items contain a "Class" tag specifying the python class they represent, and an "Args" tag specifying the args to be passed in.-->
<LightInstallation>
    <LayoutConfiguration>

        <PixelStrip>
            <Class>layouts.ZigzagLayout</Class><!--Name of Layout Class,
            imported dynamically via a eval('import ' + name)-->
            <Args><!--Any args the layout class needs.  This go as
            elements of a dictionary that gets passed to the Layout machinery-->
                <Id>strip1</Id>
                <zigLength>25</zigLength>
                <zigAxis>X</zigAxis>
                <yDirection>-1</yDirection>
                <pixelToPixelSpacing>12</pixelToPixelSpacing>
                <spacing>12</spacing> <!--we can space at any value less the
                l2lspacing--> 
                <numPixels>50</numPixels>
                <originLocation>(10,10)</originLocation>
            </Args>
        </PixelStrip>
        <PixelStrip>
            <Class>layouts.ZigzagLayout</Class><!--Name of Layout Class,
            imported dynamically via a eval('import ' + name)-->
            <Args><!--Any args the layout class needs.  This go as
            elements of a dictionary that gets passed to the Layout machinery-->
                <Id>strip2</Id>
                <zigLength>25</zigLength>
                <zigAxis>X</zigAxis>
                <yDirection>1</yDirection>
                <pixelToPixelSpacing>12</pixelToPixelSpacing>
                <spacing>12</spacing> <!--we can space at any value less the
                l2lspacing--> 
                <numPixels>50</numPixels>
                <originLocation>(10,30)</originLocation>
            </Args>
        </PixelStrip>
    </LayoutConfiguration>
    <RendererConfiguration>
        <Renderer>
            <Class>renderers.PygameRenderer</Class>
            <Args>
                <displaySize>(1300,50)</displaySize>
            </Args>
        </Renderer>
        <Renderer>
            <Class>renderers.IndoorRenderer</Class>
            <Args>
                <PowerSupply>
                    <IP>10.1.218.72</IP>
                    <PortMapping>{'strip1':1, 'strip2':2}</PortMapping>
                </PowerSupply>
            </Args>
        </Renderer>
    </RendererConfiguration>
    <InputConfiguration>
        <InputElement>
            <Class>inputs.PygameInput</Class>
            <Args><!--Passed as a dictionary-->
                <InputId>pygame</InputId>
                <RefreshInterval>100</RefreshInterval>
            </Args>
        </InputElement>
        <InputElement>
            <Class>inputs.UDPInput</Class>
            <Args>
                <InputId>UDP</InputId>
                <Port>6038</Port>
                <RefreshInterval>100</RefreshInterval>
            </Args>
        </InputElement>
    </InputConfiguration>
    <BehaviorConfiguration>
        <Behavior>
            <Class>behaviors.EchoBehavior</Class>
            <Args>
                <behaviorId>echo</behaviorId>
                <z-index>0</z-index>
                <Inputs>
                    <InputId>pygame</InputId>
                </Inputs>
            </Args>
        </Behavior>
        <Behavior>
            <Class>behaviors.DebugBehavior</Class>
            <Args>
                <behaviorId>debug</behaviorId>
                <z-index>0</z-index>
                <Inputs>
                    <InputId>UDP</InputId>
                </Inputs>
            </Args>
        </Behavior>
    </BehaviorConfiguration>
</LightInstallation>