mirror of
https://github.com/4IceG/luci-app-modemband.git
synced 2026-04-26 11:25:54 +03:00
[GH-ISSUE #43] hide b5gsa and b5gnsa tabs for 4G only modems #38
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-modemband#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @giorez on GitHub (Sep 6, 2025).
Original GitHub issue: https://github.com/4IceG/luci-app-modemband/issues/43
Hi Rafał,
is it possible to hide the two tabs in case the modem can't support 5G tecnology (i.e. quectel EP06)? This will improve layout for a cleaner interface. In the actual version, in case of 4G only modem the tabs are rendered as following:
http://192.168.1.1/cgi-bin/luci/admin/modem/luci-app-modemband/b5gnsa
5G NSA Bands Configuration
Configuration modem frequency bands. More information about the modemband application on the eko.one.pl forum.
5G bands cannot be read. Check if your modem supports this technology and if it is in the list of supported modems.
http://192.168.1.1/cgi-bin/luci/admin/modem/luci-app-modemband/b5gsa
TypeError
undefined is not an object (evaluating 'menu.childNodes[selected].classList')
thanks for your hard work
@4IceG commented on GitHub (Sep 6, 2025):
Hi,
These tabs (pages) are described here:
https://github.com/4IceG/luci-app-modemband/blob/main/luci-app-modemband/root/usr/share/luci/menu.d/luci-app-modemband.jsonI do not generate them dynamically depending on the modem. I would have to write a new package to be able to control this.
Edit:
What version of OpenWrt do you have that you're having so many problems with my packages? There are always some errors.
I'll start up my ZTE MF286D and check it again.
@giorez commented on GitHub (Sep 6, 2025):
I see. I thought it was just about an "hide function" with "if statement" for 4G only modem in /root/usr/share/luci/menu.d/luci-app-modemband.json file:
line 33 "admin/modem/luci-app-modemband/b5gsa": {
line 42 "admin/modem/luci-app-modemband/b5gnsa": {
thanks anyway
I'm actually using:
ztb wg1602, openwrt 24.10.2, quectel EP06
zbt z8102ax, zbt snapshot 21.0.2, quectel RM520N-GL
(I will also try on my RM551E-GL with embedded snapshot 22.0.3)
No problem for those small errors, I'm happy with your packages. I hope you keep sharing your skills. I'm not expert at all, but feel free to ask for testing or translating your packages into italian language.
@4IceG commented on GitHub (Sep 6, 2025):
And errors are on every device?
I try to test packages before releasing them (on ZTE MF286D openwrt 24.10.0 - ipk) to ensure there are no bugs.
There are too many changes in software/hardware for me to prepare a package for everything.
I have ideas for new packages, but I just don't want to fight with users anymore. Errors appearing out of nowhere, constant suggestions from users that package should have this or that. Sometimes I feel like deleting my GitHub account.
@giorez commented on GitHub (Sep 6, 2025):
I can't check at the moment, I will reply to you in a couple of days.
Never give up... ✌️
sent from aipad
@giorez commented on GitHub (Sep 10, 2025):
this is the error I get on zbt wg1602, openwrt 24.10.2, quectel EP06 (4G only modem)
page
http://192.168.1.1/cgi-bin/luci/admin/modem/luci-app-modemband/b5gsa
TypeError. undefined is not an object (evaluating 'menu.childNodes[selected].classList')
The page also keeps showing the loading symbol until it is quitted
page
http://192.168.1.1/cgi-bin/luci/admin/modem/luci-app-modemband/b5gnsa
5G NSA Bands Configuration
Configuration modem frequency bands. More information about the modemband application on the eko.one.pl forum.
5G bands cannot be read. Check if your modem supports this technology and if it is in the list of supported modems.
@4IceG commented on GitHub (Sep 10, 2025):
I'll check it out this weekend, I need to find a 4G modem.
@giorez commented on GitHub (Sep 20, 2025):
thanks of update your modules on ztb wg1602, openwrt 24.10.2, quectel EP06 the issue about NSA tab error is solved. now it shows the same warning of SA tab.