Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

read out XBMC play, pause stop status
Thank you for your donation

Pages (3): « Previous 1 2 3 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
read out XBMC play, pause stop status
8th Feb, 2014, 06:39 AM
Post: #16
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
read out XBMC play, pause stop status
Can any1 help me out?
Find all posts by this user
Quote this message in a reply
19th Feb, 2014, 04:31 AM
Post: #17
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
if i'm not mistaken this is just a config file and i need to make an python aswell ?
can any1 confirm and can some1 help me doing so if neccesary aswell?

luke
Find all posts by this user
Quote this message in a reply
16th Mar, 2014, 06:35 PM
Post: #18
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: read out XBMC play, pause stop status
Code:
start on screensaver or player or library
task

env UPSTART_EVENTS
env ACTION
env TYPE

script

    echo "$UPSTART_EVENTS $ACTION $TYPE" >> /tmp/events.log

    case $UPSTART_EVENTS in
         screensaver)
                 ;;
         player)
                 if [ $ACTION = START ]; then
                     echo "Video Playing, dimming ligths!"
                      kaku 123 1 dim 4
                 else
                      echo "Video Stopped, brighting ligths!"
                      kaku 123 1 dim 8;
                 fi
                 ;;
         library)
                 ;;
         *)
               ;;
     esac

end script

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Apr, 2014, 08:54 PM
Post: #19
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
(16th Mar, 2014 06:35 PM)mk01 Wrote:  
Code:
start on screensaver or player or library
task

env UPSTART_EVENTS
env ACTION
env TYPE

script

    echo "$UPSTART_EVENTS $ACTION $TYPE" >> /tmp/events.log

    case $UPSTART_EVENTS in
         screensaver)
                 ;;
         player)
                 if [ $ACTION = START ]; then
                     echo "Video Playing, dimming ligths!"
                      kaku 123 1 dim 4
                 else
                      echo "Video Stopped, brighting ligths!"
                      kaku 123 1 dim 8;
                 fi
                 ;;
         library)
                 ;;
         *)
               ;;
     esac

end script
wich user uses this script?, i got a problem now : i stoped using the "kaku" script because it worked terrible, i went to pilight now and made a script wich can be activated with
Terminal
sudo python /home/xbian/lights.py arg
arg can be replaced with "play" "pause" and "stop"
but pilight needs root... so i though maybe i can give wich user uses this script nopwd premission for pilight (i'm not even shure how to do that so i'm going to ask curlymo if doesn't already responses on this thread

luke

-edit-
i made it possible without root using direct path

okay... next problem, even tough it logs the items it doesn't seem to execute the script, any ideas?
Find all posts by this user
Quote this message in a reply
6th Apr, 2014, 10:12 PM
Post: #20
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: read out XBMC play, pause stop status
A XBMC protocol has been added in latest pilight version. That protocol can read the play / pause / stop actions and the media type song / movie / episode.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
6th Apr, 2014, 10:15 PM
Post: #21
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
Cool, could you give me a link to the page that shows how to configure it
Find all posts by this user
Quote this message in a reply
6th Apr, 2014, 11:17 PM
Post: #22
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: read out XBMC play, pause stop status
Not yet done.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
6th Apr, 2014, 11:25 PM
Post: #23
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
Than could you tell me how to?
Find all posts by this user
Quote this message in a reply
6th Apr, 2014, 11:59 PM
Post: #24
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: read out XBMC play, pause stop status
No, not yet, because then i would essentially tell the same thing as i would say in the wiki page.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
7th Apr, 2014, 12:02 AM
Post: #25
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
O, okay
Find all posts by this user
Quote this message in a reply
7th Apr, 2014, 01:31 AM
Post: #26
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
Still I like to get it functioning this way... What's wrong with the script?
Find all posts by this user
Quote this message in a reply
7th Apr, 2014, 06:54 AM
Post: #27
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: read out XBMC play, pause stop status
Done, check the pilight wiki.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
7th Apr, 2014, 04:03 PM
Post: #28
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
I don't really understand it, where to specify wich units you want to switch
Find all posts by this user
Quote this message in a reply
7th Apr, 2014, 11:40 PM
Post: #29
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: read out XBMC play, pause stop status
Just adapt one of these clients:
https://github.com/pilight/pilight/tree/development/clients

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
7th Apr, 2014, 11:43 PM
Post: #30
lukeg01 Offline
Registered
Posts: 77
Joined: Dec 2013
Reputation: 1
RE: read out XBMC play, pause stop status
Sorry but still Chinese for me :-D is there also a way you can execute a script with pilight's xbmc plugin?
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): « Previous 1 2 3 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [IDEA] Start/stop XBMC from web gui Fred 8 31,051 11th Apr, 2013 10:41 PM
Last Post: wuschl

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 24th May, 2025, 07:22 AM Powered By MyBB, © 2002-2025 MyBB Group.