3 votes Vote

Is there any documented way to send controls from another app that would be capable of sending http requests?

I'd like to purchase the full copy but really want the ability to control it via some remote software I use (Andre Pro). This software has all kinds of network communications including http: so hoping it will work. So far much better then Droidmote, always hated the client side of droidmote.

RK , 01.07.2013, 17:22
Response from the site administrator
portable, 07.08.2014
Currently, the only way you can use LANmote is to use your HTML5 capable browser. We have not provide any interface for 3rd party app to interact with LANmote because we don't think it will be of any use. However, we are open to proposals from developers who is interested to use LANmote to enhance their app.

In LANmote ver 1.5, we have implemented the app launcher as well as a way to allow 3rd party developer/user to launch any intent on the Android device. Developers interested to use this feature can comment on this thread.
Idea status: under consideration

Comments

rkirmeier, 10.07.2013, 21:48
I did a LAN capture and found very simple http calls that do the standard functions (no mouse). Plan to implement this in the Remote Control software I am using (Andre Pro).

Example:
http://IPADDRESS:9999/c?1a=1

Codes:
1a=1 (up)
1a=2 (down)
1a=3 (left)
1a=4 (right)
1a=5 (click)
1a=6 (vol up)
1a=7 (vol down)
1a=8 (powerdown ??)
1a=9 (search)

1b=1 (back)
1b=2 (home)
1b=3 (menu)
1b=4 (recents)

1c=1 (media vol down)
1c=2 (media mute)
1c=3 (media vol up)
1c=4 (media skip back)
1c=5 (media play)
1c=6 (media skip forw)
1c=7 (media rr)
1c=8 (media stop)
1c=9 (media ff)
Marcus Wilhelm, 15.10.2013, 08:19
Thanks rkirmeier for the codes,

I guess there is a demand for a 3rd party interface :)
kkruse, 17.03.2014, 11:14
Hi there.

I have bought a MiniX NEO X7 Android device.
I am using the device as part of a centralized and automated whole house video distribution setup.

I have an Automation Bot server (openHAB) which is the central brain in my setup and which is basically an OSGi based integration platform.
I am using the openHAB server to simplify my entire house control and to have one single control point. I already controls audio (SONOS), video switching (HDMI HDBaseT 4*4 Switch/matrix) and my WDTV Live box. I would like to also include the MiniX box into this setup and LANmote is the closest single solution I have been able to find which has the potential to solve this.
I already has the ability to control keyboard inputs over http but because so many apps is to poorly written and therefore needs either touch or mouse to fully function I have bought your software in order to reverse engineer the http interface.
It would, however, be much more conveinient and powerfull if you oficially supported 3rd party use of the LANmote app on the android device. This way I could integrate my device directly in my infrastructure.
portable, 17.03.2014, 13:17
Interesting setup there... Do you mean you want to know how to control the mouse cursor via LANmote over http? Why can't you just open LANmote's browser pages directly? If not, how do you expect it to work?
kkruse, 17.03.2014, 13:40
For the central control the openHAB serves a REST interface for actions. In front of this REST interface you can setup all sorts of GUIs. OpenHAB comes with two built-in web applications and there is exists both an iOS app and an android app.
I cannot embed a browser in there but I CAN do all sorts of stuff against any HTTP interface hence that is by openHAB (the backend that is) just another well supported integration interface.
So I would like to be able to have my openHAB backend feed the LANmote app with the appropriate HTTP GET URLs so that I in my openHAB native GUIs (both apps and web apps) can have control over my android device.
Does that makes sense?
portable, 07.08.2014, 07:48
If you have noticed, we have recently released new version of LANmote, something we had been busy working on.
In LANmote ver 1.5, we have implemented the app launcher as well as a way to allow 3rd party developer/user to launch any intent on the Android device.

Would this url intent feature fit your purpose or you still need mouse control over http?

If you still need mouse control via LANmote, we could construct a special url that permits 3rd party developer to move the mouse similar to the navigation pad, i.e. up/down/left/right/click/long click. Would mouse control in this way fit what you need? The current way we control the mouse is somewhat complicated and we don't intend to disclose exactly how it works. This mouse navigation pad should allow you to use LANmote to move the mouse easily.

