trying to get tooling working

This commit is contained in:
0x01FE committed 2025-10-02 13:12:46 -05:00
1 parent 4d71275f12
commit 16d4998d70
4 files changed
+46 -17

No files matched your search

+5 -5
View File
@@ -36,10 +36,10 @@ class OpenMeteo:
# Process first location. Add a for-loop for multiple locations or weather models
response = responses[0]
print(f"Coordinates: {response.Latitude()}°N {response.Longitude()}°E")
print(f"Elevation: {response.Elevation()} m asl")
print(f"Timezone: {response.Timezone()}{response.TimezoneAbbreviation()}")
print(f"Timezone difference to GMT+0: {response.UtcOffsetSeconds()}s")
# print(f"Coordinates: {response.Latitude()}°N {response.Longitude()}°E")
# print(f"Elevation: {response.Elevation()} m asl")
# print(f"Timezone: {response.Timezone()}{response.TimezoneAbbreviation()}")
# print(f"Timezone difference to GMT+0: {response.UtcOffsetSeconds()}s")
# Process hourly data. The order of variables needs to be the same as requested.
hourly = response.Hourly()
@@ -57,7 +57,7 @@ class OpenMeteo:
hourly_data['rain'] = hourly_rain
hourly_dataframe = pd.DataFrame(data = hourly_data)
print("\nHourly data\n", hourly_dataframe)
# print("\nHourly data\n", hourly_dataframe)
return hourly_dataframe