Page 11 of 37

Re: terRemote - Android remote app for EventGhost

Posted: Fri Dec 07, 2012 4:46 pm
by terRemote
Hi m just a quick answer to that question: You can create a macro reacting to multiple events. Add the Tasker event "Forward.*" and send an EG message using the variables ${match.0} for the part matched by the star, ${event} for the whole event string. Use ${payload.0} as usual.
Sending multiple payloads to EG will be available with the next update in about four days. Until then, you have to split them in EG with python.

Re: terRemote - Android remote app for EventGhost

Posted: Fri Dec 07, 2012 8:29 pm
by rdgerken
Chris,

Thanks for the quick response. That sounds about what I was after. I will play around with that some this weekend. Also looking forward to the update with multiple payloads. That should really help simplify my setup. One thing I'm finding, is that I'm having to duplicate so many actions for the different incoming events in EG. For example, I have events coming from VoxCommando, events coming from the Webservice, events coming from terRemote - and they all try to accomplish the same thing, but I have to create them with different actions, because the payload parsing is different. So if I prefix the events the same, and they pass payloads the same way, then I can just keep one event/one action - and not have to add 3 different ways to accomplish the same thing.

Anyways...

Thanks again for the help.

Re: terRemote - Android remote app for EventGhost

Posted: Mon Dec 10, 2012 11:02 pm
by terRemote
Next version (1.18) is online, introducing multiple payloads for EventGhost events and options for the screen behavior. Moreover, the export function has been tweaked and there is an action to enable/disable Macros.

@rdgerken: this should take care of your previously mentiones problem-
@Marbieskarb: It's one step closer to what you were asking for.

I would also post this on Facebook but their server seems to be down... ^^

Re: terRemote - Android remote app for EventGhost

Posted: Tue Dec 11, 2012 12:15 pm
by rdgerken
Chris,

Thanks for the update! Eager to try it out!

We appreciate your hard work on this.

Re: terRemote - Android remote app for EventGhost

Posted: Thu Dec 13, 2012 10:47 pm
by Marbieskarb
I definitely appreciate your help with making terRemote better and better with each update.

Im finalizing all my layouts and noticed that when using the hard button "Key.DPAD_CENTER" on my phone (Motorola Droid 1/Sholes), it invokes button presses with the buttons I have on the screen and carries out the actions. When I use the navigational pad then hit the DPAD center button again a different button is activated and the action is carried out. I know that the hard keys are still active within the layout which is great because I have some mapped to internal actions. However, is it possible some way to exclude the DPAD from operating within terRemote and just be able to send events to EG? I'm really only going to be using my DPAD for external application control, ie XBMC and Home Theater navigation and just need the actions sent to Eventghost.

Any help would be greatly appreciated as always.

Thanks

Re: terRemote - Android remote app for EventGhost

Posted: Sun Dec 16, 2012 2:55 pm
by terRemote
Hi,

sorry for not answering earlier. I'm not quite clear on the correct meaning of the question. Is it that you want to disable the default action (i.e. "press the button") for your Key.DPAD_CENTER key? So in the same way that you can stop the default action of the volume keys?
This should be possible. I'll have to look into it.

Please clarify if I got the question wrong.
Chris

Re: terRemote - Android remote app for EventGhost

Posted: Wed Dec 26, 2012 11:39 am
by zian
Topic Moved....
Out of EventGhost News...
Into PlugIn Support.

Re: terRemote - Android remote app for EventGhost

Posted: Sat Dec 29, 2012 7:52 am
by rdgerken
Chris / others,

