luci-app-3ginfo-lite: Update to 1.0.74-20241111

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2025-02-16 17:35:29 +08:00
parent f44f614bee
commit fe5d9a330f
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,8 @@ LUCI_DESCRIPTION:=LuCI JS interface for the 3ginfo-lite. The package allows you
LUCI_DEPENDS:=+sms-tool +comgt +kmod-usb-serial-option
PKG_NAME:=luci-app-3ginfo-lite
PKG_VERSION:=1.0.74.20240827
PKG_VERSION:=1.0.74
PKG_RELEASE:=20241111
PKG_MAINTAINER:=Rafał Wabik <4Rafal@gmail.com>
include ../../luci.mk

View File

@ -282,8 +282,8 @@ OCC=$(sms_tool -d $DEVICE at "AT+ICCID")
NR_ICCID=$(echo "$OCC" | awk -F [,:] '/\+ICCID:/ {print $2}' | xargs)
# Temp
OT=$(sms_tool -d $DEVICE at "AT+GTSENRDTEMP=1")
TM=$(echo "$OT" | awk -F, '/\+GTSENRDTEMP:/{printf "%.1f", $2/1000}' | xargs)
OT=$(sms_tool -d "$DEVICE" at "AT+ETHERMAL?")
TM=$(echo "$OT" | awk -F, '/\+ETHERMAL:/{ sum+=$2; count++ } END { if(count > 0) { printf "%.1f", sum/count } else { print 0 } }' | xargs)
if [ -n "$TM" ]; then
TEMP="$TM &deg;C"
fi

View File

@ -282,8 +282,8 @@ OCC=$(sms_tool -d $DEVICE at "AT+ICCID")
NR_ICCID=$(echo "$OCC" | awk -F [,:] '/\+ICCID:/ {print $2}' | xargs)
# Temp
OT=$(sms_tool -d $DEVICE at "AT+GTSENRDTEMP=1")
TM=$(echo "$OT" | awk -F, '/\+GTSENRDTEMP:/{printf "%.1f", $2/1000}' | xargs)
OT=$(sms_tool -d "$DEVICE" at "AT+ETHERMAL?")
TM=$(echo "$OT" | awk -F, '/\+ETHERMAL:/{ sum+=$2; count++ } END { if(count > 0) { printf "%.1f", sum/count } else { print 0 } }' | xargs)
if [ -n "$TM" ]; then
TEMP="$TM &deg;C"
fi