Siri: Open my garage door..


218 posts   Page 5 of 9   1, 2, 3, 4, 5, 6, 7, 8, 9
by Foggy » Mon Dec 31, 2012 6:40 pm
Can I run a bash script using the system command.

Best wishes.
Posts: 18
Joined: Mon Aug 20, 2012 12:26 pm
Location: Reading UK
by DarkTherapy » Tue Jan 01, 2013 8:16 am
Foggy wrote:Can I run a bash script using the system command.

Best wishes.


Yes you can, I am currently running a bash script to control my Sky+HD box - via Siri.
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by orxelm » Tue Jan 01, 2013 10:29 am
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.
Posts: 5
Joined: Thu Dec 20, 2012 9:13 pm
by DarkTherapy » Tue Jan 01, 2013 10:45 am
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.


Did you set the DNS on your phones wifi setup to match the siriproxy ip?
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by Foggy » Tue Jan 01, 2013 3:54 pm
DarkTherapy wrote:
Foggy wrote:Can I run a bash script using the system command.

Best wishes.


Yes you can, I am currently running a bash script to control my Sky+HD box - via Siri.


Thank you.

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: 18
Joined: Mon Aug 20, 2012 12:26 pm
Location: Reading UK
by DarkTherapy » Tue Jan 01, 2013 4:06 pm
Foggy wrote:
DarkTherapy wrote:
Foggy wrote:Can I run a bash script using the system command.

Best wishes.


Yes you can, I am currently running a bash script to control my Sky+HD box - via Siri.


Thank you.

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.


Try:
system("sh ./light.sh")

Other than that I can't see why it wouldn't launch? Maybe a chmod 777 the file?
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by Foggy » Tue Jan 01, 2013 4:27 pm
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.
Posts: 18
Joined: Mon Aug 20, 2012 12:26 pm
Location: Reading UK
by DarkTherapy » Tue Jan 01, 2013 4:34 pm
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.


Maybe it needs the full path to the bash script /root/SiriProxy/light.sh for example.
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by Foggy » Tue Jan 01, 2013 4:52 pm
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.
Posts: 18
Joined: Mon Aug 20, 2012 12:26 pm
Location: Reading UK
by orxelm » Tue Jan 01, 2013 6:44 pm
DarkTherapy wrote:Did you set the DNS on your phones wifi setup to match the siriproxy ip?


Thank you, that was the problem :)
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>'


Any clue?
Posts: 5
Joined: Thu Dec 20, 2012 9:13 pm
by DarkTherapy » Tue Jan 01, 2013 7:00 pm
orxelm wrote:
DarkTherapy wrote:Did you set the DNS on your phones wifi setup to match the siriproxy ip?


Thank you, that was the problem :)
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>'


Any clue?


No idea! Does it work in Ubuntu? You mentioned it running in Ubuntu earlier.
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by orxelm » Tue Jan 01, 2013 8:14 pm
DarkTherapy wrote:
orxelm wrote:
DarkTherapy wrote:Did you set the DNS on your phones wifi setup to match the siriproxy ip?


Thank you, that was the problem :)
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>'


Any clue?


No idea! Does it work in Ubuntu? You mentioned it running in Ubuntu earlier.


The weirdest thing ever! I get the same error when running the proxy on Ubuntu 12.10
Posts: 5
Joined: Thu Dec 20, 2012 9:13 pm
by DarkTherapy » Tue Jan 01, 2013 8:29 pm
Try removing the cert from the iPhone, recreate a new one and upload it to the phone.
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by orxelm » Wed Jan 02, 2013 9:28 am
DarkTherapy wrote:Try removing the cert from the iPhone, recreate a new one and upload it to the phone.


Apparently i'm not the only one having this issue, here's the solution:
https://github.com/plamoni/SiriProxy/issues/389

Thanks man, you really helped :)
Posts: 5
Joined: Thu Dec 20, 2012 9:13 pm
by DarkTherapy » Wed Jan 02, 2013 9:53 am
orxelm wrote:
DarkTherapy wrote:Try removing the cert from the iPhone, recreate a new one and upload it to the phone.


Apparently i'm not the only one having this issue, here's the solution:
https://github.com/plamoni/SiriProxy/issues/389

Thanks man, you really helped :)


No problem, that's a handy link you posted too.
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by joefly » Sat Jan 05, 2013 12:22 am
just wanted to let everybody know that someone has posted on sourceforge an image with Siri already installed

http://sourceforge.net/projects/siriproxyrpi/
Posts: 52
Joined: Thu May 31, 2012 4:10 pm
by DarkTherapy » Sat Jan 05, 2013 5:11 am
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/


That's great, I'll have to download and try that myself!
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by alankernel » Mon Jan 07, 2013 6:17 am
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
Posts: 15
Joined: Mon Dec 24, 2012 7:50 pm
by DarkTherapy » Mon Jan 07, 2013 6:37 am
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


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.

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: 69
Joined: Mon Aug 20, 2012 8:14 am
by RaspberryMarK » Mon Jan 07, 2013 6:53 am
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 !
Posts: 6
Joined: Fri Nov 02, 2012 9:34 pm
by DarkTherapy » Mon Jan 07, 2013 7:00 am
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 !


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.

Thanks for your praise too.
Posts: 69
Joined: Mon Aug 20, 2012 8:14 am
by DarkTherapy » Mon Jan 07, 2013 7:08 am
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: 69
Joined: Mon Aug 20, 2012 8:14 am
by alankernel » Tue Jan 08, 2013 3:14 am
Thanks DarkTherapy! I'll give your recommendation a try.
I hope the cabling will be straightforward to my thick Electronics brain :?
Posts: 15
Joined: Mon Dec 24, 2012 7:50 pm
by zstryker » Tue Jan 08, 2013 6:13 am
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
Posts: 19
Joined: Sun Jan 06, 2013 3:15 am
by RugYG » Wed Jan 09, 2013 5:59 am
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.
Posts: 7
Joined: Wed Jan 09, 2013 5:38 am