From terRemote, I'm passing two payloads from a seekbar. Payload 1 is a hard coded value, payload 2 is ${value}. So, in my script, I reference eg.event.payload[1] and and eg.event.payload[2] - as the network receiver is adding the IP address for payload[0]. Anyways, even though it still works, it does throw some kind of an error, saying that the list index is out of range. I don't think it's an issue with terRemote, as the event and payloads show up just as I expect (well, almost). I think it must be something in the eg.ParseString method causing this, but I don't understand why it would be problematic. I'm doing the same scripting for events coming from VoxCommando, and they have no issues like this. What is strange though, is that the event payloads from terRemote (and more specifically the network receiver plugin) are prefixed with u', as seen below - whereas from VoxCommando there is no prefix of "u". Does this cause an issue with eg.ParseString? Anyways, just thought I'd throw this out there to see if anyone has any insight as to why I'm seeing this. The script for processing the events are exactly the same, except references to payloads 0 and 1 for VoxCommando, instead of 1 and 2 for the network receiver plugin. Another observation, is that it looks like the macro is getting called twice? (or maybe that is just an artifact of the error? I'm not sure about what's going on there... I definitely don't have anything in my configuration that is calling it twice like that). If one were to compare the timestamps to the event that processes properly, you will see the system provides feedback about two seconds after the command is issued. If that is the case, then it would appear that the first command is sent and processed without error, but for some reason, the macro tries to execute a second time off of the same event, and also has a fit in doing so. This is just a thought, don't have anything solid to stand on. For those of you still with me, I have also tried replacing the ".0" with an empty string to be sure that the floating point datatype is not causing an issue. I saw no difference when using u'50' instead of u'50.0' .

TIA

Here is my script:

Code: Select all

command = '#OUTPUT,' + eg.event.payload[1] + ',1,' + eg.event.payload[2]
eg.plugins.LutronRadioRA2.MyCommand(command)
Here is the event coming in from the network receiver plugin, and the error in the log:
  • 02:34:27 TCP.SetLightLevel ['192.168.32.203', u'18', u'0.0']
    02:34:27 terRemote RadioRA2 Set Levels
    02:34:27 Python Script
    02:34:29 terRemote RadioRA2 Set Levels
    02:34:29 Python Script
    02:34:29 Traceback (most recent call last):
    02:34:29 Python script "21", line 2, in <module>
    02:34:29 command = '#OUTPUT,' + list[0] + ',1,' + list[1]
    02:34:29 IndexError: list index out of range
    02:34:29 LutronRadioRA2.Maestro.Family Room Fan Light.Level '0'
Here is the event coming from VoxCommando, and no errors in the log:
  • 02:40:56 VoiceCommand.VoiceCommand.SetLightLevel ['18', '50']
    02:40:56 Voice Command RadioRA2 Set Levels
    02:40:56 Python Script
    02:40:58 LutronRadioRA2.Maestro.Family Room Fan Light.Level '50'
Here is the code inside of the plugin that processes the command:

Code: Select all

    class MyCommand(eg.ActionWithStringParameter):
        name = "Raw Command"
        def __call__(self, value):
            value = eg.ParseString(value)  
            self.plugin.DoCommand(value)

Thanks!

Re: terRemote - Android remote app for EventGhost

Posted: Mon Dec 31, 2012 9:51 am
by terRemote
Hi,

this really does not seem like a terRemote issue although I would say the problem is the twice occurring event. Is the script executed twice? You said the script actually works so I think the error occurs on the second execution. You should print out the length/value of eg.event.payload in your script and see if it changes at some point. Then find out why there are two events.

The u'...' means that the string is encoded in unicode. I don't think this can cause any issues but no guarantee...

I hope this helped. I was not able to reproduce the error, so far.

Chris

Re: terRemote - Android remote app for EventGhost

Posted: Sat Jan 12, 2013 8:15 pm
by WinoOutWest
Chris,
I just stumbled upon your app. I am excited... I've been searching for a decent Android app for while. I am just getting started but it looks like this is a pretty slick app.

One question. One of my main uses is to control my whole house audio setup and I am looking to dedicate a small tablet as my remote control. Actually the plan is to have multiple tablets in multiple rooms. With that I would like to be able to show my cover art on my layout(s). I use JRiver Media Center for all my content and their is a plugin for that that will create a little webpage with variable content in it including the cover art. Is there a way to embed a small web page on a button/widget that would update automatically? Or is their an easier way to get my cover art in?

Cheers!
Darren

Re: terRemote - Android remote app for EventGhost

Posted: Sun Jan 13, 2013 11:40 am
by terRemote
Hi Darren,

webviews are one of the next features that I'm going to include in terRemote. Currently, there is no way of doing what you wanted but there will be, soon. That always depends on my free time.

If you follow this thread or the terRemote facebook new, you will know when it's about to come.

Best
Chris

Re: terRemote - Android remote app for EventGhost

Posted: Mon Jan 14, 2013 7:27 am
by WinoOutWest
Sounds great Chris.

Also on my wishlist would be able to place widgets as Android widgets on our home screens.

In the meantime I will get to work getting my pages set up.
cheers!

Re: terRemote - Android remote app for EventGhost

Posted: Mon Jan 14, 2013 3:05 pm
by terRemote
Hi,

you can currently place shortcuts on the homescreen, either directly opening layouts or executing actions. Do do that, go to your homescreen, longpress and add a shortcut.

Hope this helped. It's currently the closest thing to be able to do. Android does not support the creation of homescreen widgets in the same way that terRemote creates the layouts. That is an issue. There will be various widgets with multiple buttons at some point.

Chris

Re: terRemote - Android remote app for EventGhost

Posted: Tue Jan 15, 2013 10:04 am
by terRemote
The new update went online yesterday.

Important: I included an online library for layouts. Share your layouts and take a look at what other users created for you.

Please participate so that especially new users get an easier start.

Also, have a look at the changelog for the other new features and tweaks.

Re: terRemote - Android remote app for EventGhost

Posted: Sun Feb 03, 2013 12:37 pm
by terRemote
Alright, there have been some updates this weekend, including a new widget "EditText" and also the "WebView" that some people asked for. The ladder is still experimental. Please report any issues you experience.

If you noticed that the "value" variable of Seekbar and Ratingbar did not work in 1.20, this issue is now fixed.

Enjoy.
Chris