speak current time, not time of alarm

This commit is contained in:
2026-06-15 11:24:14 -04:00
parent bd7dc25fe0
commit fe2bac11d1
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -9,7 +9,6 @@ var playing := false
@onready var snooze_button = $VBoxContainer/HBoxContainer/snooze
@onready var sleep_mode = $"../sleep_mode"
var _day
var _weather
func popup(alarm_in: Alarm):
@@ -26,7 +25,6 @@ func popup(alarm_in: Alarm):
var json = await weather_api_node.get_forecast()
if json is Dictionary:
_weather = Constants.code_to_weather(json['current']['condition']['code'])
_day = Time.get_date_dict_from_system()['weekday']
show()
_play()
@@ -34,7 +32,9 @@ func popup(alarm_in: Alarm):
func _play():
playing = true
if !time_talker.is_playing():
time_talker.play(alarm.moment, _day, _weather, alarm.weather_music if alarm.override_weather_music else null, alarm.play_music, alarm.speak_time)
var moment = Constants.current_moment()
var day = Time.get_date_dict_from_system()['weekday']
time_talker.play(moment, day, _weather, alarm.weather_music if alarm.override_weather_music else null, alarm.play_music, alarm.speak_time)
func _on_snooze_timer_timeout():
if alarm != null and !alarm.active: