We have moved at community.getvera.com

Author Topic: siriproxy-vera plugin for using Siri to control Vera  (Read 19853 times)

Offline Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #15 on: September 16, 2013, 12:12:30 pm »
You should follow the link in the first post to:
https://github.com/andrewgarfield/siriproxy-vera
Open README.md
Follow Andrews detailed instructions.

I used the instructions from here when I tested it:
http://www.do motifs.sg/siri-raspberry-pi-z-wave-voice-pod/

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #16 on: September 17, 2013, 09:13:38 am »
I can not not put the image in a 8gb disk ....

the tutorial I am using at this time is:
http://www.hometoys.com/emagazine.php?art_id=2090

because another from: http://sourceforge.net/projects/siriproxyrpi/?source=dlp

do not boots my raspberry pi.

thanks if someone can helps.
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #17 on: September 17, 2013, 04:03:56 pm »

I can not not put the image in a 8gb disk ....

the tutorial I am using at this time is:
http://www.hometoys.com/emagazine.php?art_id=2090

because another from: http://sourceforge.net/projects/siriproxyrpi/?source=dlp

do not boots my raspberry pi.

thanks if someone can helps.
It may help if you start here:
http://www.raspberrypi.org/downloads
Look at the top two, noting the RAW comments

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #18 on: September 17, 2013, 04:20:46 pm »
Thanks Brientim,

I am using: Image   2013-09-10-wheezy-raspbian.zip
and have success.

but I do not have a image with siriproxy inside then...

I follow this:

http://www.hometoys.com/emagazine.php?art_id=2090

I am concluding the proccess and let you know how the things goes.



Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #19 on: September 17, 2013, 04:38:24 pm »
As per Andrew's instructions you should be using:

https://github.com/plamoni/SiriProxy/

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #20 on: September 18, 2013, 08:44:29 am »
Ok Brientim,

but in that instructions do not have a image to put in sd card (I'm using raspberry pi). and do not have a link for download a linux SO compatible.

then I am trying many linux installations and mixing many tutorials.

I would like to have a correct image to make the things work.

This job would help a lot of peoples because I already have a raspberry pi and I can say after if is working in that or not.

thanks in advance for your directions for me.

Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #21 on: September 18, 2013, 09:05:10 am »
You should have installed the OS image as you indicated in the previous post:
I am using: Image   2013-09-10-wheezy-raspbian.zip

Then you need to follow Andrew instruction which is below and that will install the Siriproxy packages/programs. This is not an image for Siri but incremental steps one after another and your Rapberry image your setup earlier is Linux optimised for RaspberryPi.
As per Andrew's instructions you should be using:

https://github.com/plamoni/SiriProxy/
Do not bounce between different instructions or you may strike trouble later.

Once you have Siri installed you will need to adhere to the remaining instructions that Andrew details in the README.md instructions.

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #22 on: September 18, 2013, 09:08:12 am »
Ok I will restart the process now...and saying for you what happens.

thanks !!!!!
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #23 on: September 18, 2013, 09:31:02 am »
As I read it briefly, the following

Phase 1 install OS image.
Phase 2 install Siri Proxy and generate certificate
Phase 3 return to Andrews instructions.

When you get to Phase 2, installing Siri, read it very carefully as in some areas it isn't as clear as it could be and if you make a mistake, you do not need to reinstall the OS, but may need to return to the start of Phase if you do not know what went wrong.

When you get is up and running, the link below may be worth a read.
http://lifehacker.com/how-to-clone-your-raspberry-pi-sd-card-for-super-easy-r-1261113524

I still have this setup on an RaspberryPI as I mentioned for the test install but not in use.
My wife really hated Siri and that is really an under statement.

After phase 2, it would work by manually modifying the file but this level of work is not required if you follow Andrew's setup. I do not have it running and it was setup manually as per Phase 2 when it was switched off.

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #24 on: September 18, 2013, 10:27:28 am »
look my steps and error below:

1) install 2013-09-10-wheezy-raspbian image using win32diskmanager to my 8gb Sd card.
Successful !

2)  put the sd card in raspberry and turn on.

3) booting process and initial setup screen appears.

here: I think is interesting use the tips supplied for:
http://www.hometoys.com/emagazine.php?art_id=2090

anyone gave me that tips... and at this moment nothing about siri is being did. only linux settings.

Steps I carried out are as follows. (Step 1 is critical on the Wheezy image):

