This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 443 | |
log_level: 1 | |
plugins: | |
# NOTE: run bundle after changing plugin configurations to update required gems | |
- name: 'Example' | |
path: './plugins/siriproxy-example' | |
# - name: 'Thermostat' | |
# git: 'git://github.com/plamoni/SiriProxy-Thermostat.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 443 | |
log_level: 1 | |
plugins: | |
# NOTE: run bundle after changing plugin configurations to update required gems | |
- name: 'Example' | |
path: './plugins/siriproxy-example' | |
# - name: 'Thermostat' | |
# git: 'git://github.com/plamoni/SiriProxy-Thermostat.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cora' | |
require 'siri_objects' | |
require 'pp' | |
####### | |
# This is a "hello world" style plugin. It simply intercepts the phrase "test siri proxy" and responds | |
# with a message about the proxy being up and running (along with a couple other core features). This | |
# is good base code for other plugins. | |
# | |
# Remember to add other plugins to the "config.yml" file if you create them! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 443 | |
log_level: 1 | |
plugins: | |
# NOTE: run bundle after changing plugin configurations to update required gems | |
# - name: 'Example' | |
# path: './plugins/siriproxy-example' | |
# - name: 'Thermostat' | |
# git: 'git://github.com/plamoni/SiriProxy-Thermostat.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen_for /test button/i do | |
add_views = SiriAddViews.new | |
add_views.make_root(last_ref_id) | |
button = SiriButton.new | |
button.text << "Button1" | |
newUtterance = SiriAssistantUtteranceView.new("Clicked!") | |
startRequest = SiriStartRequest.new(newUtterance, false, true) | |
sendCommand = SiriSendCommands.new | |
sendCommand.commands << startRequest | |
#button.commands << SiriSendCommands.new(SiriStartRequest.new(SiriAssistantUtteranceView.new("Clicked!"), false, true)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"class"=>"AddViews", | |
"properties"=> | |
{"temporary"=>false, | |
"dialogPhase"=>"Summary", | |
"scrollToTop"=>false, | |
"views"=> | |
[{"class"=>"AssistantUtteranceView", | |
"properties"=> | |
{"dialogIdentifier"=>"AnswerFacts#noResults", | |
"speakableText"=> |
NewerOlder