Skip to content

Commit

Permalink
Merge pull request #7 from Martinski4GitHub/master
Browse files Browse the repository at this point in the history
Fixes for the webGUI running on the 3006.102.1 F/W version.
  • Loading branch information
Martinski4GitHub authored Jun 25, 2024
2 parents dbc011c + cc44d4f commit 5142bca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# scMerlin

## v2.5.4
### Updated on June 02, 2024 by @decoderman with updates from @Martinski4GitHub
## v2.5.5
### Updated on June 24, 2024 by @decoderman with updates from @Martinski4GitHub
## About
scMerlin allows you to easily control the most common services/scripts on your router. scMerlin also augments your router's WebUI with a Sitemap and dynamic submenus for the main left menu of Asuswrt-Merlin.

Expand Down
6 changes: 3 additions & 3 deletions scmerlin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
## https://github.com/jackyaz/scMerlin ##
## ##
######################################################
# Last Modified: 2024-Jun-07
# Last Modified: 2024-Jun-24
#-----------------------------------------------------

########## Shellcheck directives ###########
Expand All @@ -26,8 +26,8 @@
### Start of script variables ###
readonly SCRIPT_NAME="scMerlin"
readonly SCRIPT_NAME_LOWER="$(echo "$SCRIPT_NAME" | tr 'A-Z' 'a-z' | sed 's/d//')"
readonly SCM_VERSION="v2.5.4"
readonly SCRIPT_VERSION="v2.5.4"
readonly SCM_VERSION="v2.5.5"
readonly SCRIPT_VERSION="v2.5.5"
SCRIPT_BRANCH="master"
SCRIPT_REPO="https://raw.githubusercontent.com/decoderman/$SCRIPT_NAME/$SCRIPT_BRANCH"
readonly SCRIPT_DIR="/jffs/addons/$SCRIPT_NAME_LOWER.d"
Expand Down
13 changes: 7 additions & 6 deletions scmerlin_www.asp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ p{font-weight:bolder}thead.collapsible-jquery{color:#fff;padding:0;width:100%;bo
<script language="JavaScript" type="text/javascript" src="/ext/shared-jy/moment.js"></script>
<script language="JavaScript" type="text/javascript" src="/ext/shared-jy/chart.js"></script>
<script language="JavaScript" type="text/javascript" src="/ext/shared-jy/hammerjs.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/jquery.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/httpApi.js"></script>
<script language="JavaScript" type="text/javascript" src="/state.js"></script>
<script language="JavaScript" type="text/javascript" src="/general.js"></script>
Expand Down Expand Up @@ -168,7 +169,7 @@ else
}
/**----------------------------------------**/
/** Modified by Martinski W. [2024-Jun-01] **/
/** Modified by Martinski W. [2024-Jun-24] **/
/**----------------------------------------**/
function GetTemperatureValue (bandIDstr)
{
Expand All @@ -181,7 +182,7 @@ function GetTemperatureValue (bandIDstr)
productid == 'GT-BE98_PRO' ||
productid == 'GT-AXE16000')
{
if (typeof curr_coreTmp_wl3_raw != 'undefined' && curr_coreTmp_wl3_raw != null)
if (typeof curr_coreTmp_wl3_raw != 'undefined')
{ temperatureVal = curr_coreTmp_wl3_raw; }
else if (typeof curr_coreTmp_3_raw != 'undefined' && curr_coreTmp_3_raw != null)
{ temperatureVal = curr_coreTmp_3_raw; }
Expand All @@ -199,7 +200,7 @@ function GetTemperatureValue (bandIDstr)
productid == 'GT-BE98_PRO' ||
productid == 'GT-AXE16000')
{
if (typeof curr_coreTmp_wl0_raw != 'undefined' && curr_coreTmp_wl0_raw != null)
if (typeof curr_coreTmp_wl0_raw != 'undefined')
{ temperatureVal = curr_coreTmp_wl0_raw; }
else if (typeof curr_coreTmp_0_raw != 'undefined' && curr_coreTmp_0_raw != null)
{ temperatureVal = curr_coreTmp_0_raw; }
Expand All @@ -216,7 +217,7 @@ function GetTemperatureValue (bandIDstr)
if (productid == 'GT-BE98' ||
productid == 'GT-AXE16000')
{
if (typeof curr_coreTmp_wl1_raw != 'undefined' && curr_coreTmp_wl1_raw != null)
if (typeof curr_coreTmp_wl1_raw != 'undefined')
{ temperatureVal = curr_coreTmp_wl1_raw; }
else if (typeof curr_coreTmp_1_raw != 'undefined' && curr_coreTmp_1_raw != null)
{ temperatureVal = curr_coreTmp_1_raw; }
Expand All @@ -233,7 +234,7 @@ function GetTemperatureValue (bandIDstr)
case '6GHz_1':
if (productid == 'GT-BE98_PRO')
{
if (typeof curr_coreTmp_wl1_raw != 'undefined' && curr_coreTmp_wl1_raw != null)
if (typeof curr_coreTmp_wl1_raw != 'undefined')
{ temperatureVal = curr_coreTmp_wl1_raw; }
else if (typeof curr_coreTmp_1_raw != 'undefined' && curr_coreTmp_1_raw != null)
{ temperatureVal = curr_coreTmp_1_raw; }
Expand All @@ -248,7 +249,7 @@ function GetTemperatureValue (bandIDstr)
case '6GHz_2':
if (productid == 'GT-BE98_PRO')
{
if (typeof curr_coreTmp_wl2_raw != 'undefined' && curr_coreTmp_wl2_raw != null)
if (typeof curr_coreTmp_wl2_raw != 'undefined')
{ temperatureVal = curr_coreTmp_wl2_raw; }
}
break;
Expand Down

0 comments on commit 5142bca

Please sign in to comment.