Let me know what you think.
Kkruse, 22.09.2014, 11:03
Yes that would fit perfectly! That is excactly what I was looking for.

I am working on my own web frontend from where I am integrating to the backend (openHAB). There I am planning just to add a frame with the address to the LANMote interface on my android box.
However this is just secondary priority and first priority is still to be able to programatically send commands (mouse/touch events and keyboard events) via LANMote in order to automate stuff. E.g:
If I clicks the tv2 Play icon in openHAB then openHAB first sends "home" command to get to desktop, then sends the "coordinates" to the tv2 Play app and clicks it. That is just one of the main reasons for why I would like to be able to send commands to the LANMote interface.

Does this makes sense?
Kkruse, 22.09.2014, 11:08
Addendum to the first reply here:

Bad example now that you have added the applauncher feature. However this opens the obvious question: Is it possible to the same as described just against the applauncher instead? Eg. programatically start a particular app by sending a command over the http protocol?
portable, 23.09.2014, 04:55
You can now construct your own url to launch any intent you want via LANmote ;)
The downside is you obviously need to pre-program the url (intents) into your app first which is probably not a problem in your use case.

This url will launch WIFI analyzer, https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer

Test the url on linux like this
curl --request POST http://192.168.2.6:9999/s?l=com.farproc.wifi.analyzer.base.MainScreen,,,,,com.farproc.wifi.analyzer

Let me know if launching any intents like this would solve your problems and whether you still need mouse control.
Colin, 31.03.2016, 12:40
How do you get the url to launch the apps?
portable, 31.03.2016, 12:59
The answer is already provided in the comment you replied to. I have no idea what you are trying to ask.

If your question is how do you know the name of the app you want to launch, e.g. com.farproc.wifi.analyzer, you can tell by using 3rd party app like "Package name viewer".
colin, 31.03.2016, 13:12
Yep, thats the answer I was looking for. sorry if I wasnt clear :) Fantastic app by the way.
colin, 31.03.2016, 13:47
Sorry still struggling. I get the names of the App Package, but struggling to work out the specific url's to launch the Apps.

I am controlling my android box from a third party control system. I make a ip connection to the box from the control system.

If I send the following string from my control system, it will open popcorn time on the android box:

POST /s?l=se.popcorn_time.mobile.ui.MainActivity,,,,,dp.ws.popcorntime HTTP/1.1

I did this a while ago but cant remember how i worked it out. trying to now work out how to get url for all other apps on the box.

hope this makes sense?

Thanks

Colin
portable, 31.03.2016, 14:14
I believe the front portion, i.e. se.popcorn_time.mobile.ui.MainActivity is the activity name of what you are trying to launch via intent and the later potion is merely the package name. I hope this make sense to you.

Maybe you were looking at the DDMS logs while the app is being launched manually to work out the exact intent you want to use.
colin, 31.03.2016, 15:29
Okay - worked it out was using wireshark and sending the app launchcommands from the web page connected to the android box. Thanks
Colin, 04.04.2016, 19:20
Have you done any work on a navigation pad for mouse control as mentioned above? Mouse control is the last thing I require as can't use http as am using a third party control system to control a Kodi TV box using your app. Have everything else working great except mouse control. Alt I see you won't release the workings of your mouse control would you be willing to release just the min and max x and y coordinates you use. Saves me having to spend hours with wireshark to figure it out. Already have the string just coordinates I require.
portable, 05.04.2016, 02:03
Sorry but my developer does not have time to work on this yet. He is working full time elsewhere and unable to spend time on this app. I will try to implement this when I have the opportunity.
anders, 11.01.2016, 20:30
I want to use LANmote to control Kodi from a remote Home Automation system (using Girder).

I see that I can send keys using URLs like this:

http://:9999/c?3b=

This is very useful and works perfectly. But I wonder if there is a way to send modified keys using CTRL og ALT?

What would be nice was the ability to send any Android keycode as defined by this list:
http://developer.android.com/reference/android/view/KeyEvent.html

Leave a comment