Skip to content

Commit

Permalink
Merge pull request #43 from OpenVoiceOS/release-0.3.7a1
Browse files Browse the repository at this point in the history
Release 0.3.7a1
  • Loading branch information
JarbasAl authored Nov 15, 2024
2 parents d1a3a1d + 7c0759c commit f30b6da
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# Changelog

## [0.3.5a1](https://github.com/OpenVoiceOS/skill-ovos-naptime/tree/0.3.5a1) (2024-11-15)
## [0.3.7a1](https://github.com/OpenVoiceOS/skill-ovos-naptime/tree/0.3.7a1) (2024-11-15)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-naptime/compare/0.3.4...0.3.5a1)
[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-naptime/compare/0.3.6a1...0.3.7a1)

**Merged pull requests:**

- fix: deprecation log spam [\#38](https://github.com/OpenVoiceOS/skill-ovos-naptime/pull/38) ([JarbasAl](https://github.com/JarbasAl))
- fix: emit bus message for listener [\#42](https://github.com/OpenVoiceOS/skill-ovos-naptime/pull/42) ([JarbasAl](https://github.com/JarbasAl))

## [0.3.6a1](https://github.com/OpenVoiceOS/skill-ovos-naptime/tree/0.3.6a1) (2024-11-15)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-naptime/compare/0.3.5...0.3.6a1)

**Merged pull requests:**

- missing "wake up" intent [\#39](https://github.com/OpenVoiceOS/skill-ovos-naptime/pull/39) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
11 changes: 11 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from ovos_utils import classproperty
from ovos_utils.process_utils import RuntimeRequirements
from ovos_workshop.decorators import intent_handler
from ovos_workshop.intents import IntentBuilder
from ovos_workshop.skills import OVOSSkill


Expand Down Expand Up @@ -111,6 +112,7 @@ def mark1_wake_up_animation(self, message: Message):
def display_sleep_face(self) -> None:
"""Display the sleeping face depending on the platform."""
self.gui.show_page("resting", override_idle=True)
self.set_context("sleeping_state")

def display_waking_face(self) -> None:
"""Display the waking face depending on the platform."""
Expand Down Expand Up @@ -173,6 +175,14 @@ def handle_go_to_sleep(self, message: Message):
self.bus.emit(Message("mycroft.volume.mute"))
if self.config_core["confirm_listening"]:
self.disable_confirm_listening()
self.set_context("sleeping_state")

@intent_handler(IntentBuilder("WakeUp").require("wakeup").require("sleeping_state"))
def handle_wakeup(self, message: Message):
"""STT is disabled, but command can be sent via cli"""
self.started_by_skill = True
# tell ovos-listener to wake up
self.bus.emit(message.forward("recognizer_loop:wake_up"))

def handle_awoken(self, message: Message):
"""Handler for the mycroft.awoken message
Expand All @@ -193,6 +203,7 @@ def awaken(self):
self.enable_confirm_listening()
self.sleeping = False
self.started_by_skill = False
self.remove_context("sleeping_state")

def disable_confirm_listening(self):
msg = Message(
Expand Down
1 change: 1 addition & 0 deletions locale/en-us/wakeup.voc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wake up
5 changes: 5 additions & 0 deletions translations/en-us/vocabs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"wakeup.voc": [
"wake up"
]
}
4 changes: 2 additions & 2 deletions version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 3
VERSION_BUILD = 5
VERSION_ALPHA = 0
VERSION_BUILD = 7
VERSION_ALPHA = 1
# END_VERSION_BLOCK

0 comments on commit f30b6da

Please sign in to comment.