News:

VoxCommando works with Amazon Echo, Domoticz, EventGhost, Google Assistant, IFTTT, iTunes, J.River Media Center, Kodi, MediaMonkey, Nest, Philips Hue, Vera, Wemo, and the list keeps growing!

Main Menu

payloads

Started by Kalle, February 01, 2011, 07:15:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kalle

Hi James,

what is the difference between the payload "only phrases" and "" value, Phrases "?


My USB-UIRT has arrived and works fine with VC.
I would like to control my TV channels of the HD box with VC + Event Ghost directly and try to create a payload. Is there a possibility a payload to address directly in VC? I mean phrases without trigger. The normal way would "trigger (go to)" - "payload (Channel 1 ..)", i need only" Channel 1 ..) " in a payloadlist

Greetings Kalle
***********  get excited and make things  **********

jitterjames

using only phrases would return the phrase as a payload.  Pairs return the value.

If you edit an xmlpayload file you will see two column, value on the left and phrase on the right.

If you have a payload pair, like movies, the value might be the path and filename and the phrase would be the name of the movie.

If you set it to phrases only and say find movie "avatar" then {1} will be equal to "avatar"

If you set it to pairs and say "find movie "avatar" then {1} will be equal to "c:\video\movies\avatar.avi"

You always need to have a phrase in your command.  You cannot have a command "avatar" if avatar is in a payload, you need to say "play avatar" etc.

But for channel 1 you can make "channel" the phrase and "1" the payload.  Even if you could use payloads by themselves it would probably lead to false commands or other confusion.

Kalle

Quote from: jitterjames on February 01, 2011, 07:37:38 AM
using only phrases would return the phrase as a payload.  Pairs return the value.

If you edit an xmlpayload file you will see two column, value on the left and phrase on the right.

If you have a payload pair, like movies, the value might be the path and filename and the phrase would be the name of the movie.

If you set it to phrases only and say find movie "avatar" then {1} will be equal to "avatar"

If you set it to pairs and say "find movie "avatar" then {1} will be equal to "c:\video\movies\avatar.avi"

You always need to have a phrase in your command.  You cannot have a command "avatar" if avatar is in a payload, you need to say "play avatar" etc.

But for channel 1 you can make "channel" the phrase and "1" the payload.  Even if you could use payloads by themselves it would probably lead to false commands or other confusion.

Ok, thanks
I have understood. I is better i take for each channel one phrase, so that I can speak directly with his name "NBC " or "Pro7" or "SAT1" etc.
***********  get excited and make things  **********