Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 874

Help with correcting Net speeds

$
0
0
I thought I had this figured out, but it seems I have it all wrong.
The idea in the skin is to set the Maximum level in a Variable for the measure in MegaBytes.
The Measure then multiplies this by 1048576.
So a Variable set at 100 would then be mutiplied by 1048576 in the Measures MaxValue: MaxValue=(#DownSpeed# * 1048576)

The trouble is that I tested the max speed via SpeedTest.net which gave these results:
MegaBits per second:
Download Mbps 95.07
Upload Mbps 122.37
Which equates in MegaBytes per second to:
Download MBps 11.88375
Upload MBps 15.29625
And in Mebibits:
Download MiBps 90.66581726074219
Upload MiBps 116.70112609863281
Seems odd that Upload is faster than download! But anyway...

My understanding has always been that 8bits = 1Byte and that 1024bytes = 1kB which means 1024kB = 1MB.
Now all of a sudden, I'm reading everywhere that MB is in fact the decimalisation of bits, whereas I always thought MiB was the decimal version, ie, 1MB = 1,000,000 bitsas opposed to 1048576 bits.

The Rainmeter manual states that the download is monitored in bits and then divided by 8 to get MB, which means my original thought that 1MB = 1048576bits is in fact right. So why are these websites telling everyone the opposite?
I must be thinking of it wrong, but that was what I always remember it being.
Which is in fact the correct way?

Ok, now that bit is out of the way, how do I monitor and display a correct value, because what I am seeing is not what is displaying.
For example, I tested a random large download in qBittorrent, 27.8GB. It displays in MiB and the speed is averaging 20MiBps.
This equates to:
20.97152 MiBps
21.99023255552 MBps
But the numbers I get from my skin match none of these! What am I doing wrong?
Here's a cut down version of the skin:

Code:

[Rainmeter]Update=500AccurateText=1MouseActionCursor=0DragGroup=BarredBackgroundMode=2SolidColor=#Trans#DynamicWindowSize=1MouseOverAction=[!HideMeterGroup BarBg] [!UpdateMeterGroup BarBg][!Redraw]MouseLeaveAction=[!ShowMeterGroup BarBg] [!UpdateMeterGroup BarBg][!Redraw][Variables]Aqua=0,255,255AquaDark=64,191,167,200Bg=255,255,255,6Blue=64,143,191Green=128,255,0GreenAC=100,255,50,130Orange=255,128,0OrangeLite=235,170,0Red=255,90,90Trans=0,0,0,1White=255,255,255White20=255,255,255,20White40=255,255,255,40White100=255,255,255,100Yellow=255,255,0; Stat Bar Colours:BarAlpha=70C3Stat=191,159,64C4Stat=191,112,64C5Stat=200,85,85; Adjust Bar size to suit:BarW=14BarH=48; Internet:; Specify Max Speed in MB/s:DownSpeed=100.00UpSpeed=10.00; Set Date and Reset threshold in GB:Date=15NetTotal=25; Disable specific Bars:1Stat=12Stat=13Stat=04Stat=05Stat=0; Labels:L1=CL2=GL3=RL4=DL5=UL6=BL7=CL8=PWE=%SystemRoot%\explorer.exe shell:RecycleBinFolderXY=#PROGRAMPATH#..\..\MyApps\XYplorerPro\XYplorer.exe; Mouse Actions:LMU3=[!ToggleConfig "Utilities\ScreenSaver" "ScreenSaver v3.ini"]MMU3=RMU3=LMU4=MMU4=ms-settings:network-statusRMU4=LMU5=MMU5=ms-settings:network-statusRMU5=; [TopLine]; Meter=Image; SolidColor=#White#; W=130; H=1; [BottomLine]; Meter=Image; MeterStyle=TopLine; Y=(#BarH#-1)========================================; 3 RAM========================================[m3StatTotal]Measure=PhysicalMemorySubstitute=".000":"",".00":"",".0":""Total=1UpdateDivider=-1Disabled=#3Stat#[m3Stat]Measure=PhysicalMemorySubstitute=".000":"",".00":"",".0":""UpdateDivider=2Disabled=#3Stat#========================================; 4 DL========================================[mSSID]Measure=WiFiStatusWiFiInfoType=SSIDWiFiIntfID=0DynamicVariables=1Substitute="-1":"No WiFi"UpdateDivider=10Disabled=#4Stat#[mIP]Measure=SysInfoSysInfoType=IP_ADDRESSUpdateDivider=-1Disabled=#4Stat#[m4Stat]Measure=NetInSubstitute=".000":"",".00":"",".0":""MinValue=0MaxValue=(#DownSpeed# * 1048576)AverageSize=5Disabled=#4Stat#========================================; 5 UL========================================[m5Stat]Measure=NetOutSubstitute=".000":"",".00":"",".0":""MinValue=0MaxValue=(#UpSpeed# * 1048576)AverageSize=5UpdateDivider=2Disabled=#5Stat#========================================; HISTOGRAMS========================================[sHistogram]LineCount=1LineWidth=1AntiAlias=1AutoScale=0DynamicVariables=1Hidden=1X=0Y=2W=125H=30[3Line]Meter=LineMeterStyle=sHistogramMeasureName=m3StatLineColor=#C3Stat#[4Line]Meter=LineMeterStyle=sHistogramMeasureName=m4StatLineColor=#C4Stat#[5Line]Meter=LineMeterStyle=sHistogramMeasureName=m5StatLineColor=#C5Stat#========================================; TOOL TIP========================================[sGlobalText]FontFace=Trebuchet MSFontWeight=700StringAlign=LeftCenterFontSize=9FontColor=#Yellow#,200AntiAlias=1DynamicVariables=1X=rY=r[sToolTip]Meter=StringAutoScale=1InlineSetting=Size | 7InlinePattern=( %| B| kB| MB| GB| TB| MHz| Items| Item)Hidden=1X=2Y=15[3Info]Meter=StringMeterStyle=sGlobalText | sToolTipMeasureName=m3StatMeasureName2=m3StatTotalText=[m3Stat:%,0] %#CRLF#%1B / %2B[4Info]Meter=StringMeterStyle=sGlobalText | sToolTipMeasureName=m4StatText=[m4Stat:%,0] % - %1B#CRLF#[mSSID] - 364DEXXUNumOfDecimals=1[5Info]Meter=StringMeterStyle=sGlobalText | sToolTipMeasureName=m5Stat; MeasureName2=mNetTotalText=[m5Stat:%,0] % - %1B - %2B#CRLF#[mIP]NumOfDecimals=2; NumOfDecimals=1========================================; STAT BARS========================================[sBar]; Bar; LineShape=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), (((-#BarH#)/100)*[&m[#CURRENTSECTION]:%]) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlpha#Shape2=Rectangle 0, (((-(#BarH#-2))/100)*[&m[#CURRENTSECTION]:%]-2), ([#[#CURRENTSECTION]]=1?0:#BarW#), ([&m[#CURRENTSECTION]:]=0?0:2) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]]; (((-(#BarH#-2))/100)*[&m[#CURRENTSECTION]:%]-2)Group=BarBgUpdateDivider=2DynamicVariables=1X=([#[#CURRENTSECTION]]=1 ? 0 : 2)RY=#BarH#[3Stat]Meter=ShapeMeterStyle=sBarShape=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), (([m#CURRENTSECTION#:]/[m#CURRENTSECTION#Total:])*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlpha#Shape2=Rectangle 0, (([m#CURRENTSECTION#:]/[m#CURRENTSECTION#Total:])*((-#BarH#)+2)-2), ([#[#CURRENTSECTION]]=1?0:#BarW#), ([&m[#CURRENTSECTION]:]=0?0:2) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]][4Stat]Meter=ShapeMeterStyle=sBarShape=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), ([&m[#CURRENTSECTION]:]/((#DownSpeed# * (1024**2))/8)*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlpha#Shape2=Rectangle 0, ([&m[#CURRENTSECTION]:]/((#DownSpeed# * (1024**2))/8)*((-#BarH#)+2)-2), ([#[#CURRENTSECTION]]=1?0:#BarW#), ([&m[#CURRENTSECTION]:]=0?0:2) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]][5Stat]Meter=ShapeMeterStyle=sBarShape=Rectangle 0, 0, ([#[#CURRENTSECTION]]=1?0:#BarW#), ([&m[#CURRENTSECTION]:]/((#UpSpeed# * (1024**2))/8)*(-#BarH#)) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]],#BarAlpha#Shape2=Rectangle 0, ([&m[#CURRENTSECTION]:]/((#UpSpeed# * (1024**2))/8)*((-#BarH#)+2)-2), ([#[#CURRENTSECTION]]=1?0:#BarW#), ([&m[#CURRENTSECTION]:]=0?0:2) | StrokeWidth 0 | Fill Color [#C[#CURRENTSECTION]]========================================; STAT LETTERS========================================[sStatLetters]StringAlign=CenterCenterFontSize=9FontColor=#White#,150SolidColor=#Bg#Text=[#L[#CURRENTSECTION]]Hidden=([#[#CURRENTSECTION]Stat]=1 ? 1 : 0)LeftMouseUpAction=[#LMU[#CURRENTSECTION]]MiddleMouseUpAction=[#MMU[#CURRENTSECTION]]RightMouseUpAction=[#RMU[#CURRENTSECTION]]MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "#Aqua#,100"][!UpdateMeter #CURRENTSECTION#][!ShowMeter #CURRENTSECTION#Info][!ShowMeter #CURRENTSECTION#Line][!UpdateMeter #CURRENTSECTION#Info][!Redraw]MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!UpdateMeter #CURRENTSECTION#][!HideMeter #CURRENTSECTION#Info][!HideMeter #CURRENTSECTION#Line][!UpdateMeter #CURRENTSECTION#Info][!Redraw]X=([#[#CURRENTSECTION]Stat]=1 ? 0 : 2)RY=rW=#BarW#[1]Meter=StringMeterStyle=sGlobalText | sStatLettersX=(#BarW#*0.5)Y=(#BarH#-7)[2]Meter=StringMeterStyle=sGlobalText | sStatLetters[3]Meter=StringMeterStyle=sGlobalText | sStatLetters[4]Meter=StringMeterStyle=sGlobalText | sStatLetters[5]Meter=StringMeterStyle=sGlobalText | sStatLetters
I have set the Variable DownSpeed to 100, this is then multiplied in the Measure to equal a MaxValue of 100 x 1048576, which, according to the websites equals 100MiB. This appears to be giving me a correct skin reading of around 11.5MB on average which compares almost equally to the 95.07Mbps stated from SpeedTest.net. How? 100MiB is way more than 95.07Mb so how am I getting a correct reading? But then it doesn't match the reading from qBittorrent which equates to 2.62144MBps and not the reading I am getting of around 11.5MBps.

How do I set the MaxValue and the Variable correctly so the MaxValue is equal to the max download speed from SpeedTest.net? And what should the Variable be set to and how should it be multiplied?

None of the numbers when converted in an online converter add up properly.
eg, As stated above qBittorrent shows:
Download speed of 20.97152 MiBps
This was converted to 21.99023255552 MBps
Again, then converted to 175.92186044416 Mbps
Yet SpeedTest says my maximum is 95.07 Mbps, just makes no sense!
Could you help please, I'm just so confused with this! It should be a simple straightforward measurement but it isn't!
Thanks for your help. :thumbup:

Statistics: Posted by sl23 — Yesterday, 10:36 am — Replies 16 — Views 1611



Viewing all articles
Browse latest Browse all 874

Trending Articles