Can I run a bash script using the system command.
Best wishes.
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
Yes you can, I am currently running a bash script to control my Sky+HD box - via Siri.Foggy wrote:Can I run a bash script using the system command.
Best wishes.
Re: Siri: Open my garage door..
I'm the only one having trouble running it with iphone 5?
I've seen DarkTherapy work which is awesome! Thanks for sharing your knowledge
I've siriproxy up and running on my pi and my ubuntu laptop, but on both it seems like siri isn't communicating with the server, it just connect to apple and not my proxy.
I've installed the ca.pem file but nothing, it might be my iphone or my server isn't running well?
Thanks.
I've seen DarkTherapy work which is awesome! Thanks for sharing your knowledge

I've siriproxy up and running on my pi and my ubuntu laptop, but on both it seems like siri isn't communicating with the server, it just connect to apple and not my proxy.
I've installed the ca.pem file but nothing, it might be my iphone or my server isn't running well?
Thanks.
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
Did you set the DNS on your phones wifi setup to match the siriproxy ip?orxelm wrote:I'm the only one having trouble running it with iphone 5?
I've seen DarkTherapy work which is awesome! Thanks for sharing your knowledge
I've siriproxy up and running on my pi and my ubuntu laptop, but on both it seems like siri isn't communicating with the server, it just connect to apple and not my proxy.
I've installed the ca.pem file but nothing, it might be my iphone or my server isn't running well?
Thanks.
Re: Siri: Open my garage door..
Thank you.DarkTherapy wrote:Yes you can, I am currently running a bash script to control my Sky+HD box - via Siri.Foggy wrote:Can I run a bash script using the system command.
Best wishes.
I can turn my lights on using a gem and then from the command line call "lightwaverf living socket on"
If I enter this directly into the plugin I get an error, so I thought I would try a bash script
#!/bin/sh
lightwaverf living socket on
I have called this light.sh and then chmod +x the file.
If I call this from the command line ./light.sh ---- It works.
If I enter it into the plugin:
listen_for /power/i do
say "Enabling the standing light..."
request_completed
system("./light.sh")
end
I don't get any errors and it appears to accept the command but the bash script does not work.
Can anyone suggest what I am doing wrong?
Best wishes.
James.
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
Try:Foggy wrote:Thank you.DarkTherapy wrote:Yes you can, I am currently running a bash script to control my Sky+HD box - via Siri.Foggy wrote:Can I run a bash script using the system command.
Best wishes.
I can turn my lights on using a gem and then from the command line call "lightwaverf living socket on"
If I enter this directly into the plugin I get an error, so I thought I would try a bash script
#!/bin/sh
lightwaverf living socket on
I have called this light.sh and then chmod +x the file.
If I call this from the command line ./light.sh ---- It works.
If I enter it into the plugin:
listen_for /power/i do
say "Enabling the standing light..."
request_completed
system("./light.sh")
end
I don't get any errors and it appears to accept the command but the bash script does not work.
Can anyone suggest what I am doing wrong?
Best wishes.
James.
system("sh ./light.sh")
Other than that I can't see why it wouldn't launch? Maybe a chmod 777 the file?
Re: Siri: Open my garage door..
Thank you.
system("sh ./light.sh")
Just gave me
[Info - Guzzoni] Received Object: SpeechRecognized
[Info - Plugin Manager] Processing 'Power '
[Info - Plugin Manager] Processing plugin #<SiriProxy::Plugin::Example:0x1eec580>
[Info - Plugin Manager] Matches (?i-mx:power)
[Info - Plugin Manager] Applicable states:
[Info - Plugin Manager] Current state:
[Info - Plugin Manager] Matches, executing block
[Info - Plugin Manager] Say: Enabling the standing light...
[Info - Plugin Manager] Sending Request Completed
sh: 0: Can't open ./light.sh
Maybe a chmod 777 the file?
changed to
-rwxrwxrwx 1 root root 42 Jan 1 16:05 light.sh
Still no joy.
Have I got by bash script correct?
it is just two lines
#!/bin/sh
lightwaverf living socket on
Do I need to add anything else?
Best wishes.
James.
system("sh ./light.sh")
Just gave me
[Info - Guzzoni] Received Object: SpeechRecognized
[Info - Plugin Manager] Processing 'Power '
[Info - Plugin Manager] Processing plugin #<SiriProxy::Plugin::Example:0x1eec580>
[Info - Plugin Manager] Matches (?i-mx:power)
[Info - Plugin Manager] Applicable states:
[Info - Plugin Manager] Current state:
[Info - Plugin Manager] Matches, executing block
[Info - Plugin Manager] Say: Enabling the standing light...
[Info - Plugin Manager] Sending Request Completed
sh: 0: Can't open ./light.sh
Maybe a chmod 777 the file?
changed to
-rwxrwxrwx 1 root root 42 Jan 1 16:05 light.sh
Still no joy.
Have I got by bash script correct?
it is just two lines
#!/bin/sh
lightwaverf living socket on
Do I need to add anything else?
Best wishes.
James.
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
Maybe it needs the full path to the bash script /root/SiriProxy/light.sh for example.Foggy wrote:Thank you.
system("sh ./light.sh")
Just gave me
[Info - Guzzoni] Received Object: SpeechRecognized
[Info - Plugin Manager] Processing 'Power '
[Info - Plugin Manager] Processing plugin #<SiriProxy::Plugin::Example:0x1eec580>
[Info - Plugin Manager] Matches (?i-mx:power)
[Info - Plugin Manager] Applicable states:
[Info - Plugin Manager] Current state:
[Info - Plugin Manager] Matches, executing block
[Info - Plugin Manager] Say: Enabling the standing light...
[Info - Plugin Manager] Sending Request Completed
sh: 0: Can't open ./light.sh
Maybe a chmod 777 the file?
changed to
-rwxrwxrwx 1 root root 42 Jan 1 16:05 light.sh
Still no joy.
Have I got by bash script correct?
it is just two lines
#!/bin/sh
lightwaverf living socket on
Do I need to add anything else?
Best wishes.
James.
Re: Siri: Open my garage door..
As soon as I try and put a path /root/SiriProxy/light.sh
(I moved it there) and chmod 777 again.
I get these errors.
/usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': lightwaverf is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /usr/local/bin/lightwaverf:22:in `<main>'
The only way I seem to get rid of the error is by specifying ./light.sh - but of course that does not work.
Best wishes.
(I moved it there) and chmod 777 again.
I get these errors.
/usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': lightwaverf is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /usr/local/bin/lightwaverf:22:in `<main>'
The only way I seem to get rid of the error is by specifying ./light.sh - but of course that does not work.
Best wishes.
Re: Siri: Open my garage door..
Thank you, that was the problemDarkTherapy wrote: Did you set the DNS on your phones wifi setup to match the siriproxy ip?

