Page 19 of 37

Re: terRemote - Android remote app for EventGhost

Posted: Fri Aug 16, 2013 5:43 am
by erwin
did you uninstall the free?
No
Also did you restart EventGhost?
I don't know. Now with a restart it works.

Thank you!

erwin

Re: terRemote - Android remote app for EventGhost

Posted: Sun Aug 18, 2013 3:57 pm
by erwin
Bug?

If i try to delete an imported icon i get:

"Could not delete ..."

and

"ERROR. there was an error with the database!

erwin

Re: terRemote - Android remote app for EventGhost

Posted: Sun Aug 18, 2013 6:09 pm
by r0lZ
I got a similar error. I think it's because the icon is not removed from the list immediately, and if you don't pay enough attention, you try to delete it a second time. If you close the list and open it again, you'll see that the icon is gone.

Re: terRemote - Android remote app for EventGhost

Posted: Mon Aug 19, 2013 1:44 pm
by erwin
hI all!

Is it possible to change an icon dynamically, for instance having an ID/name coming from a EG-payload?


thx erwin

Re: terRemote - Android remote app for EventGhost

Posted: Tue Aug 20, 2013 6:42 am
by erwin
Hi!

I'm using the Pro. In the Event log i have

"Free Version. Macros delayed by one second".

And indeed, there is a delay in all actions.


erwin

Re: terRemote - Android remote app for EventGhost

Posted: Tue Aug 20, 2013 7:41 am
by terRemote
Just came back from my holidays. Sorry for not writing anything for a while.

@erwin: Icons currently don't use identifyiers, which is why you can not select them with string values. You can use the "if" action in combination with the "Change Widget -> Icon" action to achieve what you want to do. About the Pro-issuse, I will send you a PM to figure out what happened. Guessing from your previous problem, I think there is some issue with the downloaded apk. I'll send you another one to install over the old.

@r0lZ: Thank you for the bug reports and describing the tablet issues. The app is indeed not yet well-tested on tablets since I don't use one. However, this will change soon. When moving widgets, they don't snap to any grid but to other widgets (either using the edges or the middle points of the lines), leaving some space between them. This space is what you control. There is a plan to also include a grid but it's not implemented, yet.
The icons (and other picture files) of layouts are not easily retrievable. You can make an export and retrieve the icon from the Base64 string contained in the export. Anyway, this is rather complicated. The easier way is to display the icon in its natural size and then take a screenshot. Centering an icon is indeed not possible at the moment, simply because it is not supported by Android. There are some workaround for this issue but it's a likely source for bugs so I didn't implement them, yet.

@mpg732: The screen saver (or lockscreen) feature will come at some point. It's planned ever since I started terRemote but since it will be a quite large project, I didn't come to it, yet.

Thanks to everyone helping me by answering questions in this forum! I may have missed some question or my answerd weren't precise enough. In that case, please ask again or send me a mail.

There will be an update at some point this week, including some (not all...) fixes of bugs you have mentioned and probably the possibility to change the appearance of seekbars, as was requested by some people.

Best
Chris

Re: terRemote - Android remote app for EventGhost

Posted: Tue Aug 20, 2013 9:44 am
by r0lZ
Thanks. I hope you got fine holidays.

Currently, I'm trying to sync the PC clipboard with the tablet. The method I've implemented works already, but with an important limitation.
As far as I know, it is not possible to pass a string with end-of-line characters (CR+LF or CR or LF alone) from EventGhost to TerRemote. That means that my script works only when the Windows clipboard contains a simple word or line. When several lines have been copied, the text cannot be sent. I have had to convert all CR and LF characters to spaces to be able to send them, but of course, on the tablet size, the received text is not equal to the original one.

Here is the script I use on the Windows side to convert and send the clipboard content:

Code: Select all

import win32clipboard
# get clipboard data
win32clipboard.OpenClipboard()
try:
    c = win32clipboard.GetClipboardData(13)
except:
    c = ""
win32clipboard.CloseClipboard()

if c == "":
    print "GetClipboardData error: No text in clipboard."
else:
    #print c
    c = c.replace('\n', ' ')
    c = c.replace('\r', ' ')
    eg.plugins.NetworkSender.plugin.Send("System.Clipboard", [c])
I don't know if there is a simple solution to avoid the two c.replace() commands. If it's not possible, I guess the text must be converted to base64 before being sent, and converted back to text on the Android side, before being placed in the clipboard.

As far as I know, there is no way to convert base64 encoded strings to text with terRemote. Right?
Since you wrote above that the icons are encoded in Base64, I suppose you have access to the necessary Base64 functions to implement the necessary user functions to convert data from or to base64.
Can you envisage to do it? Thanks in advance!