expand_rootfs
change_locale
change_timezone
ssh (enable)
boot_behaviour (I turned off boot to desktop as I?ll do everything via command prompt and ssh
update


* so far everything is ok.

4) select finish

5) type: sudo reboot

6) reboot ok without errors.

7) now I will use teraterm program to avoid change between inputs of my monitor.

8) user raspberry password pi

9) change the font to courier 12

10) now I stop the instructions from : http://www.hometoys.com/emagazine.php?art_id=2090

and go to : https://github.com/plamoni/SiriProxy/
to use that instructions.

11) run this command: sudo apt-get install libxslt1.1 libxslt-dev xvfb build-essential git-core curl libyaml-dev libssl-dev
result: no errors.

12) run this command: curl -L https://get.rvm.io | bash -s stable --ruby

* here I can see in the screen some messages saying the files are being installed to /home/pi path !
* is this correct ? if not, must be a instruction to create the right path before the process.

13)  this commands in order:

curl -L https://get.rvm.io | bash -s stable --ruby
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
echo 'export PATH=$HOME/.rvm/bin:$PATH' >> ~/.bashrc
. ~/.bashrc


14) all ok ate here.

15) run this: rvm install 2.0.0

* error message:

Warning! PATH is not properly set up, '/home/pi/.rvm/gems/ruby-2.0.0-p247/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p247'.
Already installed ruby-2.0.0-p247.
To reinstall use:

    rvm reinstall 2.0.0
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline andrewgarfield

  • Full Member
  • ***
  • Posts: 108
  • Karma: +11/-1
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #25 on: September 18, 2013, 11:07:13 am »
That error message appears to be more of a warning than anything.  The actual result of the command was that you already had ruby 2.0 installed (which is what you wanted).  So you should be able to continue.

To fix the error message it could be caused by a few things.

First, you might want to restart your system (or simply the shell session) so that the .bashrc file is reloaded with the path info you had put in there in the previous step.
If that doesn't work, double check your .bashrc file to ensure that the 'export PATH=$HOME/.rvm/bin:$PATH' is at the very bottom of the file.
If that doesn't work, use this link to a google search of others whom have had this same error: https://www.google.com/webhp?hl=en&tab=ww#hl=en&q=warning+path+is+not+properly+set+up+is+not+at+first+place

But, so far so good, it seems!

Andrew

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #26 on: September 18, 2013, 03:15:09 pm »
andrew and brientim...

afther the error I decide continue:



16) I decide go ahead:
rvm use 2.0.0 --default


17) gem install siriproxy

18) mkdir ~/.siriproxy

19) siriproxy gencerts

20) rvmsudo siriproxy server -d 192.168.1.43 -u nobody

21) * by the first time I can read: SiriProxy Up and Running

22) install ca.pem to my iphone

23) change dns in wifi settings to my pi ip.

24) nothing happens when I spead Test Siri Proxy

how the service works ? background ? or blocking the console screen ?
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline Brientim

  • Sr. Hero Member
  • ******
  • Posts: 2497
  • Karma: +78/-7
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #27 on: September 18, 2013, 04:06:45 pm »
First try restarting both. The Pi, first up to Siri running. Then restart your iPhone. Test Siri what the screen you should see some action if the phone is connected correctly.

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #28 on: September 19, 2013, 11:41:07 am »
I have finally my Rpi showing:

Siriproxy server up and running.

Elvis help me to set the dns in my iphone putting the 2 address, my router and Rpi ip.

but now I need test if my voice is arriving in my siriproxy server...

I speak: Siriproxy test 
but siri in iphone do not understand this. and Rpi do not show any messages if something was received by him.

I want check if all is ok before proceed to do the settings for my vera.
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.

Offline Piwtorak

  • Hero Member
  • *****
  • Posts: 988
  • Karma: +4/-0
Re: siriproxy-vera plugin for using Siri to control Vera
« Reply #29 on: September 19, 2013, 04:39:04 pm »
AndrewGarfield...
is all ok with my rpi,

I need know now, where to put the codes (in which files) to do the rpi forward the commands to my vera unit.

thanks in advance...
Vera3 (1), Airport Extreme (2), Apple TV (3), Sqblaster (1), GE Switch (3), GE Dimmer (1), Leviton VRCSZ2 (2), GE 45601 (1), Intermatic HA03 (2), GE Zwave Outlet (1), Remote Control Curtain (1) and growing.