Author Topic: Ability to add a delay?  (Read 7414 times)

0 Members and 1 Guest are viewing this topic.

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Ability to add a delay?
« on: August 25, 2012, 12:04:06 AM »
I found a script that natively was intended to run as a service that monitors XBOX LIVE and it runs every x mins and tells you of new friends get online. Works relatively well.
Well I thought w/ VC it would be nice to be able to instantiate it anytime i wanted, cause when u do that I will find all the friends from a state like you just got on so you would see ALL your friends and not just those that have gotten on since the previous run. Thus if i just missed it or was eating, if i manually call the script I can see the online status of any friends that are on.

Well i got that well and good.
The problem is, I'm using the XBMCbuntu calling from a remote node so i have the XBMC notifications as the OSD
So when i say 'are any friends on xbox live"
it shows that on screen, and well the script ran and then u kinda of miss the first bit cause the OSD from VC hasn't transitioned away yet?
I didn't see if that was configurable, but can i add a delay so that i say "any friends on xbox live", wait 5 secs, call script?

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #1 on: August 25, 2012, 12:26:23 AM »
Hi Vulcanjedi

If you require a delay then you can use the action vc.pause, you can find more info on vc.pause if you follow this link.
http://voxcommando.com/mediawiki/index.php?title=Actions#Pause
Neural Net Based Artificial Intelligence.

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: Ability to add a delay?
« Reply #2 on: August 25, 2012, 12:35:59 AM »
Thanks! Ill see if i can figure it out :)
I've managed to get VC to open up my addon streams, but when I try to configure my XBMCbuntu node to do this runscript i get zilch.
I get zilch. from a URL works fine but from test executions in VC I dont think I am getting it to work?

URL
http://user:pass@node:port/xbmcCmds/xbmcHttp?command=ExecBuiltIn(runscript(/home/xbmc/.xbmc/addons/test-XBLFriends-8926e01/service.py))

from vc
runscript(/home/xbmc/.xbmc/addons/test-XBLFriends-8926e01/service.py)
« Last Edit: August 25, 2012, 01:06:40 AM by vulcanjedi »

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #3 on: August 25, 2012, 01:01:37 AM »
hi
give me a moment to check it out.
« Last Edit: August 25, 2012, 01:07:00 AM by xtermin8r »
Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #4 on: August 25, 2012, 01:16:45 AM »
hi there

I can confirm that VC does launch python scripts without a problem.

This is the way i did it.
XBMC.ExecBuiltin RunScript(E:\xbmc-11.0\portable_data\addons\script.Hali.Automation\default.py)

[attachment=1]
xml file
[attachment=2]
Neural Net Based Artificial Intelligence.

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: Ability to add a delay?
« Reply #5 on: August 25, 2012, 01:18:02 AM »
Oh xtermin8r i know it does i got it to do so on a Windows machine, just trying to get it to do so on my XBMCbuntu one for somethings just off..

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #6 on: August 25, 2012, 01:32:35 AM »
i'm sorry i couldnt help, i have no experience with xbmcbuntu.
Neural Net Based Artificial Intelligence.

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: Ability to add a delay?
« Reply #7 on: August 25, 2012, 01:39:42 AM »
nah i apprecraite the effort, these forums are pretty good. Yeah i have everything working, got the smart lists connected and everything, just can't figure out what I'm missing here. Especially since the URL approach does work.  I don't know Linux either...but I guess I'm learning:)

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #8 on: August 25, 2012, 01:43:04 AM »
hi
If there is a problem with xbmcbuntu you can try checking the log files, if there are any. If not, see if there is a feature inside xbmcbuntu settings to enable debugging.
« Last Edit: August 25, 2012, 01:48:49 AM by xtermin8r »
Neural Net Based Artificial Intelligence.

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: Ability to add a delay?
« Reply #9 on: August 25, 2012, 01:53:10 AM »
hi
If there is a problem with xbmcbuntu you can try checking the log files, if there are any. If not, see if there is a feature inside xbmcbuntu settings to enable debugging.
'
22:33:25 T:5754224   ERROR: Python script "home/xbmc/.xbmc/addons/test-service.XBLFriends-8926e01/service.py" does not exist
good call, unfortunately doesn't tell me much :P  wonder if its some escape character or somethign cause like i said again, the url works maybe some linux smarties will help me figure it out, I'll keep trying...
right now I still like this setup and it performs well this standard mic on my Mac. I hooked up a kinect and it was really really bad.
« Last Edit: August 25, 2012, 01:56:38 AM by vulcanjedi »

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #10 on: August 25, 2012, 01:57:22 AM »
hi
It is very strange, like you said it does work using the url method. I am sure it's something trivial.
Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #11 on: August 25, 2012, 01:59:48 AM »
Hi

Quote
22:33:25 T:5754224   ERROR: Python script "home/xbmc/.xbmc/addons/test-service.XBLFriends-8926e01/service.py" does not exist

Aha something at last, looks like something to do with the path (just a guess).
Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #12 on: August 25, 2012, 02:01:45 AM »
Try the url method and have a look at the log.
Neural Net Based Artificial Intelligence.

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: Ability to add a delay?
« Reply #13 on: August 25, 2012, 03:27:15 AM »
Hi

Aha something at last, looks like something to do with the path (just a guess).

thanks again xtermin8r; for anyone else interested
 "home/xbmc/.xbmc/addons/test-service.XBLFriends-8926e01/service.py"

I tried ./home/xbmc/.xbmc/addons/test-service.XBLFriends-8926e01/service.py
I tried "s and 's
but it was just /home/xbmc/.xbmc/addons/test-service.XBLFriends-8926e01/service.py
But as a great reminder, the log helped reaffirm a specific path problem and not a call problem and I believe I dont even need the delay but that command page is too a good reminder.

Great to be able to voice command what friends are online atm.  Yea.
 :o

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Ability to add a delay?
« Reply #14 on: August 25, 2012, 04:39:48 AM »
Hi vulcanjedi

Are you saying  you have it working now.
Neural Net Based Artificial Intelligence.