Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

terRemote - Android remote app for EventGhost

Questions and comments specific to a particular plugin should go here.
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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.
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: terRemote - Android remote app for EventGhost

Post 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.
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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... ^^
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: terRemote - Android remote app for EventGhost

Post by rdgerken »

Chris,

Thanks for the update! Eager to try it out!

We appreciate your hard work on this.
Marbieskarb
Posts: 8
Joined: Thu Oct 18, 2012 5:41 pm

Re: terRemote - Android remote app for EventGhost

Post 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
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: terRemote - Android remote app for EventGhost

Post by zian »

Topic Moved....
Out of EventGhost News...
Into PlugIn Support.
eventghost.net
Be there or be square.
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: terRemote - Android remote app for EventGhost

Post 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!
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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
WinoOutWest
Posts: 24
Joined: Wed Dec 09, 2009 10:49 pm

Re: terRemote - Android remote app for EventGhost

Post 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
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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
WinoOutWest
Posts: 24
Joined: Wed Dec 09, 2009 10:49 pm

Re: terRemote - Android remote app for EventGhost

Post 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!
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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.
User avatar
terRemote
Experienced User
Posts: 183
Joined: Tue May 22, 2012 8:13 pm

Re: terRemote - Android remote app for EventGhost

Post 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
Post Reply