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
+1 -1
View File
@@ -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)