8 comments

[ 3.2 ms ] story [ 29.0 ms ] thread
Very good.

I did something like that few months ago. Making JSONRPC bindings for everything was a hassle.

It was an error for OpenWRT to not standardise on RPC API and superglue the original LuCI to the UI

My guess is that they built it like that so it would run in resource constrained embedded environments (like routers).
huh? the API is ubus and this only speaks ubus via JSON-RPC as long you can talk internally ubus you should be fine and able to call everything via JSON-RPC via uhttpd-mod-ubus or owsd (with websockets / events)
No, a lot of LUCI GUIs have router control code mixed with GUI. And a lot of 3rd party packages also come with direct control from GUI without going through uBus