api paste button
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user