|
|
@ -97,9 +97,13 @@ else: |
|
|
roundedTemp = rounding(temp) |
|
|
roundedTemp = rounding(temp) |
|
|
condition = request_json["properties"]["textDescription"] |
|
|
condition = request_json["properties"]["textDescription"] |
|
|
parsedCondition = iconSelect.parseDescription(condition) |
|
|
parsedCondition = iconSelect.parseDescription(condition) |
|
|
|
|
|
|
|
|
|
|
|
if not (request_json['properties']['icon']): |
|
|
|
|
|
timeOfDay = "day" |
|
|
|
|
|
else: |
|
|
timeOfDay = request_json['properties']['icon'].split("/")[5] |
|
|
timeOfDay = request_json['properties']['icon'].split("/")[5] |
|
|
weatherIcon = iconSelect.imageSelector(parsedCondition, timeOfDay) |
|
|
weatherIcon = iconSelect.imageSelector(parsedCondition, timeOfDay) |
|
|
# print(f"<txt> \u2601 {condition}, {roundedTemp} F</txt>") |
|
|
# print(f"<txt> \u2601 {condition}, {roundedTemp} F</txt>") |
|
|
print( |
|
|
print( |
|
|
f"<img>{weatherIcon}</img><txt>{roundedTemp}F</txt>") |
|
|
f"<img>{weatherIcon}</img> <txt>{roundedTemp}F</txt>") |
|
|
print(tooltipPrinter(request_json)) |
|
|
print(tooltipPrinter(request_json)) |
|
|
|