4 ms·
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 RP
by baybal2 7y ago
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
- theandrewbailey 7y agoMy guess is that they built it like that so it would run in resource constrained embedded environments (like routers).
- nisa 7y agohuh? 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)
- baybal2 7y agoNo, 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