Controlling router from android without using LUCI

Basically what I wanna do is connect wifi in my openwrt change ssid and etc. to have the control on my router as much as I can but I dont wanna use Luci to do it, I have no idea where to look and where to start from.

You can use ssh — you’ll just need a terminal app on your phone.

I intend to make a UI for it , and eas of use I dont wanna do just terminal

What is your objection to using LuCI - it is a gui and works well. Why do you want to create an entirely new app/gui when you can use one that has already been developed?

Anyway, your app can call via ubus calls.

I mean if you wont find it weird, it does not have a big reason, I started using openwrt cuz of a small project in office and im kinda interested in it now , So I'm tinkering in my free time as much as I can. I was exploring and saw no app for it and I know I can use LuCI but I dont feel like using it even if I dont achieve much, I just wanna have some fun now.

edit:thx for the ubus calls option will look into it

1 Like

I use a terminal app to control my WireGuard maybe that gives you some inspiration:

2 Likes

thank you will look into it

Well for that you can use a SSH session from your app and use uci commands to change configs

That is what Luci does in essence (well it is running inside the router, it just does not need to connect using ssh it does it directly).

If you find ubus thing too complicated, uci commands may do the job.

Uci commands are like a command line interface for ubus calls.

1 Like

Exactly the way I see it. If the project goal is to create a lightweight UI, potentially as a native android or iOS application, I'd definitively start with uci CLI as well.

4 Likes

potentiality yes this is what i wanna do or what i aim to do and im finding uci commands and ubus system quite effective

The bus path seems more professional and it will be better to analizar responses or errors.
But it seems a bit more complicated to begin with.

It you are quite familiar with html responses and apps may be it is the best way

Yes I will give it a try. Wire guard VPN client is one of the things I'm trying to toggle off and on when my VPN provider gets blocked by the website.