api paste button
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ func _on_hourly_weather_timer_timeout():
|
||||
func _on_WeatherAPINode_received_forecast(json):
|
||||
var WC = Constants.WEATHER.UNKNOWN
|
||||
print('weather update: ',json)
|
||||
if json != null:
|
||||
if json != null and not json.get('error'):
|
||||
weather_data.append(json)
|
||||
WC = json['current']['condition']['code']
|
||||
get_tree().call_group("hourly_weather_updates", "hourly_weather_update", json)
|
||||
|
||||
Reference in New Issue
Block a user