Skip to content

SenseiMiaow/SiriProxy-XBMC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SiriProxy-XBMC

Changes (SenseiMiaow)

This plugin was originally created by branwave9 and then forked by patrickkettner and after that forked by me. I checked every fork out there and was most pleaced by the code in this fork.

Here are the changes:

UPDATE "now playing" shows current played item episode/movie layout changed for movies and episodes thumbnail support for: "recent movies" "recent episodes" "now playing"

OLD cleaned the code: support for XBMC Frodo v12: added more functionality from updates from brainwave9: Recently added movies: say "recent movies" Recently added episodes: say "recent episodes" added functionality in library to support Thumbnail, Fanart and Year: added code so that it will Display the Thumbnail from the Now playing Movie or Episode: Now playing Movie with thumbnail: say "watch/what's The Impossible" Now playing Episode with thumbnail: say "watch/what's Dexter Season 2 Episode 1"

About

SiriProxy-XBMC is a Siri Proxy plugin that allows you to send commands to XBMC.

SiriProxy-XBMC was created by brainwave9. You are free to use, modify, and redistribute this gem as long as you give proper credit to the original author.

*Note: I haven't coded in ruby before, so feel free to point out mistakes/corrections, etc, etc.

Credits

This project uses parts of xbmc-client, created by Christoph Olszowka

Installation

To install SiriProxy-XBMC, add the following to your Siri Proxy config.yml file (~/.siriproxy/config.yml):

- name: 'XBMC'
  git: 'git://github.com/SenseiMiaow/SiriProxy-XBMC.git'
  xbmc_host: '192.168.0.182'	#Internal IP address of your computer running XBMC.
  xbmc_port: 8080          		#Port that the XBMC interface listens to.
  xbmc_username: 'xbmc'    		#Username as specified in XBMC
  xbmc_password: 'xbmc'    		#password as specified in XBMC

Stop Siri Proxy (CTRL-C if it's running in the foreground or killall siriproxy if it's running in the background)

Update Siri Proxy (siriproxy update)

Start Siri Proxy (siriproxy server)

The SiriProxy-XBMC plugin should now be ready for use.

Multiroom configuration

If you have multiple XBMC systems in your house you can configure SiriProxy-XBMC to control them. To do so, create a configuration file called xbmc_rooms.yml and put in the same folder as config.yml Here is an example of the rooms file:

living room:
  host: '1.2.3.4'
  port: 8080
  username: 'xbmc'
  password: 'xbmc'
game room:
  host: '1.2.3.5'
  port: 8080
  username: 'xbmc'
  password: 'xbmc'

The names 'living room' and 'game room' is what you use as room name when talking to Siri. Use lowercase letters only for the room names, that is what SiriProxy-XBMC expects. When you create the file xbmc_rooms.yml, the settings in config.yml are no longer used.

Usage

The currently implemented commands are:

xbmc [room]

This command can be used to test the plugin is working. Siri will respond with "XBMC is online" Optionally you can specify a room name if you have configured the plugin for multiple rooms.

I'm in the <room name>
Use the <room name>
Control the <room name>

These commands set the active room. All commands will be sent to this room, until you specify another room of course.

play <title> [in the <room name>]

This command will first look in your TV show library and play the first unwatched episode. If no TV show is found, it will look in your movie library and play the first matching movie. If you specify a room name, it will be played in that room and the active room will be updated.

pause

This command pauses the video player

resume
unpause
continue

These command resume the video player

stop

This command stops the video player

Notes

Title matching is very basic at the moment. Sometimes Siri is not correctly interpreting the name of the TV show, so you may not get a match. For instance the show 'two and a half men' is interpreted by Siri as '2 1/2 men', which does not match the title in the TV library. However 'knight rider' is interpreted as 'night rider', which partially matches the name, so SiriProxy-XBMC will find it. I'm open to suggestions on how to improve this further.

The plugin is currently not able to handle multiple users controlling multiple rooms at the same time. It can currently only keep track of the last active room. I hope to find a way of identifying seperate users so I can keep track of active rooms per user.

About

Siri Proxy plugin to control XBMC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%