Custom java application for tellstick and Plex
Hello there,I wrote a little java application that listens on the Plex.log and takes action on what it sees.
If it finds something useful it uses the tdtool binary (www.telldus.se) and my tellstick duo to do the following:
Play = turn livingroom light off
Pause = turn livingroom light on
Play move = turn livingroomlight off
Stop movie = turn livingroom light on
Known bugs right now are:
- If you shut down the Plex application you have to restart my little app. It will tell you that too.
http://pastebin.com/etEpiY3v
Do whatever you want with the code :) Compile with "javac test.java", run with "java test". I run mine in a screen on my Mac Mini.
No support whatsoever is given so try it on your own risk! Sorry about the indenting looking rubbish, it looks fine in xcode. Darn pastebin!