Siri controlling Plex



Your files doesn't match. When you used 'siriproxy gencerts' three files were generated: ca.pem, server.passless.crt and server.passless.key make sure you had these files deleted.

If you followed the video next, then more files were generated, probably in a demoCA folder created in your SiriProxy folder. These are the ones you need. cacert.pem is installed in your iPhone and server.passless.crt and server.passless.key go to the .siriproxy folder. If you're unsure, delete all files like that and try again.


I recreated the certificates and everything is working great! Thanks everyone for your help!

Hi



I am hoping you can help me. I have installed siriproxy and can’t get it to load.



when i run “sudo ruby ./start.rb” i get the following error.



./start.rb:3: warning: variable $KCODE is no longer effective; ignored

/Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- uuidtools (LoadError)<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’

from /Users/infide/siriplex/siriObjectGenerator.rb:2:in <top (required)>'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'<br /> from /Users/infide/siriplex/plugins/testproxy/testproxy.rb:2:in<top (required)>’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’

from ./start.rb:5:in <main>'<br /> <br /> I can get it running by using rvmsudo ruby ./start.rb and i get <br /> <br /> ./start.rb:3: warning: variable $KCODE is no longer effective; ignored<br /> <br /> but it works and i can use the command "test siri proxy" and i get a reply. <br /> <br /> My problem is that when i ask it to play anything it crashes and i get the following. <br /> <br /> [Recognized Speech] Play the latest episode of leverage <br /> http://192.168.1.68:32400/library/sections/2/all<br /> /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:346:inopen_http’: 404 Not Found (OpenURI::HTTPError)

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:775:in buffer_open'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:203:inblock in open_loop’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:201:in catch'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:201:inopen_loop’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:146:in open_uri'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:677:inopen’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:33:in open'<br /> from /Users/infide/siriplex/plugins/plex/plex_library.rb:18:inxml_doc_for_path’

from /Users/infide/siriplex/plugins/plex/plex_library.rb:23:in all_shows'<br /> from /Users/infide/siriplex/plugins/plex/plex_library.rb:86:infind_show’

from /Users/infide/siriplex/plugins/plex/siriPlex.rb:110:in speech_recognized'<br /> from /Users/infide/siriplex/tweaksiri.rb:84:inblock in speech_recognized’

from /Users/infide/siriplex/tweaksiri.rb:83:in each'<br /> from /Users/infide/siriplex/tweaksiri.rb:83:inspeech_recognized’

from /Users/infide/siriplex/interpretSiri.rb:46:in call'<br /> from /Users/infide/siriplex/interpretSiri.rb:46:inspeech_recognized’

from /Users/infide/siriplex/siriProxy.rb:182:in prep_received_object'<br /> from /Users/infide/siriplex/siriProxy.rb:102:inprocess_compressed_data’

from /Users/infide/siriplex/siriProxy.rb:72:in receive_binary_data'<br /> from /Users/infide/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:94:inreceive_data’

from /Users/infide/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'<br /> from /Users/infide/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun’

from /Users/infide/siriplex/siriProxy.rb:245:in initialize'<br /> from ./start.rb:17:innew’

from ./start.rb:17:in `’

zlib(finalizer): the stream was freed prematurely.

zlib(finalizer): the stream was freed prematurely.



Please help, what am i doing wrong?

Did you download the Plex plugin? If so, modify the config file and add the path to that folder instead of the git. Install the bundle again.



And you’re using the old SiriProxy build. See my post in the previous page or google it to clone the latest one.



Thanks I didn't have the most recent. I have downloaded that but when i try and add plex to the config.yml file i get the following error.

/Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse': (/Users/infide/.siriproxy/config.yml): couldn't parse YAML at line 9 column 0 (Psych::SyntaxError)
from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse_stream'
from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:125:in `parse'
from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:112:in `load'
from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:229:in `load_file'
from /Users/infide/.rvm/gems/ruby-1.9.3-p0/gems/siriproxy-0.0.1/lib/siriproxy/command_line.rb:142:in `parse_options'
from /Users/infide/.rvm/gems/ruby-1.9.3-p0/gems/siriproxy-0.0.1/lib/siriproxy/command_line.rb:33:in `initialize'
from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bin/siriproxy:6:in `new'
from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bin/siriproxy:6:in `'

The error happens when I change the path in the config file

- name: 'Plex'
path: './plugins/SiriProxy-Plex'
plex_host: '192.168.1.68' #Internal IP address of your Plex Media Server.
plex_port: 32400 #Most likely you won't have to change this, it runs on port 32400 by default.

Any thoughts?

Everything counts, even spaces. Make sure the config file is edited exactly like the example plug in. Download a free trial of BBEdit to edit it if you haven’t done so.



Cheers that was my problem. The next issue i have is anytime i try and play any show or episode i get the following.

[Info - Plugin Manager] Say: I'm sorry but I couldn't find that TV show
[Info - Plugin Manager] Sending Request Completed

