diff options
| -rw-r--r-- | domst.xml | 19 | ||||
| -rw-r--r-- | timelabtest.xml | 11 | ||||
| -rw-r--r-- | ttg01.xml | 25 | ||||
| -rwxr-xr-x | wim.py | 4 |
4 files changed, 3 insertions, 56 deletions
diff --git a/domst.xml b/domst.xml deleted file mode 100644 index 7882c2d..0000000 --- a/domst.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<tomorrowtheground gpsdevice="/dev/ttyO0"> - <gps> - <scale file="domst_grad.png" ll1="53.353241,-6.268789" ll2="53.35171,-6.266284" freq="1.0" command="cc01"> - </scale> - <index file="domst_index.png" ll1="53.353241,-6.268789" ll2="53.35171,-6.266284"> - <trigger id="251" command="index" param="synth.wav"> - </trigger> - <trigger id="249" command="index" param="beat.wav"> - </trigger> - </index> - </gps> - <bt freq="10"> - <trigger id="00:1A:7D:0A:BA:C3" command="play" param="i01.wav"> - </trigger> - <trigger id="50:EA:D6:A6:7F:DD" command="play" param="i02.wav"> - </trigger> - </bt> -</tomorrowtheground>
\ No newline at end of file diff --git a/timelabtest.xml b/timelabtest.xml deleted file mode 100644 index b6497cc..0000000 --- a/timelabtest.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<tomorrowtheground gpsdevice="/dev/ttyO0"> - <gps> - <scale file="TimelabTestAreaGRADIENT.png" ll1="51.043293,3.737025" ll2="51.042154,3.739584" freq="1.0" command="cc01"> - </scale> - </gps> - <bt freq="10"> - <trigger id="00:11:95:00:1A:CF" command="play" param="i01.wav"> - </trigger> - </bt> -</tomorrowtheground>
\ No newline at end of file diff --git a/ttg01.xml b/ttg01.xml deleted file mode 100644 index 6fc0880..0000000 --- a/ttg01.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<tomorrowtheground gpsdevice="/dev/ttO0"> - <gps> - <index file="indexmapV1.gif" ll1="51.050608,3.724698" ll2="51.046878,3.732852"> - <trigger id="01" command="play" param="b01.wav"> - </trigger> - <trigger id="03" command="play" param="b02.wav"> - </trigger> - <trigger id="28" command="play" param="b03.wav"> - </trigger> - <trigger id="29" command="play" param="b04.wav"> - </trigger> - </index> - <scale file="x02.png" ll1="51.050608,3.724698" ll2="51.046878,3.732852" freq="1.0" command="cc01"> - </scale> - <scale file="x03.png" ll1="51.050608,3.724698" ll2="51.046878,3.732852" freq="1.0" command="cc02"> - </scale> - </gps> - <bt freq="10"> - <trigger id="00:1A:7D:0A:BA:C3" command="play" param="i01.wav"> - </trigger> - <trigger id="50:EA:D6:A6:7F:DD" command="play" param="i02.wav"> - </trigger> - </bt> -</tomorrowtheground>
\ No newline at end of file @@ -80,7 +80,9 @@ from btscan import * scan=scanner("127.0.0.1",5401,False) for t in doc.bt.trigger: scan.d.dm.triggers[t.id]=(t.command,t.param) -scan.start() + +if len(scan.d.dm.triggers) >0: + scan.start() logger=None |
