From 6341992254c837b1d814b3eaa24b2ab3e729c8e2 Mon Sep 17 00:00:00 2001 From: eugue Date: Thu, 27 Jan 2011 20:27:12 -0500 Subject: Added HTMLInput, SmootWind behavior, and a config file for testing. --- config/HTMLTest.xml | 58 +++++++++++++++++ config/SmootWindTest.xml | 166 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+) create mode 100755 config/HTMLTest.xml create mode 100755 config/SmootWindTest.xml (limited to 'config') 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 @@ + + + + simplemap + + + + layouts/BasicSixStrip.xml + + + + pixelmappers.SimpleMapper + + simplemap + 20 + + + + pixelmappers.GaussianMapper + + gaussmap + 30 + 0.1 + 10 + 1 + + + + + + renderers/Pygame.xml + + + + + inputs.HTMLInput + + weatherinput + 'http://sailing.mit.edu/weather/' + + 'rtWindSpeed = (\d+).*\s.*\s.*rtWindDir = (\d+)' + + + + + + + behaviors.EchoBehavior + + + weatherinput + + echo + False + + + + diff --git a/config/SmootWindTest.xml b/config/SmootWindTest.xml new file mode 100755 index 0000000..a494720 --- /dev/null +++ b/config/SmootWindTest.xml @@ -0,0 +1,166 @@ + + + + + simplemap + + + + layouts/60StripLayout.xml + + + + + pixelmappers.SimpleMapper + + simplemap + 20 + + + + pixelmappers.GaussianMapper + + gaussmap + 10 + 0.1 + 10 + 5 + + + + pixelmappers.WindGaussianMapper + + windgaussmap + 150 + 0.005 + 30 + 10 + + + + + + + renderers/Pygame.xml + + + + + inputs.PygameInput + + pygame + 1 + + + + inputs.HTMLInput + + weatherinput + 'http://sailing.mit.edu/weather/' + + 'rtWindSpeed = (\d+).*\s.*\s.*rtWindDir = (\d+)' + + + + + inputs.RandomLocs + + randomLoc + + + + + + behaviors/RandomColor.xml + + + behaviors/RandomColor.xml + + + (100,200,255) + (50,200,255) + (0,200,255) + (0,150,255) + + + + + behaviors/PixelDecay.xml + + + behaviors.XYMove + + xymove + 0 + 0 + + + + behaviors.BehaviorChain + + movebounce + + xymove + yfor + xfor + + + + + behaviors.ModifyParam + + yfor + YStep + Sensor + 10*(2*math.sin({x}/float(100))+math.sin({x}/float(50))) + + + + + behaviors.ModifyParam + + xfor + XStep + Sensor + + 25 + + + + + behaviors.SmootWind + + smootwind + + weatherinput + + + + + behaviors.ResponseMover + + mover + + + + behaviors.BehaviorChain + + xymover + + pygame + randomLoc + + + staticcolor + mover + decay + + {'mover':'movebounce'} + True + windgaussmap + + + + -- cgit v1.2.3