Posts: 73
Threads: 24
Joined: Mar 2021
Reputation:
0
Hi,
I want to try making my own app in android studio for my smart home. Is there anyway to do this?
If it is, can someone guide me where to start in LM?
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
It's up to you to decide which tools to use. What do you want your app to do?
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
That's not something that we can help you with unfortunately. My suggestion to use Cordova still stands because LM libraries can be reused directly. With native app you will have to handle the communication and data decoding yourself.
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
If you mean that you want to use scripting in your external app then this is not possible. Android apps are written in Java not Lua and LM libraries are not available for external use.
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
You don't need a script because the websocket server is already implemented (ws://LM_IP/apps/localbus.lp). Implementing the client in an Android app won't be a trivial task though.