Update cc/weather

This commit is contained in:
Nova Cat 2025-03-15 16:11:56 -07:00
parent c41343bd53
commit 816ab08fee

View file

@ -29,4 +29,4 @@ weathers = {
if "error" in query:
print("API ERROR: " + query["error"]["message"])
else:
print(query["location"]["name"] + ", " + query["location"]["region"] + ", " + query["location"]["country"] + ": " + weathers[query["current"]["is_day"]][query["current"]["condition"]["code"]] + " " + query["current"]["condition"]["text"] + " " + str(query["current"]["temp_c"]) + "°F (" + str(query["current"]["temp_c"]) + "°C)")
print(query["location"]["name"] + ", " + query["location"]["region"] + ", " + query["location"]["country"] + ": " + weathers[query["current"]["is_day"]][query["current"]["condition"]["code"]] + " " + query["current"]["condition"]["text"] + " " + str(query["current"]["temp_f"]) + "°F (" + str(query["current"]["temp_c"]) + "°C)")