hagaygo / OpenWrtManager

Mobile app for interacting with your OpenWrt device.
GNU General Public License v3.0
145 stars 10 forks source link

Integrate OpenWRT in Smart Home #29

Closed HelmutFi closed 1 year ago

HelmutFi commented 2 years ago

Hi

I do not have an issue with the App, I like it. I tried to integrate OpenWRT into my SmartHome Software (IP Symcon). I searched around about an API access and found something. It worked - i was able to logon and getting some data - but after days of reading i found out, that the documentation is not corresponding to the functions which are available. Some are missing. Then I thought about your App and there was no need to install any additional package. So search startet again, how you are doing it, but the documentation of UBUS, UCI, LUCI is a little bit poor. So I'd like to ask you as the developer how you did it? The values and functions you are providing in the App are perfect. I would not need more. I hope you are responding. Thx. Helmut

hagaygo commented 2 years ago

Hi,

I did not find any documentation of the API calls.

I just "reversed engineered" LuCI web interface API calls, Usually with the browser developer tools.

HelmutFi commented 2 years ago

Hi, Thanks for your answer. Do you have an "entry" point for me? One of the calls you are using. I also will check the interface ;-)

hagaygo commented 2 years ago

Not sure what "entry" means.

On latest version of the app , There is a "debug" option on the of the drawer/menu (question mark sign) , which copies all the json data of last requests to the clipboard.

This also might help you.

HelmutFi commented 2 years ago

Hi With "entry" point i meant a url you are using in the app so I have an example how it looks. I will try also the debug option. Thx.

hagaygo commented 2 years ago

As i mentioned , The browser "developer tools" is your friend.

Here is a screenshot of a call on firefox :

image

Cant really help more than that.

HelmutFi commented 2 years ago

thx