pys60
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pys60 [2012/01/15 13:03] – 119.192.238.152 | pys60 [2018/07/18 14:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 60: | Line 60: | ||
| print positioning.position(course=1, | print positioning.position(course=1, | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | import positioning | ||
| + | import messaging | ||
| + | import httplib, urllib | ||
| + | |||
| + | positioning.select_module(positioning.default_module()) | ||
| + | positioning.set_requestors([{" | ||
| + | " | ||
| + | " | ||
| + | |||
| + | def getmyposition(): | ||
| + | result = positioning.position() | ||
| + | #print 'all gps data: ', result | ||
| + | # | ||
| + | coordinates=result[" | ||
| + | mylatitude = coordinates[" | ||
| + | mylongitude = coordinates[" | ||
| + | print ' | ||
| + | print ' | ||
| + | messaging.sms_send(" | ||
| + | params = urllib.urlencode({' | ||
| + | headers = {" | ||
| + | conn = httplib.HTTPConnection(" | ||
| + | conn.request(" | ||
| + | conn.close() | ||
| + | |||
| + | # | ||
| + | getmyposition() | ||
| </ | </ | ||
| ===== 참고 ===== | ===== 참고 ===== | ||
pys60.1326632619.txt.gz · Last modified: 2018/07/18 14:09 (external edit)