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.
[quote=“Brientim, post:20, topic:176496”]As per Andrew’s instructions you should be using:
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.
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.
install 2013-09-10-wheezy-raspbian image using win32diskmanager to my 8gb Sd card.
Successful !
put the sd card in raspberry and turn on.
booting process and initial setup screen appears.
here: I think is interesting use the tips supplied for:
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.
select finish
type: sudo reboot
reboot ok without errors.
now I will use teraterm program to avoid change between inputs of my monitor.
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:
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: Google
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.
You need to go through the steps of putting the info into the config.yml file.
This file is located in a hidden directory in your raspberry pi’s user’s home folder.
if you type ‘cd ~.siriproxy’ and then type ‘ls -l’ you should see this that you need to edit it. In order to edit it, use whatever text editor is on your raspberry pi. It is likely “nano”. So you’d type:
nano config.yml
Then type (or better yet, copy and paste) the info from the installation instructions, edit the config info to specifically locate your vera, and then press “control-x” and “y” to save. Then follow the rest of the steps.
Ok Andrew,
I found the file and I know like edit even using vi.
I want know what lines to put in that file because I can see many ways to do. I want put this line like you are using if this is not a problem for you.
Brientim,
There do not exist a step to install the plugin.
I think the lines do this automatically when we run at first time.
This line below has the - before of the word name ? I put this lines and return error and server not ups.
The name Vera can be any word or must be the name of vera system ?
name: ‘Vera’
git: ‘git://github.com/andrewgarfield/siriproxy-vera.git’
vera_ip: ‘192.168.0.4’ # enter the ip or hostname for your vera
vera_port: ‘3480’
There are no scene associations required. They are done for you from a configuration file pulled from your vera. Once you get the plugin installed (as you just did), it is designed to be self configuring.
Take a look at the usage section of the read me file on github to understand what you can say to it:
You should also read some of the FAQs on that same file to understand limitations and or some questions that I felt people would want to know.
By the way, I fixed some of the regex in the ‘set scene’ listener, so you might want to perform a ‘rvmsudo siriproxy update’ to get the latest version.
apply the image to your SD card using win32diskmanager.
put the sd card recorded in your raspberry pi (from now on: Rpi)
connect a ethernet cable to your switch (is good have a DHCP installed in your network)
connect HDMI cable to your monitor and change for that port to see the image from Rpi
to be sure the things goes ok.
in my case I did this only first time, after I am using Teraterm, download from: logmett.com - This website is for sale! - logmett Resources and Information.
and turn Rpi ON.
(is good read about Rpi, your way to remove SD and conections)
it will boot with the image…and in some seconds you can see the login screen.
in this image use:
user: root
passwd: siriproxy
check the ip your Rpi takes from your DHCP and reserve in your router that ip.
my case: 192.168.0.47
add the lines below to your config.yml file in /root/.siriproxy, I use vi to edit then:
vi config.yml
type i (insert)
find the place to paste the lines ( yes you can paste in this window and turn the things easy)
to save use:
:x
to exit without save
:q <enter?
the lines are:
name: ‘Vera’
git: ‘git://github.com/andrewgarfield/siriproxy-vera.git’
vera_ip: ‘192.168.0.47’ # this is my ip address (change for yours)
vera_port: ‘3480’
Note: this mus be inserted in plugins section and the “-” in the front of name is necessary.
update the siriproxy:
rvmsudo siriproxy update
The next step is to generate the certificate to be installed on your iPhone and to point your iPhone DNS to Raspberry Pi.
Generate the certificate by using the following command: siriproxy gencerts
Copy the certificate to your computer using teraterm using FILE/SSH SCP and email to your iphone the ca.pem file
the certificate is generated to : /root/.siriproxy
run the certificate in your iphone and install it
go to your wifi settings in iphone for that network and change DNS to ip address of your Rpi (in the my case: 192.168.0.47)
for me helps change iphone to flight mode and wait 5 seconds or more and flight mode off.
start your siriproxy service in your Rpi using: siriproxy server -d 192.168.0.47
change for your rpi address.
if all is ok you can see the message: Siriproxy up and running. and before you will read the number of scenes you have in vera and dimmable devices, etc.
at this time you can test…start siri in your iphone and instantly you can see many packets arriving in your rpi terminal screen.
create a scene named: lights on
and activate many devices to test.
after create a scene you must stop service and start again, use ctrl C and
siriproxy server -d 192.168.0.47
to start again.
I do not know how do this automatically
and another thing…when I close teraterm session, the siriproxy server stops too.
how can I leave siriproxy running even I am not connected to my Rpi by teraterm terminal ?
how can I do siriproxy starts with my Rpi, because power can goes off and I do not want all the time is open a session to start this service.
we have a problem in this moment and andrew was notified. let’s wait for him considerations…
I believe the reason why this is coming up is due to the brand new iOS 7 that just came out. In iOS 7 you can do things like setting airplane mode on/off, and setting bluetooth on/off, etc. Because of this I believe that the “set ” is conflicting with that.
Try one of the other ways of saying it such as “set scene Lights on” or “set scene to lights on”. I am hoping that they work. If they don’t I think i’ll have to update the phrasings to work around these new limitations. I did not notice this happening last night but it might be something new that Apple recently did.
If you can, try also the “turn on the ” command and see if that works.
Well done! Good to see you are passing on your experience and no doubt it will help other that follow in your steps. Enjoy your the fruits “Raspberry flavoured” of your work.