Compare commits
2 Commits
458c87e9dd
...
6db947e7ca
Author | SHA1 | Date |
---|---|---|
Ceda EI | 6db947e7ca | |
Ceda EI | 2a067b62fe |
|
@ -3,11 +3,11 @@
|
|||
"title": "Hazard Warning Button",
|
||||
"questions": [
|
||||
"What is the Hazard Warning button",
|
||||
"What happens when I press the warning button"
|
||||
|
||||
"What happens when I press the warning button",
|
||||
"What does the warning button do"
|
||||
],
|
||||
"answers": [
|
||||
"Hazard Warning button will activate the Hazard lights"
|
||||
"Pressing the Hazard Warning button will activate the Hazard lights"
|
||||
]
|
||||
},
|
||||
"rear.defogger": {
|
||||
|
@ -17,8 +17,7 @@
|
|||
"How do I defog the rear window and mirror"
|
||||
],
|
||||
"answers": [
|
||||
"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"
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"heating.system": {
|
||||
|
@ -50,11 +49,12 @@
|
|||
"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": {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
__pycache__/
|
||||
*.qmlc
|
||||
settings.json
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# <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
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
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()
|
|
@ -0,0 +1 @@
|
|||
Showing maps
|
|
@ -0,0 +1,8 @@
|
|||
Enable maps
|
||||
Start maps
|
||||
Turn on maps
|
||||
Display maps
|
||||
Enable map
|
||||
Start map
|
||||
Turn on map
|
||||
Display map
|
|
@ -0,0 +1 @@
|
|||
Turning on pet mode
|
|
@ -0,0 +1,6 @@
|
|||
Enable pet mode
|
||||
Start pet mode
|
||||
Turn on pet mode
|
||||
Enable child mode
|
||||
Start child mode
|
||||
Turn on child mode
|
|
@ -0,0 +1 @@
|
|||
Showing garage view
|
|
@ -0,0 +1,6 @@
|
|||
Enable smart home
|
||||
Start smart home
|
||||
Turn on smart home
|
||||
Show me my garage
|
||||
Show me garage
|
||||
Show me my house
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
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"
|
Loading…
Reference in New Issue