OpenWrt Forum Archive

Topic: LuCI with ajax?

The content of this topic has been archived on 12 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I need to make a custom page that will refresh every second using ajax to update a list on the page (pretty much like those nice statistic page in Xwrt).
Is there a easy way to do it in LuCI? I am new to OpenWRT and LuCI. If there is an example you can point me to, that will be great.

Thanks,
Andy

Should be possible to do it with LuCI and Lua.

Do you know which API call I should use? An example app/module?

To answer my own question. The luci-livestats app was what I was looking for.

The discussion might have continued from here.