Re: terRemote - Android remote app for EventGhost

Posted: Tue Aug 20, 2013 2:25 pm
by therealbiglou
I just had a bit of a feature request.

I know this may be a bit of a stretch, but I noticed that the export.ter files are pretty much a proprietary XML file. Would it be possible to create a PC-based layout manager which could then export layouts to a Terremote-readable export.ter file? This is similar to how TouchControl for iOS works: http://www.touch-ir.com/

It makes creating the layouts VERY easy with a mouse/keyboard and more accessible controls. I know this would be an involved task, but I didn't know if this was something you had thought of before.

Re: terRemote - Android remote app for EventGhost

Posted: Tue Aug 20, 2013 5:32 pm
by erwin
but I noticed that the export.ter files are pretty much a proprietary XML file
it seems to be json file
Would it be possible to create a PC-based layout manager which could then export layouts to a Terremote-readable export.ter file?
I think, an open documentation of the format of this *.ter file would be a great chance for 3 parties developers to support terRemote.

erwin

Re: terRemote - Android remote app for EventGhost

Posted: Tue Aug 20, 2013 11:26 pm
by terRemote
@r0lZ: first of all, thanks! I did have nice holidays :-) You're right that it is currently not possible to send multiline strings to terRemote. Originally, I wanted to add support of the "\n" string for new lines (and I'm still going to do it) but you're base64 approach seems to be a more general solution. I'll perform some tests and see if it can be done. If the results are positive, implementing the functions will be easy.

@therealbiglou: I forgot about that post in my last reply. Thanks for reminding me. The structure of the export files is quite simple (it's json, not XML) and when you use a decent json editor, copy and pasting the data should be quite simple. But in the end it will be about the same as duplicating widgets or layouts which is already possible in the app. A graphical editor might be helpful but as you said, it is quite involved and I don't see it in the nearer future. What I will implement within an reasonable time is copying actions which currently is just not possible and takes a lot of time. Also, adding more than one icon at once to the app is a feature to come.

@erwin: You're right about the export file having a json structure. The documentation might come but I'm working on (slightly) changing the export function, anyway. I'm not satisfied with how I currently handle pictures, including them as a base64 string into a json file is not very efficient. We can talk about a proper documentation once I found the right way to store the data. ;-)
The lack of documentation on this is really an issue of what I just described, not one of secrecy. ^^ Anyway, the structure is straight forward, copy and paste really works.

Re: terRemote - Android remote app for EventGhost

Posted: Wed Aug 28, 2013 5:29 pm
by mpg732
Has any one gotten Network Sender to work with terRemote. I followed the instructions on your web site but can not get any thing to show up in terRemote logs. I get network errors on Eventghost end. I have tried this on two different computers and get the same error on Eventghost. I found one post that says that Sender no longer works on Eventghost. If true does any one have a solution for this?

Re: terRemote - Android remote app for EventGhost

Posted: Wed Aug 28, 2013 8:58 pm
by therealbiglou
I too had issues with Network Sender until I checked run in background in Terremote's settings. After that, they work great.

Re: terRemote - Android remote app for EventGhost

Posted: Wed Aug 28, 2013 9:07 pm
by terRemote
Which error do you get? Does this also happen when you use the EventGhost Android app by Tim Hoeck? Can you send from one computer to the other?

Re: terRemote - Android remote app for EventGhost

Posted: Wed Aug 28, 2013 9:41 pm
by mpg732
On the Eventghost side, I set it up from the example, so when the system volume changes it sends info to terRemote. In Eventghost it will launch the python script then a second or so later a red text displays in the log and says Network error. I like I said it did the same for me on two different computers all on the same network. On terRemote side, I did try checking the "run n background" box and still nothing in the log. I tried restarting the app to see if that helped, but it didn't. I also tried different port #. My guess is that this is a problem on EventGhost side.

When I get home tonight I will try to send it from one computer to another. I will also Dl the eventGhost app and try that as well.

Thanks all for help

Mike

Re: terRemote - Android remote app for EventGhost

Posted: Thu Aug 29, 2013 3:22 am
by mpg732
OK so I got it working. Not sure why it works now vs before.

Next question, I want am sending this Python script "eg.plugins.NetworkSender.plugin.Send("Set.Volume", "34")" I want the number 34 to update a position of a slider, now keep in mind that the number it self will change, so it wont always be 34 it will range from 0 to 34. I think the python script script should work for what I want. I need help on terRemote side. I created a Macro. I set the Event name to "Set.Volume" and having problem with the action. I selected for type "Widget Data" Widget is set to "volume" for that is the name of the slider. I selected "set" Change is to to "Value" but the "To part'" is what I'm not sure of. Any help with that would be great. For I cant set it to 34 for the variable will change.