api paste button

This commit is contained in:
anne
2023-02-07 18:08:45 +01:00
parent 1416a35df1
commit 5cf2a70929
6 changed files with 52 additions and 20 deletions
@@ -23,7 +23,7 @@ func _on_config_changed():
func hourly_weather_update(json):
var WC = Constants.WEATHER.UNKNOWN
var temp = 0.0
if json != null:
if json != null and !json.has('error'):
WC = json['current']['condition']['code']
temp = json['current']['temp_c']