I assume this has something todo with my plex setup so i am starting their. Any ideas let me know.

Thanks for the help so far.

Got it working. Thanks for the help.

I do understand that this is not a ruby forum, but someone might know what I can do to solve this.



Running:

rvm install 1.9.3-p0



And the log file:


Which somehow indicates there is something wrong with my compiler. I have the latest vernon of Xcode installed on my computer, and ports works fine when compiling.



I would use [rvm](http://beginrescueend.com/rvm/install/) to install ruby 1.9.3, it is as easy as

rvm install 1.9.3



Thats exactly what I'm doing.

rvm install 1.9.3 and rvm install 1.9.3-p0 gives the same results


Then i don't know… perhaps the [rvm discussion group](http://groups.google.com/group/rubyversionmanager) or [solved issues](http://groups.google.com/group/rubyversionmanager) will be more useful


rvm install 1.9.3 didn't work for me either. i used rvm install 1.9.3 --with-gcc=clang. Im not sure what else it did but it worked for me.

I found it here https://github.com/plamoni/SiriProxy/issues/98

Hi



I had this going yesterday but today its giving me this error any time i use the play command. Siriproxy works for other plugins just not plex. I have completely reinstalled plex since but no avail.



Any thoughts?



[Info - Plugin Manager] Matches, executing block

/Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:346:in open_http': 404 Not Found (OpenURI::HTTPError)<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:775:inbuffer_open’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:201:incatch’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:201:in open_loop'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri’

from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:677:in open'<br /> from /Users/infide/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:33:inopen’

from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/plex_library.rb:19:in xml_doc_for_path'<br /> from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/plex_library.rb:24:inall_shows’

from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/plex_library.rb:87:in find_show'<br /> from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/siriproxy-plex.rb:46:inblock in class:Plex

from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cora-15d199d3af0b/lib/cora/plugin.rb:41:in instance_exec'<br /> from /Users/infide/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cora-15d199d3af0b/lib/cora/plugin.rb:41:inblock (2 levels) in process’

zlib(finalizer): the stream was freed prematurely.

zlib(finalizer): the stream was freed prematurely.



From what I understand using clang is not recommended for ruby. But, it works. Thanks!


Please read the previous posts on this forum. Users that have their sections defined differently will have to figure out the right ID.

I haven’t looked much at the plex api, but port 32400 is the default port for plex media server, so you are not connecting to Plex client. when you tell it to “play dexter” or something similar, how does it know what Plex client to play it on if there is 2 or more instances connected to the server?

Hi Hjaltij,I was looking your new plugin code having finally updated to the new siriproxy.I’m not sure how difficult it would be to write a detection routine to find the correct library number but for a quick fix, can I suggest maybe creating an @library variable in plex_library.rb and have a config line, something like:


plex_library: '6' #the library address of the TV section in your Plex Media Server database.

Currently, the problem is every time I do a siriproxy update or similar function, any changes I make to correct the library section get overwritten with the hard coded library 2.





Edit…



Actually although this might be a rare case, I actually have Two Library Sections that need to qualify because I have Two TV sections, one section for the Kids material and another section for our TV shows, so it would be great if multiple Sections could be defined and the plugin code configured to loop round as many TV sections that are defined, maybe something like:



 plex_library: '5,6' #the library addresses of the TV section in your Plex Media Server database.

Hi, I have Siri Proxy working but I get the following error when trying to play a tv show. I have looked through the forum but can’t really find an answer. I tried looking at the sections in a browser but I get “Failed to Open Page” in Safari… If you could point me in the right direction that would be great, thanks.



[Info - Plugin Manager] Matches, executing block

/Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:inopen’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in block in connect'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:54:intimeout’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:99:in timeout'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:inconnect’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:755:in do_start'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:744:instart’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:306:in open_http'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:775:inbuffer_open’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:201:incatch’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:201:in open_loop'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri’

from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:677:in open'<br /> from /Users/qwer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open-uri.rb:33:inopen’

from /Users/qwer/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/plex_library.rb:19:in xml_doc_for_path'<br /> from /Users/qwer/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/plex_library.rb:24:inall_shows’

from /Users/qwer/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/plex_library.rb:87:in find_show'<br /> from /Users/qwer/.rvm/gems/ruby-1.9.3-p0/bundler/gems/SiriProxy-Plex-ea07a3cd7609/lib/siriproxy-plex.rb:46:inblock in class:Plex

from /Users/qwer/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cora-15d199d3af0b/lib/cora/plugin.rb:41:in instance_exec'<br /> from /Users/qwer/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cora-15d199d3af0b/lib/cora/plugin.rb:41:inblock (2 levels) in process’

zlib(finalizer): the stream was freed prematurely.

zlib(finalizer): the stream was freed prematurely.



A quick thought, you don't have any password control to your Plex library configured do you?