claude godot 4 port
This commit is contained in:
@@ -2,13 +2,11 @@ extends Control
|
||||
|
||||
|
||||
func _ready():
|
||||
var stuff = yield($WeatherAPINode.get_current(), "completed")
|
||||
var out = JSON.print(stuff, " ")
|
||||
var stuff = await $WeatherAPINode.get_current()
|
||||
var out = JSON.stringify(stuff, " ")
|
||||
$RichTextLabel.text = out
|
||||
var WC = str(stuff['current']['condition']['code'])
|
||||
print([WC])
|
||||
print(Constants.weather_codes)
|
||||
print(Constants.weather_codes.has(WC))
|
||||
print(Constants.WEATHER.keys()[Constants.code_to_weather(WC)])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user