speak current time, not time of alarm
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user