Page 1 of 1

luci rpc iobroker

Posted: Sun Sep 10, 2023 7:36 pm
by cobra98
Hi,
i have gargoyle 1.12.0 with Linksys WRT32X and found for iobroker an adapter https://github.com/Schnup89/ioBroker.openwrt
but i can not use it i guess as luci is not installed by default for gargoyle.
As listed by opkg list-installed

My main object is want to have a list of devices with ips and if new devices are connected to receive by telegram with iobroker a message.
So i wonder can i somehow use this adapter still for gargoyle too or any ideas / hints how to accomplish the task?

Re: luci rpc iobroker

Posted: Mon Sep 11, 2023 5:39 am
by Lantis
Yes I expect this is possible. You don’t need the full luci-mod-rpc, just the underlying rpcd and a few settings.
Let me muck around with it again and post some hints. I’ve done this previously for wireless client detection.

Re: luci rpc iobroker

Posted: Mon Sep 11, 2023 2:40 pm
by cobra98
would be cool thanks :)

Re: luci rpc iobroker

Posted: Tue Sep 12, 2023 8:31 am
by Lantis
This post won't be a 100% answer to your query of "How do I use ioBroker.openwrt with Gargoyle?". I never downloaded it or tried it, however I understand the fundamentals of its operation.
As you pointed out, it relies upon luci-mod-rpc and it seems to rely on all API calls happening at /cgi-bin/luci/rpc/auth/, which we just can't make happen in Gargoyle.
We can enable generic RPC ubus calls as per my post here: viewtopic.php?t=17880

With this information you should be able to make the app work with a little bit of configuration (if not customisation).

I don't have enough time at the moment to look into this any deeper unfortunately, however this is a good step towards your goal for any endeavouring user.