I’ve got a SiriProxy server running and controlling Vera scenes. While it was fresh… I wanted to put together a guide for those who want to try to set up Siri on their IPhone 4S/5 to control Vera.
A couple of things first:
- I did this with my iPhone 5 (or 4S). You do not have to Jailbreak your phone. All that’s required on the phone is to add a certificate (which can be easily removed) and set the DNS address in your Wi-Fi connection.
- I used an old (really old) laptop and it runs Linux Server fine. You can probably use the GUI version? or Virtual Machine. I did a fresh Install.
- Be patient? I wiped the computer and started over with a fresh copy of Linux several times before I got it running. Hopefully this guide will help things go smooth.
- A BIG thanks for the folks at am3yrus.com for their script to install the Three Little Pigs Siri Proxy. This automates the task of performing the install. If you?ve seen the procedure to do it manually, you know what I mean!
- I used Ubuntu Version 11.10 because I could not get the current version 12 to run on my old laptop. I believe it should work with the current version
Install Ubuntu 11.10
- Download Ubuntu 11.10 Index of /releases/11.10 (pick version for your computer)
- Burn a CD, boot the computer you?re going to use using the CD and follow the install prompts.
Create a root password
sudo passwd root
sudo passwd -u root
Log into the Root
su -
Install the Three Little Pigs Siri Proxy
apt-get install -qq wget
wget http://www.am3yrus.com/downloads/TTLPinstaller-1.10.sh
chmod u+x TTLPinstaller-1.10.sh
./TTLPinstaller-1.10.sh
I used Static IP and Private Server. All other parameters I kept the default
Install the Certificate on your iPhone
- Copy the ca.pem certificate from the Linus box to your PC. It’s located in the root/.siriproxy directory. I use Winscp to access the files.
- E-mail the ca.pem file to yourself so you can open it on your iPhone.
- On the phone, select the ca.pem file and when the certificate box opens, install it. It will say it’s not trusted. Do it anyway.
Set DNS in the Wi-Fi Settings
Go to the Wi-Fi settings on your phone and select your current Wi-Fi account. Change the DNS to the Static IP address of your server.
Forward 443 and 53
Go into your router and port forward ports 443 and 53 to the Static IP of the server
Create a server startup script
I had to stop and start the server DNS every time I powered up. So here is a script that will automate the process and start the server.
nano StartServer.sh
sudo /etc/init.d/dnsmasq stop
sudo killall named
sudo /etc/init.d/dnsmasq start
cd ~/The-Three-Little-Pigs-Siri-Proxy && ./siriproxy-restarter
and accept saving the file as StartServer.sh
to exit the editor
Chmod +x StartServer.sh
Start the server
Sh StartServer.sh
Hopefully, the server will start without error. Go to your iPhone and activate Siri and say “Test Siri Proxy”. If Siri response with, Siri Proxy is up and running. YOU DID IT!
To Control Vera
Thanks to Autotronto, I had an example for modifying the siriproxy-example Ruby file to control Vera THANKS!
Follow his code:
[url=http://forum.micasaverde.com/index.php/topic,8199.msg97472.html#msg97472]http://forum.micasaverde.com/index.php/topic,8199.msg97472.html#msg97472[/url]
After editing the code you have to compile it.
cd The-Little-Pigs-Siri-Proxy/plugins
siriproxy update .
Then start the server and see if you can control your Vera
Notes:
Watch the screen when you activate Siri. You should see a bunch of text when you press the button to activate Siri. If not, Your DNS is not working. Search the web for dnsmasq for debugging.
If you are not talking with Vera, Ping Vera from the sever and verify you are seeing it:
Ping xxx.xxx.xxx.xxx
If you get the server running and want to learn more about Ruby. Great Site:
[url=http://www.ruby-lang.org/en/documentation/]http://www.ruby-lang.org/en/documentation/[/url]
The next step is to create a plug-in. I know some of you are far ahead of me… so I hope you’ll share when you get it done.