Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 712 Bytes

README.md

File metadata and controls

37 lines (21 loc) · 712 Bytes

neo-6M

Python 3 class for neo-6M GPS

required:

geopy library if you want to geolocalize your gps point

https://github.com/geopy/geopy

use:

    from neo6 import GpsNeo6

    gps=GpsNeo6(port="/dev/ttyUSB0",debit=9600,diff=2) #diff is difference between utc time en local time    

    while True:

        gps.traite()

        print(gps) # print all info

        print(gps.latitude,gps.longitude)

results

    heure: 15h49m20s
    latitude: 41.5906788889
    longitude: 8.7393938889
    vitesse: 0.251 km/h
    altitude: 147.4 metre(s)
    precision: 1 metre(s)
    Nombre de satelites vue: 13

Sorry for french text in results