main.py hinzugefügt
This commit is contained in:
@@ -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("----")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user