News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

Ability to add a delay?

Started by vulcanjedi, August 25, 2012, 12:04:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vulcanjedi

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

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

#2
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)

xtermin8r

#3
hi
give me a moment to check it out.
Neural Net Based Artificial Intelligence.

xtermin8r

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

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

i'm sorry i couldnt help, i have no experience with xbmcbuntu.
Neural Net Based Artificial Intelligence.

vulcanjedi

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

#8
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.
Neural Net Based Artificial Intelligence.

vulcanjedi

#9
Quote from: xtermin8r 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.
'
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.

xtermin8r

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

Hi

Quote22: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

Try the url method and have a look at the log.
Neural Net Based Artificial Intelligence.

vulcanjedi

Quote from: xtermin8r on August 25, 2012, 01:59:48 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

Hi vulcanjedi

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