Skip to content

Commit

Permalink
updated __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mushie4282 committed Mar 9, 2024
1 parent 092216b commit 7fb045a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# from ovos_workshop.intents import IntentHandler # Uncomment to use Adapt intents
from ovos_workshop.skills import OVOSSkill

import sys
from os.path import expanduser
home = expanduser("~")
sys.path.append(home)
from SMS import SIM7600X

# Optional - if you want to populate settings.json with default values, do so here
DEFAULT_SETTINGS = {
"setting1": True,
Expand All @@ -20,8 +26,8 @@ def __init__(self, *args, skill_id=None, bus=None, **kwargs):
def initialize(self):
self.settings.merge(DEFAULT_SETTINGS, new_only=True)
self.add_event('recognizer_loop:hotword', self.handle_text_help)
self.add_event('bus_event', self.handle_text_help)
# add instance of cellular module
#self.add_event('text.emergency', self.handle_text_help) Does not work
phone = SIM7600X() # instance of cellular module

@classproperty
def runtime_requirements(self):
Expand All @@ -47,6 +53,8 @@ def my_setting(self):

def handle_text_help(self, message):
self.speak("Contacting emergency services right now")
self.speak("This is from skill r 2 arck text skill")
#phone.send_short_message("Send help to CSULB ASAP")

def stop(self):
return

0 comments on commit 7fb045a

Please sign in to comment.