Ok update line 23 in plex_library.rb so it says something like:
doc = xml_doc_for_path("/library/sections/6/all")
I don't get a 404, but I just get a blank screen!?
Similarly I get a blank screen for:
[http://192.168.1.140:32400/library/sections/6/all](http://192.168.1.140:32400/library/sections/6/all)
Plex Media Manager responds fine though with:
h ttp://192.168.1.140:32400/manage/index.html#/library/sections/6
I'm not very familiar with the SQLite DB. Maybe the id is not the same as the key? Did you try http://192.168.1.140:32400/library/sections/ and see what the key is for TV Shows (Adults) section?
For me it looks like:
<br />
<MediaContainer size="3" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1302615785" title1="Plex Library" identifier="com.plexapp.plugins.library"><br />
<Directory refreshing="0" key="5" type="movie" title="Misc" art="/:/resources/movie-fanart.jpg" agent="com.plexapp.agents.none" scanner="Plex Movie Scanner" language="xn" updatedAt="1321940732"><br />
<Location path="/Volumes/Marvin/Video/Misc"/><br />
</Directory><br />
<Directory refreshing="0" key="1" type="movie" title="Movies" art="/:/resources/movie-fanart.jpg" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" updatedAt="1321940733"><br />
<Location path="/Volumes/Marvin/Video/Movies"/><br />
<Location path="/Users/hjaltij/Video/Movies"/><br />
</Directory><br />
<Directory refreshing="0" key="2" type="show" title="TV Shows" art="/:/resources/show-fanart.jpg" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" updatedAt="1321940735"><br />
<Location path="/Volumes/Marvin/Video/Episodes"/><br />
</Directory><br />
</MediaContainer><br />
Notice that my TV Shows section has key = 2 =)
I think the ID is the same as the KEY, so were are on the right track with trying to use 6 for the “TV (Adults)” section in my case.
The problem is that I don’t get any output from PMS when posting a HTML query it seems?!
I don’t get any XML at all like you do with the example in the previous post, I just get a blank white screen.
Strange, and you are running the latest version of Plex? (Laika)
I believe so:
Version 0.9.5.0-dc1de23
Can you join our irc channel (#SiriProxy) on irc.freenode.net so I can debug this with you?
- H
Ok, thanks, I've signed in as healeydave.
Whoa, P.S.
I have a partial result, I guess it proves its actually working. So far I've managed to get a program to play using "Play californication season 1 episode 1".
edit....
scrap that full result, its working now.
not sure what fixed it to be honest.
I did find a thread about the plex library not working sometimes if IP6 in networking is left on automatic. Not sure if that solved my problem, but its one of the changes I made!!
Can't help Grin'ing every time I tell plex to play something now :)
You will get a blank screen if you use Safari for example. You need to right click on the blank screen and choose "View source" to see the XML. However, if you use Firefox it will display the XML directly.
Yeah, it used to be like that, but my Safari is now displaying full results. You can even open and close elements. Not sure when they added this. I've got 5.1.1 (6534.51.22).
Ah cool, I am using Safari, Version 5.1.1 (7534.51.22) but I don't get anything unless I right click & choose "View Source".
I thought I had something mis-configured with Plex not getting any output in the browser:o
If it helps anyone else who wants to try this, I have made some notes of the steps I took (whilst they were fresh in my memory).
Most of this information is consolidated from the instructions from Hjaltij & Plamoni’s git repositories with a few of my own notes thrown in for good measure.
Hopefully I didn’t forget anything 
<br />
Installing SiriProxy on Mac OS X Lion<br />
<br />
<br />
<br />
<br />
1. Install Xcode (through AppStore or download through developer account)<br />
<br />
<br />
<br />
<br />
2. Install MacPorts from macports.org (instructions on the website)<br />
<br />
<br />
<br />
<br />
3. Add MacPorts path (from a Terminal Session):<br />
<br />
cd ~/<br />
<br />
sudo vi .bash_profile<br />
<br />
{press 'i' to go to insert mode, add this line without the quotes "export PATH=/opt/local/bin:/opt/local/sbin:$PATH", press ESC, press the COLON key, type wq! ENTER key}<br />
<br />
<br />
<br />
<br />
4. Reboot Mac<br />
<br />
<br />
<br />
<br />
5. Update Ruby (from Terminal Session):<br />
<br />
gem install rubygems-update<br />
<br />
<br />
<br />
<br />
6. Install additional Ruby modules (from Terminal Session):<br />
<br />
gem install uuidtools<br />
<br />
gem install httparty<br />
<br />
gem install json<br />
<br />
gem install CFPropertyList<br />
<br />
gem install eventmachine<br />
<br />
gem install twitter<br />
<br />
<br />
<br />
<br />
7. Install & Run DNSmasq (from Terminal Session):<br />
<br />
sudo port install dnsmasq<br />
<br />
cd /opt/local/etc/<br />
<br />
sudo vi dnsmasq.conf<br />
<br />
{scroll down to the "address=" section of file, press 'i' to go to insert mode, add this line without the quotes "address=/guzzoni.apple.com/ADD YOUR MAC's IP ADDRESS HERE", press ESC, press the COLON key, type wq! ENTER key}<br />
<br />
sudo killall named<br />
<br />
sudo /opt/local/sbin/dnsmasq<br />
<br />
<br />
<br />
<br />
8. Download SiriProxy ZIP from here and extract to your Mac:<br />
<br />
https://github.com/hjaltij/SiriProxy/<br />
<br />
<br />
<br />
<br />
9. Edit the siriPlex.rb file and set the IP & PORT address of your Plex Media Server (from a Terminal Session):<br />
<br />
sudo vi siriPlex.rb<br />
<br />
{scroll down to the "PLEX_HOST =" section of file, press 'i' to go to insert mode, change the IP & PORT to match your Plex Media Server, press ESC, press the COLON key, type wq! ENTER key}<br />
<br />
<br />
<br />
<br />
10. Create a Dummy SSL Certificate using the excellent instructions in the YouTube Video:<br />
<br />
[http://www.youtube.com/watch?v=_oaNbPOUCaE](http://www.youtube.com/watch?v=_oaNbPOUCaE)<br />
<br />
<br />
<br />
<br />
11. Email the cacert.pem to your iPhone and install by clicking on the attachment on your iPhone<br />
<br />
<br />
<br />
<br />
12. Start up the SiriProxy (from a Terminal Session):<br />
<br />
sudo ruby ./start.rb<br />
<br />
<br />
<br />
<br />
13. Make sure your iPhone is connected to your home Wifi, launch Siri and say "Test Siri Proxy"<br />
<br />
You should see an output in the SiriProxy Terminal Session and Siri should reply "Siri Proxy is up and running".<br />
<br />
<br />
<br />
<br />
14. Now have fun asking Siri to Play your Plex Media, E.G:<br />
<br />
Say "Play The Latest Episode of Californication" <br />
<br />
(replace Californication with one of your own shows if you don't have this cool show)<br />
<br />
:-)<br />
<br />
Hjaltij,
Do you have any plans to document, even if only roughly, what commands are currently available and what ones are planned?
This thread might be a good place to do so and should also help garner some ideas for what would be useful.
Hi,
I got everything set up and ready. so i went ahead and tried “sudo ruby ./start.db” and i guess i got an error.
<br />
/Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)<br />
from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'<br />
from ./siriProxy.rb:246:in `initialize'<br />
from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'<br />
from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'<br />
from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'<br />
from ./siriProxy.rb:245:in `initialize'<br />
from ./start.rb:17:in `new'<br />
from ./start.rb:17<br />
can any1 help me? please.
I think thats the error you get when a session is already running, try a ps to check if you have already started a ruby session, e.g.:
ps aux | grep ruby
@ Hjaltij,
I’ve noticed no updates to your github fork in the last few days and on IRC, Chendo, Plamoni & Netpro2k have done a lot of work rewriting the plugin mechanism.
Should I hold off from updating to the later SiriProxy to keep Plex functionality?
Cheers
ok i see know. i went ahead and quit the process and ran the start.rb file again and nothing happens.
When I first heard of the SiriProxy I thought I must make this work for Plex. Great that someone else done it, will follow this thread!
I have a question though, regarding the proxy setup.
I have all my devices connection to my WiFi trough a Airport Extreme. Is it possible to configure the DNS settings to support the SiriProxy, or do I have to let all my devices connect trough my Mac Mini (which kind of renders my brand new Airport Extreme useless)
Thanks in advance.
Hey,
This would be amazing if I could get it to work!
My problem when I tell it to SUDO start.rb it asks me to copy config.example.yml to config.yml and edit.
What do I edit in there to get the Plex part working?
Thanks
Keiran.
Could not find gem ‘siriproxy-plex (>= 0) ruby’ in source at ./plugins/plex.
Source does not contain any versions of ‘siriproxy-plex (>= 0) ruby’
I keep getting this when I run bundle install. I have been messing around with it for awhile. Im kinda new to this but i have managed to get dnsmasq, a vpn and siriproxy-example and hockey scores running. just can’t figure this one out.
any help would be appreciated.
-Nandor690