View Single Post
Posts: 20 | Thanked: 15 times | Joined on Dec 2009
#163
Don't know if someone's posted something like this already, but I thought I'd share a DCEW script I created. It shows the data transferred (up and down) over WLAN since the last phone boot. It serves the same purpose as the Personal Dataplan Monitor widget (excellent, by the way) but for wifi traffic.

Code:
/sbin/ifconfig wlan0 | grep bytes | sed 's/^.*(\([^)]*\)).*(\([^)]*\))/Dn: \1 \| Up: \2/g'
Note that the script should be all on one line, despite this site wrapping the text. Hope someone finds it helpful.
 

The Following 5 Users Say Thank You to airjordan17 For This Useful Post: