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 codepull/147/head
parent
02075a2ef6
commit
3870e3c9c7
|
@ -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()
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.1.2
|
||||
0.1.3
|
Loading…
Reference in New Issue