Compare commits

..

No commits in common. "6db947e7ca7c4c4717a8648a75dbec62fcd992c9" and "458c87e9dd3d2ce6cce62504ff3f9985bba4114b" have entirely different histories.

11 changed files with 7 additions and 103 deletions

View File

@ -3,11 +3,11 @@
"title": "Hazard Warning Button",
"questions": [
"What is the Hazard Warning button",
"What happens when I press the warning button",
"What does the warning button do"
"What happens when I press the warning button"
],
"answers": [
"Pressing the Hazard Warning button will activate the Hazard lights"
"Hazard Warning button will activate the Hazard lights"
]
},
"rear.defogger": {
@ -17,7 +17,8 @@
"How do I defog the rear window and mirror"
],
"answers": [
"It defogs the rear windows and mirrors. Press the rear defogger and heated door mirror button to defog the rear window and mirrors when the ignition switch is in on"
"It will defog the rear windows and mirrors",
"Press the rear defogger and heated door mirror button to defog the rear window and mirrors when the ignition switch is in on"
]
},
"heating.system": {
@ -49,12 +50,11 @@
"title": "Parking Break",
"questions": [
"What is the use of Parking Break",
"What is the use of Parking brake",
"Where can I find the parking brake",
"Where can I find the parking break"
],
"answers": [
"This button is used to keep vehicle stationary when it is parked. It can be applied manually or automatically release it. You can find it in the compartment between the seat on the front."
"This button is used to keep vehicle stationary when it is parked. It can be applied manually or automatically release it",
"You can find it in the compartment between the seat on the front"
]
},
"speed.manual.shift.mode": {

View File

@ -1,4 +0,0 @@
__pycache__/
*.qmlc
settings.json

View File

@ -1,22 +0,0 @@
# <img src="https://raw.githack.com/FortAwesome/Font-Awesome/master/svgs/solid/map-signs.svg" card_color="#FD9E66" width="50" height="50" style="vertical-align:bottom"/> Car Mode Switches
Switches to various modes from audio
## About
Switches to various modes from audio
## Examples
* "Enable pet mode"
* "Start pet mode"
* "Turn on pet mode"
* "Enable child mode"
* "Start child mode"
* "Turn on child mode"
## Credits
Firewalkers
## Category
**Productivity**
## Tags

View File

@ -1,37 +0,0 @@
from mycroft import MycroftSkill, intent_file_handler
import requests
def emit(osd_url, event, data):
json = {
"event": event,
"data": data
}
print(json)
return requests.post(osd_url, json=json)
class CarModeSwitches(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('switches.mode.pet.intent')
def handle_switches_mode_car(self, message):
url = self.settings.get("OSD_API", "http://localhost:5050/send")
emit(url, "switchPlugin", {"plugin": "petMode"})
self.speak_dialog('switches.mode.pet')
@intent_file_handler('switches.mode.smart_home.intent')
def handle_switches_mode_car(self, message):
url = self.settings.get("OSD_API", "http://localhost:5050/send")
emit(url, "switchPlugin", {"plugin": "smartHome"})
self.speak_dialog('switches.mode.smart_home')
@intent_file_handler('switches.mode.maps.intent')
def handle_switches_mode_car(self, message):
url = self.settings.get("OSD_API", "http://localhost:5050/send")
emit(url, "switchPlugin", {"plugin": "maps"})
self.speak_dialog('switches.mode.maps')
def create_skill():
return CarModeSwitches()

View File

@ -1,8 +0,0 @@
Enable maps
Start maps
Turn on maps
Display maps
Enable map
Start map
Turn on map
Display map

View File

@ -1 +0,0 @@
Turning on pet mode

View File

@ -1,6 +0,0 @@
Enable pet mode
Start pet mode
Turn on pet mode
Enable child mode
Start child mode
Turn on child mode

View File

@ -1 +0,0 @@
Showing garage view

View File

@ -1,6 +0,0 @@
Enable smart home
Start smart home
Turn on smart home
Show me my garage
Show me garage
Show me my house

View File

@ -1,10 +0,0 @@
skillMetadata:
sections:
- name: API Paths
fields:
- name: OSD_API
type: text
label: OSD API URL
value: "http://localhost:5050/send"
placeholder: "http://localhost:5050/send"