It is currently March 28th, 2024, 7:41 pm

Looking for skin (total network/internet usage)

General topics related to Rainmeter.
UpbeatMelon
Posts: 4
Joined: July 9th, 2013, 12:28 am

Looking for skin (total network/internet usage)

Post by UpbeatMelon »

I use my phones internet on my laptop and was wondering if there is any skin that perhaps shows your total internet usage per day, (and for the past day).
It would be extremely useful.
At the moment I am using Illustro, but that only shows your usage per second.

Much appreciate the help,
Thank you in advance.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Looking for skin (total network/internet usage)

Post by jsmorley »

I don't know of a skin that is already out there that does this, although there may be one.

However, it isn't too hard in concept. The key is that Rainmeter by default keeps track of all network traffic in and out of your PC while a network skin is running. An option on the Net/In/Out/Total measure can access this data with the Cumulative=1 option.

http://docs.rainmeter.net/manual/measures/net#Cumulative

Then you can reset the stats on demand with the !ResetStats bang.

http://docs.rainmeter.net/manual/bangs#ResetStats

So:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureHour]
Measure=Time
Format=%H

[MeasureMinute]
Measure=Time
Format=%M

[MeasureTimeToReset]
Measure=Calc
Formula=(MeasureHour + MeasureMinute)
IfEqualValue=0
IfEqualAction=[!ResetStats][!Refresh]

[MeasureNetIn]
Measure=NetIn
Cumulative=1

[MeasureNetOut]
Measure=NetOut
Cumulative=1

[MeterText]
Meter=String
MeasureName=MeasureNetIn
MeasureName2=MeasureNetOut
X=5
Y=5
FontSize=14
FontColor=255,255,255,255
SolidColor=0,0,0,1
NumOfDecimals=1
AutoScale=1
Text="In: %1B, Out: %2B"
MiddleMouseUpAction=[!ResetStats][!Refresh]
The thing to remember is that the stats will only reset if this skin is actually running at midnight. I have it so you can also manually reset the stats as desired with a middle mouse click.

The other thing to keep in mind is that Rainmeter (the Net measures) measures ALL network traffic in and out of your PC. It has nothing to do specifically with the Internet, as it will also measure all traffic to and from your PC to any other device on a local network. At the same time, it won't even see any traffic between some other device on your network and the internet, since that traffic doesn't go "through" your PC.

The long and the short of it is that Rainmeter cannot track "internet usage", unless you have your PC directly connected to the internet, without a router creating a local area network, and no other devices that use the internet as well.
UpbeatMelon
Posts: 4
Joined: July 9th, 2013, 12:28 am

Re: Looking for skin (total network/internet usage)

Post by UpbeatMelon »

Thank you!
This is exactly what I am looking for.
I use my phone's internet, so I am the only one on it and the only internet traffic is me, with no network traffic.

Now I just have to figure out how to design, and display this.

Know of any good tutorials?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Looking for skin (total network/internet usage)

Post by jsmorley »

UpbeatMelon
Posts: 4
Joined: July 9th, 2013, 12:28 am

Re: Looking for skin (total network/internet usage)

Post by UpbeatMelon »

Thank you :)