├── .gitignore ├── locale └── en-us │ ├── reader.sensor.matrix.intent │ └── reader.sensor.matrix.dialog ├── __init__.py ├── README.md ├── settingsmeta.yaml ├── manifest.yml └── LICENSE.md /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.qmlc 3 | settings.json 4 | 5 | -------------------------------------------------------------------------------- /locale/en-us/reader.sensor.matrix.intent: -------------------------------------------------------------------------------- 1 | What does the uv sensor say? 2 | What is the indoor temarature? 3 | What does the humidity sensor read? 4 | -------------------------------------------------------------------------------- /locale/en-us/reader.sensor.matrix.dialog: -------------------------------------------------------------------------------- 1 | The uv index is x and the associated oms risk is y. 2 | The indoor temerature is x degrees. 3 | The relative humidity is 50%. 4 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | from mycroft import MycroftSkill, intent_file_handler 2 | 3 | 4 | class MatrixSensorReader(MycroftSkill): 5 | def __init__(self): 6 | MycroftSkill.__init__(self) 7 | 8 | @intent_file_handler('reader.sensor.matrix.intent') 9 | def handle_reader_sensor_matrix(self, message): 10 | self.speak_dialog('reader.sensor.matrix') 11 | 12 | 13 | def create_skill(): 14 | return MatrixSensorReader() 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Matrix Sensor Reader 2 | Read out different sensor readings from the matrix voice board. 3 | 4 | ## About 5 | Mycroft can be asked for the humidity sensor, imu sensor, the pressure sensor and the uv sensor. 6 | 7 | ## Examples 8 | * "What does the uv sensor say?" 9 | * "What is the indoor temarature?" 10 | * "What does the humidity sensor read?" 11 | 12 | ## Credits 13 | SilvanCodes 14 | 15 | ## Category 16 | **Information** 17 | IoT 18 | 19 | ## Tags 20 | #Matrix 21 | #Matrix voice 22 | #Sensor 23 | 24 | -------------------------------------------------------------------------------- /settingsmeta.yaml: -------------------------------------------------------------------------------- 1 | 2 | skillMetadata: 3 | sections: 4 | - name: Options << Name of section 5 | fields: 6 | - name: internal_python_variable_name 7 | type: text 8 | label: Setting Friendly Display Name 9 | value: "" 10 | placeholder: demo prompt in the input box 11 | - name: Login << Name of another section 12 | fields: 13 | - type: label 14 | label: Just a little bit of extra info for the user to understand following settings 15 | - name: username 16 | type: text 17 | label: Username 18 | value: "" 19 | - name: password 20 | type: password 21 | label: Password 22 | value: "" 23 | -------------------------------------------------------------------------------- /manifest.yml: -------------------------------------------------------------------------------- 1 | 2 | # This file details all external dependencies required by your skill. If your skill does 3 | # not require any dependencies, please delete this file before submitting a pull request. 4 | # 5 | # To use this file, uncomment the lines you need, and fill in the appropriate information. 6 | # 7 | # dependencies: 8 | # # Pip dependencies on PyPI 9 | # python: 10 | # - requests 11 | # - gensim 12 | # 13 | # # Install packages with the system package manager 14 | # # This searches for the provided executable and uses the package names 15 | # system: 16 | # # For simple packages, this is all that is necessary 17 | # all: pianobar piano-dev 18 | # 19 | # # If the package has a certain name on a different platform: 20 | # pkcon: pianobar libpiano-dev # For the mycroft platform 21 | # apt-get: pianobar libpiano-dev # For Ubuntu/Debian 22 | # 23 | # # Require certain executables to be in the PATH for the install to succeed 24 | # exes: 25 | # - pianobar 26 | # 27 | # # Require the installation of other skills before installing this skill 28 | # skill: 29 | # - my-other-skill 30 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (C) 2012 Yoshimasa Niwa 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | --------------------------------------------------------------------------------