Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
added mouth reset (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacnward authored Aug 18, 2016
1 parent 0366c8b commit aa8c8db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mycroft/client/enclosure/enclosure.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ def process(self, data):
self.client.emit(
Message("enclosure.eyes.timedspin",
metadata={'length': 12000}))
self.client.emit(Message("enclosure.mouth.reset"))
subprocess.call('systemctl poweroff -i', shell=True)

if "unit.reboot" in data:
self.client.emit(
Message("enclosure.eyes.spin"))
self.client.emit(Message("enclosure.mouth.reset"))
subprocess.call('systemctl reboot -i', shell=True)

if "unit.setwifi" in data:
Expand All @@ -132,6 +134,7 @@ def process(self, data):
shell=True)
self.client.emit(
Message("enclosure.eyes.spin"))
self.client.emit(Message("enclosure.mouth.reset"))
subprocess.call('systemctl reboot -i', shell=True)

def stop(self):
Expand Down

0 comments on commit aa8c8db

Please sign in to comment.