Skip to content

Commit d3a7f42

Browse files
committed
Add altitude
1 parent d12070d commit d3a7f42

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

example.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ async def main():
2020
print("Sensor values:", data.values)
2121

2222
# Print the coordinates fo the sensor
23-
print("Location:", data.meta["latitude"], data.meta["longitude"])
23+
print(
24+
"Location:",
25+
data.meta["latitude"],
26+
data.meta["longitude"],
27+
data.meta["altitude"],
28+
)
2429

2530

2631
loop = asyncio.get_event_loop()

0 commit comments

Comments
 (0)