mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 11:25:50 +03:00
[GH-ISSUE #49] Error: Bad control character in string literal in JSON at position 67 #171
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-3ginfo-lite#171
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 @jfrogg on GitHub (Sep 13, 2023).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/49
The error was faced with Sierra EM7455 (1199:9071) but the problem may also occur with some other modems.
Here is the relevant part of the script output (before a fix), look at the temperature value:
when it should look like this:
Here is a fix:
In
/usr/share/3ginfo-lite/modem/11999071(as an example) replaceT=$(echo "$O" | awk -F: '/Temperature:/ {print $3}')with something like this:
T=$(echo "$O" | awk -F: '/Temperature:/ {print $3}' | grep -oE "\d+\.?\d{0,2}")@4IceG commented on GitHub (Sep 16, 2023):
Hi @jfrogg ,
Thanks, I will add this fix in the next package update.