diff options
| -rw-r--r-- | domst.xml | 13 | ||||
| -rw-r--r-- | domst_grad.png | bin | 0 -> 42973 bytes | |||
| -rwxr-xr-x | wim.py | 6 |
3 files changed, 16 insertions, 3 deletions
diff --git a/domst.xml b/domst.xml new file mode 100644 index 0000000..90d84d8 --- /dev/null +++ b/domst.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<tomorrowtheground gpsdevice="/dev/ttO0"> + <gps> + <scale file="domst_grad.png" ll1="53.353241,-6.268789" ll2="53.35171,-6.266284" freq="1.0" command="cc01"> + </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 diff --git a/domst_grad.png b/domst_grad.png Binary files differnew file mode 100644 index 0000000..42b6783 --- /dev/null +++ b/domst_grad.png @@ -92,7 +92,7 @@ while True: try: data, addr = insock.recvfrom(128) pos.parse(data) - if debug: + if debug==True: print "wim: received:",data posChanged=True except: @@ -108,7 +108,7 @@ while True: outsock.sendto( "gpsstatus 0\n", (PD_IP, PD_PORT) ) check=gpsp.check() if check!=False: - if debug: + if debug==True: print "wim: received from gps",check[0],check[1] pos=latLng(check[0],check[1]) posChanged=True @@ -117,7 +117,7 @@ while True: for layer in gpslayers: r=layer.checkcoord(pos) #returns a message or None if r!=None: - if (debug): + if debug==True: print "wim: sending:",str(r[0]),str(r[1]) #pd needs \n at end of message outsock.sendto( str(r[0])+' '+str(r[1])+'\n', (PD_IP, PD_PORT) ) |
