api paste button

This commit is contained in:
anne committed 2023-02-07 18:08:45 +01:00
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']