Features/encoder volume (#157)

* added volume control in enclosure.py

* fixed syntax for skill method usage

* addressing a problem with the enclosure service

* trying to use intents

* oops

* fixed pep8

* fixed issue with reversed volume controls

* changed enclosure version number to reflect updated enclosure code
pull/147/head
isaacnward 2016-06-17 16:27:09 -05:00 committed by Jonathan D'Orleans
parent 02075a2ef6
commit 3870e3c9c7
2 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from mycroft.messagebus.client.ws import WebsocketClient
from mycroft.messagebus.message import Message
from mycroft.util import kill
from mycroft.util.log import getLogger
from mycroft.skills.volume import VolumeSkill
__author__ = 'aatchison + jdorleans'
@ -74,6 +75,12 @@ class EnclosureReader(Thread):
self.client.emit(Message("mycroft.stop"))
kill(['mimic']) # TODO - Refactoring in favor of Mycroft Stop
if "volume.up" in data:
self.client.emit(Message("IncreaseVolumeIntent"))
if "volume.down" in data:
self.client.emit(Message("DecreaseVolumeIntent"))
def stop(self):
self.alive = False
self.join()

View File

@ -1 +1 @@
0.1.2
0.1.3