EventGhost AutoRemote.Message retrieveing parameters or commands

837 views
Skip to first unread message

lhoa...@gmail.com

unread,
Jun 29, 2013, 8:32:00 PM6/29/13
to joao...@googlegroups.com
How do you retrieve the command portion of the AutoRemote.Message in EventGhost?

I'm trying to trigger an nzb download from my phone to my pc but I can't seem to get the value. Here's what I'm seeing in EventGhost:

AutoRemote.Message.nzb params: [u'nzb']; command(s): https://www.gingadaddy.com/gingasrssdownload.php?h=653411;

I've tried to show an OSD with the following

"Message from phone: {eg.event.payload.arpar}" but I'm getting python syntax errors.

Any help is appreciated. If I can retrieve the values properly I can call a command ling application to finish the macro.

lhoa...@gmail.com

unread,
Jun 30, 2013, 11:40:35 PM6/30/13
to joao...@googlegroups.com, lhoa...@gmail.com

I've been able to get this semi working now by using {eg.event.payload.armessage} in EventGhost. Still having a weird issue though. Either tasker or EventGhost doesn't like the "&" symbol in the text I'm trying to send. Is there a workaround for that?

Thanks

João Dias

unread,
Jul 1, 2013, 6:03:16 AM7/1/13
to joao...@googlegroups.com
You're right, it seems that this isn't working right now...

What you can do is replace all occurences of "&" with "%%%" in your url, for example, and then in EventGhost, before opening the URL add a Python command action with the code

eg.event.payload.arcomm = eg.event.payload.arcomm.replace('%%%','&')

Hope this helps.



--
You received this message because you are subscribed to the Google Groups "joaomgcd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joaomgcd+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Steph

unread,
Jan 4, 2014, 1:09:38 PM1/4/14
to joao...@googlegroups.com
On Monday, July 1, 2013 12:03:16 PM UTC+2, joaomgcd wrote:

Hi there,

(date 2014-01-04, current version 3.0.8, as I think ... there is no way to find out from within the app ... yes, I know, I can go to the App Info Panel in the System Settings... )

I am sending strings from Android using AutoRemote and these strings include "+" (the plus sign). These strings come in in EventGhost with a space character (" ") instead the plus character ("+").

As a workaround I am currently using the string "%plus%" on my Android device which I parse on EventGhost with the same command as was suggested in this topic.

> eg.event.payload.arcomm = eg.event.payload.arcomm.replace('%%%','&')

I use this one instead:
eg.event.payload.arcomm = eg.event.payload.arcomm.replace('%plus%','+')

My question:
1) Is there any build-in escape sequence character/masking character in AutoRemote?
2) Wouldn't this be an idea for a feature to automatically parse such escaped sequences in EventGhost?

> Hope this helps.

So far so good!
Would be nice to hear from you!

João Dias

unread,
Jan 6, 2014, 9:46:47 AM1/6/14
to joao...@googlegroups.com
Hi.

This is actually a bug that no one noticed before. I'll update the EventGhost plugin and the chrome extension in the next hour to take care of it, thanks for reporting! :)


Reply all
Reply to author
Forward
0 new messages