Is there a need for luci app for usteer similar to luci-app-dawn/wireless overview across APs? luci-app-usteer

Hi all,

Ok i managed to get the translation to JS done:

First version of luci-app-usteer by Ramon00 · Pull Request #6658 · openwrt/luci (github.com)

I did not implement automatic sorting of the tables (yet) but you can click on the heading to sort manually.

It would be great if somebody can test it out! Let me know if it works, what you think, and any suggestions.

Thx

3 Likes

I'm trying to test the app. I've copied "manually" the files to my router, restarted, but I can't see the usteer menu. Am I missing something or I've copied something wrong?
I've compared the menu file with the others in the same folder and it seems ok.

I reply to myself: I copied one file to the wrong place. Now is working. I will test it and comment in the PR. Thanks!

1 Like

new PR if anybody is willing to try it out:
luci-app-usteer: First version of luci-app-usteer by Ramon00 · Pull Request #6671 · openwrt/luci (github.com)

3 Likes

Good idea , i have manually installed the files to have a try hope it can be installed trough opkg soon.

Thanks Ramon

Let me know if you have any issues or something.

I guess if one of the maintainers accepts the PR it will be in the master branch.

The app is now part of master branch. So check it out!

Installed! Thanks!

Great alternative, espescially for 64MB devices. Seems Usteer require less dependencies than Dawn, which depends on umdns which brings in some other stuff as well.

I agree, hence the reason im using it.

Note that the 1st version of the luci-app-usteer can now be installed from opkg on 22.03 and 23.05. A (mostly cosmetic) update is pending.

@Ramon seeing other apps, there is a .pot file added with the strings to translate. I don't know how it works exactly, I usually translate for OpenWrt but I start to do it when the strings are at weblate https://hosted.weblate.org/projects/openwrt/

For example, when the luci-app-vnstat2 was added, in the commit, a .pot file was added: https://github.com/openwrt/luci/commit/1750433bc162bf923557a16f6ed7dfd1d3b90be4

I don't see the usteer app in weblate. Someone here knows how this works? The .pot file is needed? Who/what uploads the file to weblate?

Thanks! I want to help to translate it to Spanish.

1 Like

I will have a look soon and put it on the todo list. The other one on the todo list is to make it autoupdate the status etc.

If it helps, at the build directory there is a bunch of i18n scripts, I suppose some of them will do the job... https://github.com/openwrt/luci/tree/master/build

To generate the template where we can do the translations we need to run:

./build/i18n-scan.pl applications/luci-app-usteer> applications/luci-app-usteer/po/templates/usteer.pot

Copied from: https://github.com/openwrt/luci/tree/master/applications/luci-app-example

But it needs msguniq not sure what that is. Can you try to generate the template?

If the scan command fails with an error about being unable to open/find msguniq, install the GNU gettext package for your operating system.

It's only needed if the command fails, it's part of the gettext package, that is what is used in OpenWrt for the translations https://www.gnu.org/software/gettext/

I can try to generate it tomorrow if you need to.

Probably easier if you can generate, I worked on the refresh part instead. I just pushed a commit with the refresh working on the status page on the draft PR. For the hearing map it is less straightforward as I need to either do a table in a table or maybe make everything into one big table instead of the current layout... I need to experiment a bit what is best.

Please try it out (or anybody else for that matter).

Thx

I've generated it without problem. You can grab it here if you want: https://github.com/McGiverGim/luci/tree/luci-app-usteer

I've added it as a second commit to your open PR. You can cherry pick it or add the file to your current commit, without problem for mi part.

EDIT: If you plan to modify/add new strings the file will be outdated soon.

Regards!

Thx!

Still on the todo list is to add the refresh of the hearing map, but that should not add strings.

This is really fantastic, @Ramon! Kudos for your hard work on this. :star_struck:

1 Like

@Ramon the usteer app does not appear at weblate. Looking at the forum, I've found one thread that says that is not detected until the first language is added:

So I see two solutions:

  • Add an empty/ "en" file, like suggested in the thread, seems the easiest
  • Add another language file with translations, will be manual so can have errors

What do you think?