![]() |
Re: Widget Proposal: Cellular Bandwidth Monitor
OT and banging my own drum:
Here's how to get the IP address for your device, whether you are on wlan, gprs, or adhoc. Code:
/sbin/ifconfig | grep "Mask:255.2" | cut -21-40 | tr -d " BcastP-\:" |
Re: Widget Proposal: Cellular Bandwidth Monitor
FWIW, the CPA retrieves those "Data Rx/Tx" values from some GConf keys.
For fear of getting lynched by Nokia, I won't say which, but it's not hard to find the keys in question. |
Re: Widget Proposal: Cellular Bandwidth Monitor
Quote:
Quote:
Code:
/sbin/ifconfig | sed -n -e "/127\.0\.0\.1/d" -e "s/^.*addr:\([0-9.]*\).*$/\1/p" Code:
ip addr list dev `ip route list exact 0/0 | cut -d" " -f5` | \ |
Re: Widget Proposal: Cellular Bandwidth Monitor
Thanks, lma.
All I knew is that the diablo homeip widget doesn't work for ad-hoc, and mine does. Plus it works for all of my Fremantle use-cases... |
Re: Widget Proposal: Cellular Bandwidth Monitor
I've written something like that as statusbar applet for the Linux Desktop and OS2008 that screenscrapes my cellular operator's website and displays the data/voice usage:
http://thpinfo.com/2009/naranjito/ This currently only works for one operator, but could of course be extended to operators which allow the traffic to be seen from some (login-protected) website. Of course, modifying it to be a desktop widget should not be too hard, also... The code is open source and available from the website. http://thpinfo.com/2009/naranjito/naranjito-maemo.png |
Re: Widget Proposal: Cellular Bandwidth Monitor
Quote:
|
Re: Widget Proposal: Cellular Bandwidth Monitor
Quote:
Most operators (atleast here in .se) won't tax you for surfing on their own page. :) /me waits for his isp (cellphone service provider? geh, isp sounds better) to implement a statistics page to scrape... ;) |
Re: Widget Proposal: Cellular Bandwidth Monitor
Quote:
|
Re: Widget Proposal: Cellular Bandwidth Monitor
Quote:
iproute2 is excellent software btw. Much more convenient than /sbin/route and /sbin/ifconfig it saves a lot of typing and is easier to parse, supports ipv6, etc. Excellent, lma. I found vnStat a lightweight network traffic monitor. Does not require sniffer. It comes with init.d script. You will need to use the daemon because you use ppp0 (akin to dialup) hence the device (with statistics) goes down every once in a while. It compiles on ARM. |
Re: Widget Proposal: Cellular Bandwidth Monitor
|
All times are GMT. The time now is 05:34. |
vBulletin® Version 3.8.8