I have a modem Intertelecom Huawei EC5321. I want to set up the antenna. The problem is that in the web interface it displays the “roughly” signal level - from 0-5 bars. But I want to see more accurate values.
When analyzing that page, I found that the signal level comes in a numeric form by ajax and already js converts it into "stripes" (home.js file, index_updateConnectionStatus function inside
var currentStatus = G_MonitoringStatus.response; ... signal_strength = '0' + parseInt(currentStatus.SignalStrength / 20, 10).toString(); .... $('#status_img').css({ background: 'url(../res/icon_signal_' + signal_strength + '.gif) 0 0 no-repeat' }); I wanted to add after these lines so that the level was displayed as a hint, a line
$('#status_img').prop('title', currentStatus.SignalStrength); but how to shove it there - I do not know .... monitoring results come from http://192.168.1.1/api/monitoring/status example
<?xml version="1.0" encoding="UTF-8"?> <response> <ConnectionStatus>901</ConnectionStatus> <SignalStrength>60</SignalStrength> <SignalIcon>3</SignalIcon> <CurrentNetworkType>11</CurrentNetworkType> <CurrentServiceDomain>255</CurrentServiceDomain> <RoamingStatus>0</RoamingStatus> <BatteryStatus>0</BatteryStatus> <BatteryLevel>4</BatteryLevel> <simlockStatus>0</simlockStatus> <WanIPAddress>10.132.199.150</WanIPAddress> <PrimaryDns>192.168.4.45</PrimaryDns> <SecondaryDns>192.168.4.46</SecondaryDns> <CurrentWifiUser>3</CurrentWifiUser> <TotalWifiUser>8</TotalWifiUser> <ServiceStatus>2</ServiceStatus> <SimStatus>240</SimStatus> <WifiStatus>1</WifiStatus> <CurrentNetworkTypeEx>26</CurrentNetworkTypeEx> <CurrentSysmode>2</CurrentSysmode> <msisdn></msisdn> <classify>DataCard</classify> </response> Is it possible to somehow permanently parse this URL with the display of the SignalStrength string on the screen?
titlewith every update. - user207618