maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Widget Proposal: Cellular Bandwidth Monitor (https://talk.maemo.org/showthread.php?t=32047)

allnameswereout 2009-09-24 20:45

Re: Widget Proposal: Cellular Bandwidth Monitor
 
Keep in mind not every MB is a MB. As in, if you have a FUP, you care less for a MB than when you are roaming. Ideally, an application knows the roaming costs of the provider you are. BTW, as of now this info should be easy to get from /sbin/ifconfig ppp0 there are some Linux software for this too but they basically poll /sbin/ifconfig ppp0 every X minutes and calculate the difference. My S60 phone keeps track of this by itself. Maybe Maemo does too. Then you'd only have to parse that data.

zerojay 2009-09-24 21:23

Re: Widget Proposal: Cellular Bandwidth Monitor
 
Quote:

Originally Posted by allnameswereout (Post 333157)
Keep in mind not every MB is a MB. As in, if you have a FUP, you care less for a MB than when you are roaming. Ideally, an application knows the roaming costs of the provider you are. BTW, as of now this info should be easy to get from /sbin/ifconfig ppp0 there are some Linux software for this too but they basically poll /sbin/ifconfig ppp0 every X minutes and calculate the difference. My S60 phone keeps track of this by itself. Maybe Maemo does too. Then you'd only have to parse that data.

ifconfig is inaccessable unless you are root and that's not a good idea. /proc/net/dev gives you the same info for free.

qole 2009-09-24 21:30

Re: Widget Proposal: Cellular Bandwidth Monitor
 
Quote:

Originally Posted by jandmdickerson (Post 333120)
Can we get a reset button (like an odometer trip A and B button?) so we can start counting at the beginning of our next billing cycle?

Quote:

Originally Posted by zerojay (Post 333123)
That's a function I would be too worried I'd hit accidentally if it's just on the desktop...

I can vouch for the fact that it is a problem.

Tip to designers: Don't put a big "Reset" button beside your data counter, and if you do, at least have a second "Are you sure?" dialogue.

qole 2009-09-24 21:31

Re: Widget Proposal: Cellular Bandwidth Monitor
 
zerojay: In Brainstorm, you phrase your initial post as a problem, and then you have to post a solution to your problem, otherwise we can't vote on it.

zerojay 2009-09-24 21:38

Re: Widget Proposal: Cellular Bandwidth Monitor
 
Quote:

Originally Posted by qole (Post 333177)
zerojay: In Brainstorm, you phrase your initial post as a problem, and then you have to post a solution to your problem, otherwise we can't vote on it.

And that's why I didn't post it there from the start. ;)

I'll fix it in a bit.

code177 2009-09-24 21:43

Re: Widget Proposal: Cellular Bandwidth Monitor
 
As a resident of Canada I'm subjected to our telco's bankrupting data rates. I'm sure I speak for everyone in this country when I say this widget isn't just a great idea, it should come with the device as standard...

lma 2009-09-24 22:28

Re: Widget Proposal: Cellular Bandwidth Monitor
 
Quote:

Originally Posted by zerojay (Post 333169)
ifconfig is inaccessable unless you are root

Only because it's not in user's $PATH in Maemo (but one can always use the full pathname, or "busybox ifconfig"), it doesn't require any special privileges

Quote:

/proc/net/dev gives you the same info for free.
and that's exactly where ifconfig gets the stats from too.

qole 2009-09-24 23:07

Re: Widget Proposal: Cellular Bandwidth Monitor
 
I've already voted (thumbs up!) on the new idea.

zerojay 2009-09-24 23:11

Re: Widget Proposal: Cellular Bandwidth Monitor
 
I have also added an alternative solution to the idea that you may want to check out. I've also added the proper link to the brainstorm in the first post.

Jack6428 2009-09-24 23:14

Re: Widget Proposal: Cellular Bandwidth Monitor
 
i guess you should give it a shot


All times are GMT. The time now is 05:36.

vBulletin® Version 3.8.8