api paste button
This commit is contained in:
1 parent
1416a35df1
commit
5cf2a70929
6 files changed
+52
-20
No files matched your search
@@ -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