User Tools

Site Tools


pys60

This is an old revision of the document!


다운로드

설치

다운로드 하면 C:\Program Files\PythonForS60\PyS60Dependencies 폴더에 아래 파일이 있다. 다음 파일을 클릭하여 Nokia PC Suite 로 설치한다.

  • Python_2.0.0.sis
  • pips.sis
  • PythonScriptShell_2.0.0_high_capas.sis

패키징

핸드폰에 설치된 python shell에서 직접 실행할 수 도 있지만, PyS60 Application Packager 프로그램을 이용하여 sis 로 패키징 할 수 있다.

패키지 인증: http://library.developer.nokia.com/Community/Wiki/How_to_sign_an_unsigned_application

메뉴얼

GPS 정보 가져오기

http://pys60.garage.maemo.org/doc/s60/position-example.html

# note: your phone must have the 'Location' (GPS data /position) application on, 
# and receive satalite data in order to make this script work. (can be problematic indoors).

import positioning

positioning.select_module(positioning.default_module())
positioning.set_requestors([{"type":"service",
                             "format":"application",
                             "data":"test_app"}])

def getmyposition():
    result = positioning.position()
    #print 'all gps data: ', result    
    coordinates=result["position"]
    mylatitude = coordinates["latitude"]
    mylongitude = coordinates["longitude"]
    print 'mylatitude: ', mylatitude
    print 'mylongitude:', mylongitude

getmyposition()

참고

pys60.1326625075.txt.gz · Last modified: 2018/07/18 14:09 (external edit)