19 lines
472 B
Python
19 lines
472 B
Python
import pygps
|
|
|
|
|
|
gps = pygps.pyGPS()
|
|
while True:
|
|
#print(gps.get_raw())
|
|
print(f"Zeit: {gps.get_time()} Uhr UTC")
|
|
print(f"Datum: {gps.get_date()}")
|
|
print(f"Breitengrad: {gps.get_lat()}")
|
|
print(f"Längengrad: {gps.get_lon()}")
|
|
print(f"Geschwindigkeit: {gps.get_speed_kn()} kn")
|
|
print(f"Geschwindigkeit: {gps.get_speed_kmh()} km/h")
|
|
print(f"Geschwindigkeit: {gps.get_speed_ms()} m/s")
|
|
print(f"COG: {gps.get_course()}°")
|
|
print("----")
|
|
|
|
|
|
|