Parse EventGhost Payload

Discussion in 'Tasker' started by BassTeQ, Jul 30, 2015.

  1. BassTeQ

    BassTeQ New Member

    Joined:
    Jul 30, 2015
    Messages:
    10
    Likes Received:
    0
    Hi all, I can't manage to get values from the eventghost payload into variables in tasker.
    Can anyone assist in what I need to do in AutoRemote to get the value from the payload below

    C:\Program Files (x86)\EventGhost>EventGhost.exe -n 127.0.0.1:1024 mypass TestMessage user=:=testuser

    Thanks!
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    What message do you receive on your phone when you do that?
     
  3. BassTeQ

    BassTeQ New Member

    Joined:
    Jul 30, 2015
    Messages:
    10
    Likes Received:
    0
    Thanks for the reply, the event triggers a tasker action to display a tasker variable which I'm trying to get from the payload. Not sure if I'm doing it right, in the event config in autoremote I select Advanced, then under "Comm Params Prefix" I set the value to "user", then under "Command" I set the value to "username".
    In my tasker event I'm trying to display the variable %username but it's not working.
    Appreciate any advice.
    Cheers
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, I meant to ask what message you receive on your phone? To check open the AutoRemote logs after you sent that message from your PC and check the "in" tab. If you can, export the logs and post them here so I can check them out. Thanks!
     
  5. BassTeQ

    BassTeQ New Member

    Joined:
    Jul 30, 2015
    Messages:
    10
    Likes Received:
    0
    No worries, the log shows;
    Received message from EventGhost: Text: "testmessage"
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Maybe you can use the command
    Code (Text):
    C:\Program Files (x86)\EventGhost>EventGhost.exe -n 127.0.0.1:1024 mypass user=:=testuser
    ?
     
  7. BassTeQ

    BassTeQ New Member

    Joined:
    Jul 30, 2015
    Messages:
    10
    Likes Received:
    0
    Thanks will test and report back.
     
  8. BassTeQ

    BassTeQ New Member

    Joined:
    Jul 30, 2015
    Messages:
    10
    Likes Received:
    0
    Did that, didnt help :( The Eventghost GUI logged this :
    TCP.TestMessage ['127.0.0.1', u'user=:=testuser']
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    what exactly was the command you were hoping to get on your phone?
     
  10. BassTeQ

    BassTeQ New Member

    Joined:
    Jul 30, 2015
    Messages:
    10
    Likes Received:
    0
    Id like to save the value of user into a tasker variable, eg "testuser"
     
  11. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Ok, to do that I did this:
    Code (Text):
    "C:\Program Files (x86)\EventGhost\EventGhost.exe" -event autoremote user=:=testuser
    then in event setup a macro that reacts to the "Main.autoremote" event and sends an AutoRemote message with "{eg.event.payload[0]}"

    Hope this helps
     

Share This Page