But now i'm facing worse problem:
Code: Select all
SiriProxy up and running.
Create server for iPhone connection
start conn #<SiriProxy::Connection::Iphone:0x1062c00 @signature=3, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#<Zlib::Inflate:0x10628d0>, @zip_stream=#<Zlib::Deflate:0x10628b8>, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x16cb0f0 @manager=#<SiriProxy::PluginManager:0x10625b8 @plugins=[...]>>]
[Info - iPhone] Received Object: LoadAssistant
/home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `encode': "\xA3" on UTF-8 (Encoding::InvalidByteSequenceError)
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `charset_convert'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:442:in `string_to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:48:in `to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:70:in `to_str'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:363:in `to_str'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:398:in `to_plist'
from /home/pi/SiriProxy/lib/siriproxy/connection.rb:150:in `inject_object_to_output_stream'
from /home/pi/SiriProxy/lib/siriproxy/connection.rb:90:in `process_compressed_data'
from /home/pi/SiriProxy/lib/siriproxy/connection.rb:58:in `receive_binary_data'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/em/protocols/linetext2.rb:94:in `receive_data'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run'
from /home/pi/SiriProxy/lib/siriproxy.rb:16:in `initialize'
from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:96:in `new'
from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:96:in `start_server'
from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:85:in `run_server'
from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:37:in `initialize'
from /home/pi/SiriProxy/bin/siriproxy:6:in `new'
from /home/pi/SiriProxy/bin/siriproxy:6:in `<top (required)>'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in `load'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in `<main>'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in `eval'
from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in `<main>'
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
No idea! Does it work in Ubuntu? You mentioned it running in Ubuntu earlier.orxelm wrote:Thank you, that was the problemDarkTherapy wrote: Did you set the DNS on your phones wifi setup to match the siriproxy ip?
But now i'm facing worse problem:
Any clue?Code: Select all
SiriProxy up and running. Create server for iPhone connection start conn #<SiriProxy::Connection::Iphone:0x1062c00 @signature=3, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#<Zlib::Inflate:0x10628d0>, @zip_stream=#<Zlib::Deflate:0x10628b8>, @consumed_ace=false, @name="iPhone", @ssled=false> [Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x16cb0f0 @manager=#<SiriProxy::PluginManager:0x10625b8 @plugins=[...]>>] [Info - iPhone] Received Object: LoadAssistant /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `encode': "\xA3" on UTF-8 (Encoding::InvalidByteSequenceError) from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `charset_convert' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:442:in `string_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:48:in `to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:70:in `to_str' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:363:in `to_str' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:398:in `to_plist' from /home/pi/SiriProxy/lib/siriproxy/connection.rb:150:in `inject_object_to_output_stream' from /home/pi/SiriProxy/lib/siriproxy/connection.rb:90:in `process_compressed_data' from /home/pi/SiriProxy/lib/siriproxy/connection.rb:58:in `receive_binary_data' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/em/protocols/linetext2.rb:94:in `receive_data' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run' from /home/pi/SiriProxy/lib/siriproxy.rb:16:in `initialize' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:96:in `new' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:96:in `start_server' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:85:in `run_server' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:37:in `initialize' from /home/pi/SiriProxy/bin/siriproxy:6:in `new' from /home/pi/SiriProxy/bin/siriproxy:6:in `<top (required)>' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in `load' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in `<main>' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in `eval' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in `<main>'
Re: Siri: Open my garage door..
The weirdest thing ever! I get the same error when running the proxy on Ubuntu 12.10DarkTherapy wrote:No idea! Does it work in Ubuntu? You mentioned it running in Ubuntu earlier.orxelm wrote:Thank you, that was the problemDarkTherapy wrote: Did you set the DNS on your phones wifi setup to match the siriproxy ip?
But now i'm facing worse problem:
Any clue?Code: Select all
SiriProxy up and running. Create server for iPhone connection start conn #<SiriProxy::Connection::Iphone:0x1062c00 @signature=3, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#<Zlib::Inflate:0x10628d0>, @zip_stream=#<Zlib::Deflate:0x10628b8>, @consumed_ace=false, @name="iPhone", @ssled=false> [Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x16cb0f0 @manager=#<SiriProxy::PluginManager:0x10625b8 @plugins=[...]>>] [Info - iPhone] Received Object: LoadAssistant /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `encode': "\xA3" on UTF-8 (Encoding::InvalidByteSequenceError) from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:217:in `charset_convert' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:442:in `string_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:48:in `to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `block in dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `map' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:550:in `dict_to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFTypes.rb:243:in `to_binary' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbBinaryCFPropertyList.rb:70:in `to_str' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:363:in `to_str' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/CFPropertyList-2.2.0/lib/rbCFPropertyList.rb:398:in `to_plist' from /home/pi/SiriProxy/lib/siriproxy/connection.rb:150:in `inject_object_to_output_stream' from /home/pi/SiriProxy/lib/siriproxy/connection.rb:90:in `process_compressed_data' from /home/pi/SiriProxy/lib/siriproxy/connection.rb:58:in `receive_binary_data' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/em/protocols/linetext2.rb:94:in `receive_data' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run' from /home/pi/SiriProxy/lib/siriproxy.rb:16:in `initialize' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:96:in `new' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:96:in `start_server' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:85:in `run_server' from /home/pi/SiriProxy/lib/siriproxy/command_line.rb:37:in `initialize' from /home/pi/SiriProxy/bin/siriproxy:6:in `new' from /home/pi/SiriProxy/bin/siriproxy:6:in `<top (required)>' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in `load' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/siriproxy:19:in `<main>' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in `eval' from /home/pi/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bin/ruby_noexec_wrapper:14:in `<main>'
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
Try removing the cert from the iPhone, recreate a new one and upload it to the phone.
Re: Siri: Open my garage door..
Apparently i'm not the only one having this issue, here's the solution:DarkTherapy wrote:Try removing the cert from the iPhone, recreate a new one and upload it to the phone.
https://github.com/plamoni/SiriProxy/issues/389
Thanks man, you really helped

