main.py hinzugefügt

This commit is contained in:
2026-04-11 17:48:09 +00:00
parent ecb1188b03
commit fd87fffa64
+18
View File
@@ -0,0 +1,18 @@
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("----")