Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/runtime_requirements #18

Merged
merged 1 commit into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from mycroft.skills.core import MycroftSkill, intent_handler, intent_file_handler
from mycroft.util import normalize
from mycroft.util.parse import extract_number
from ovos_workshop.skills.base import SkillNetworkRequirements, classproperty
from ovos_utils.process_utils import RuntimeRequirements
from ovos_utils import classproperty

MIN_VOLUME = 0
MAX_VOLUME = 100
Expand All @@ -16,15 +17,16 @@ def amount_validator(response):


class VolumeSkill(MycroftSkill):
@classproperty
def network_requirements(self):
SkillNetworkRequirements(internet_before_load=False,
network_before_load=False,
requires_internet=False,
requires_network=False,
no_internet_fallback=True,
no_network_fallback=True)
return SkillNetworkRequirements()
def runtime_requirements(self):
return RuntimeRequirements(internet_before_load=False,
network_before_load=False,
gui_before_load=False,
requires_internet=False,
requires_network=False,
requires_gui=False,
no_internet_fallback=True,
no_network_fallback=True,
no_gui_fallback=True)

def _query_volume(self, message):
response = self.bus.wait_for_response(message.forward("mycroft.volume.get"))
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ovos_utils
ovos_workshop~=0.0, >=0.0.10
ovos-utils~=0.0, >=0.0.28a4
ovos_workshop~=0.0, >=0.0.11a4