-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
No problem, that's a handy link you posted too.orxelm wrote:Apparently i'm not the only one having this issue, here's the solution:DarkTherapy wrote:Try removing the cert from the iPhone, recreate a new one and upload it to the phone.
https://github.com/plamoni/SiriProxy/issues/389
Thanks man, you really helped
Re: Siri: Open my garage door..
just wanted to let everybody know that someone has posted on sourceforge an image with Siri already installed
http://sourceforge.net/projects/siriproxyrpi/
http://sourceforge.net/projects/siriproxyrpi/
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
That's great, I'll have to download and try that myself!joefly wrote:just wanted to let everybody know that someone has posted on sourceforge an image with Siri already installed
http://sourceforge.net/projects/siriproxyrpi/
-
- Posts: 15
- Joined: Mon Dec 24, 2012 7:50 pm
Re: Siri: Open my garage door..
Hello,
This is probably a late request (and a dumb question) but, being a programmer and not much of an electronics guy, can someone provide more with details about the relay piece? I've got SiriProxy set up on a VM as well as on a Model B Pi but I have no clue what to do regarding the relay: how to get one, how to wire/install it, etc.
I ordered a "SainSmart 8-Channel 5V Relay Module for Arduino DSP AVR PIC ARM" (http://www.amazon.com/gp/product/B0057OC5WK) but I'm not sure if this is the right equipment and how to use it.
Do I need an electronics expert to help me set it up?
Your help is appreciated.
-al
This is probably a late request (and a dumb question) but, being a programmer and not much of an electronics guy, can someone provide more with details about the relay piece? I've got SiriProxy set up on a VM as well as on a Model B Pi but I have no clue what to do regarding the relay: how to get one, how to wire/install it, etc.
I ordered a "SainSmart 8-Channel 5V Relay Module for Arduino DSP AVR PIC ARM" (http://www.amazon.com/gp/product/B0057OC5WK) but I'm not sure if this is the right equipment and how to use it.
Do I need an electronics expert to help me set it up?
Your help is appreciated.
-al
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
That relay board will work fine. You'll notice it has a vcc pin - connect that to the RasPi's 5v pin. A gnd pin - connect that to the RasPi's gnd. Then the other 8 pins are the signal lines to activate each relay, these you connect to the GPIO, you'll need to look up a GPIO schematic to get the PIN numbers that you'll access in software.alankernel wrote:Hello,
This is probably a late request (and a dumb question) but, being a programmer and not much of an electronics guy, can someone provide more with details about the relay piece? I've got SiriProxy set up on a VM as well as on a Model B Pi but I have no clue what to do regarding the relay: how to get one, how to wire/install it, etc.
I ordered a "SainSmart 8-Channel 5V Relay Module for Arduino DSP AVR PIC ARM" (http://www.amazon.com/gp/product/B0057OC5WK) but I'm not sure if this is the right equipment and how to use it.
Do I need an electronics expert to help me set it up?
Your help is appreciated.
-al
There are single relay boards like the one you've bought that would work fine too. Basically the circuit is constantly connected to 5 volts and when the RasPi sends 3.3v through one if its GPIO pins the relay board sends 5v to its corresponding relay.
In fact, my first garage door opener prototype used the same board you've bought! I got the same board for arduino use but it's fine for the Pi too.
Here's a photo: https://www.dropbox.com/s/j124p8gjmpauu ... .49.05.jpg
-
- Posts: 6
- Joined: Fri Nov 02, 2012 9:34 pm
Re: Siri: Open my garage door..
Hi,
Amazing work ! My girlfriend begins to believe in the power of the Raspberry Pi because of you.
I successfully installed SiriProxy and Wiring Pi. If I say "Open the garage door" to Siri, the Rpi lights a LED (0,5 sec). I'm now waiting for a transistor and a relay, bought on ebay.ca, for the last part with a garage door.
Could you share the way you did to make the Rpi starts the server by itself. I understand it's a script that the Rpi will run when it starts (obviously)...but I've no idea how to do it nor where to learn to do it.
Thanks !
Amazing work ! My girlfriend begins to believe in the power of the Raspberry Pi because of you.

I successfully installed SiriProxy and Wiring Pi. If I say "Open the garage door" to Siri, the Rpi lights a LED (0,5 sec). I'm now waiting for a transistor and a relay, bought on ebay.ca, for the last part with a garage door.
Could you share the way you did to make the Rpi starts the server by itself. I understand it's a script that the Rpi will run when it starts (obviously)...but I've no idea how to do it nor where to learn to do it.
Thanks !
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
Well actually I personally haven't got mine setup to start on boot, I use a program called "screen" to keep the server running when I log out of the ssh session, there is plenty of documentation online regarding startup scripts. I prefer to start it manually in a screen session, then log out.RaspberryMarK wrote:Hi,
Amazing work ! My girlfriend begins to believe in the power of the Raspberry Pi because of you.
I successfully installed SiriProxy and Wiring Pi. If I say "Open the garage door" to Siri, the Rpi lights a LED (0,5 sec). I'm now waiting for a transistor and a relay, bought on ebay.ca, for the last part with a garage door.
Could you share the way you did to make the Rpi starts the server by itself. I understand it's a script that the Rpi will run when it starts (obviously)...but I've no idea how to do it nor where to learn to do it.
Thanks !
Thanks for your praise too.
-
- Posts: 69
- Joined: Mon Aug 20, 2012 8:14 am
Re: Siri: Open my garage door..
I just want to share my next project idea with you guys. Along with the help of user G160 I've been able to use SiriProxy to communicate to my Sky+HD box to change channels and some basic controls, it's a work in progress but this is how it's looking so far: http://youtu.be/qvNEtuYSxTA
-
- Posts: 15
- Joined: Mon Dec 24, 2012 7:50 pm
Re: Siri: Open my garage door..
Thanks DarkTherapy! I'll give your recommendation a try.
I hope the cabling will be straightforward to my thick Electronics brain
I hope the cabling will be straightforward to my thick Electronics brain

Re: Siri: Open my garage door..
I followed the instructions on idownloadblog, but when I got to the command with [$HOME and stuff like that (approximately command 5) I get the error "that is not a directory" or something like that (This is from memory, my pi is down at the moment, cuz whenever I try a pi project it doesn't work and messes up my sd card) Did I do it right? I only followed the written instructions (no access to yt) and might have missed something...
Warning: Absolute Newbie Approaching
Re: Siri: Open my garage door..
I have the siriproxy server up and running. I'm able to accept requests from both LAN and WAN (VPN was was easier to setup than i anticipated), I just received my relay board and just have one question.
Where exactly do you connect the relay on the garage door circuit board?
I have an older model genie system, and there isn't a secondary connection terminal and all of the wires are in prefabbed connectors, no screw down terminals. I don't mind cutting one of the wires in the name of home automation.
Where exactly do you connect the relay on the garage door circuit board?
I have an older model genie system, and there isn't a secondary connection terminal and all of the wires are in prefabbed connectors, no screw down terminals. I don't mind cutting one of the wires in the name of home automation.