Changeset 2898
- Timestamp:
- 01/22/12 09:08:48 (4 months ago)
- Files:
-
- 1 modified
-
trunk/moteur/posscripts/getpos_vor20120114bis.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/moteur/posscripts/getpos_vor20120114bis.py
r2894 r2898 45 45 boats[int(outline.attrib['id'])] = outline.attrib 46 46 47 coordfactor = float(tree.find("./factors").attrib['coord']) 48 47 49 #page = urlopen("http://volvooceanrace.geovoile.com/2011/leg2/shared/event/update.xml") 48 50 urllib.urlretrieve("http://volvooceanrace.geovoile.com/2011/shared/leg3/event/update.hwz", updatehwz) … … 75 77 if time.time() - t < 48*3600: 76 78 #20091108|1|1257681600|-729|BT|Sébastien Josse - Jean François Cuzon|50.016000|-1.891500|85.252725|4651.600000 77 print "%d|0|%d|%d|%s|BAR|%f|%f|0.|0." % (vlmidrace,int(t), id, boats[rid]['name'].encode('utf-8'), lat/ 1000., lon/1000.)79 print "%d|0|%d|%d|%s|BAR|%f|%f|0.|0." % (vlmidrace,int(t), id, boats[rid]['name'].encode('utf-8'), lat/coordfactor, lon/coordfactor) 78 80 #print time.gmtime(int(t)) 79 81
