maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Request] WiFi meter (https://talk.maemo.org/showthread.php?t=68877)

neboja 2011-01-24 18:56

[Request] WiFi meter
 
ok, so i searched all forum, and did not find any software that could measure amount of data transfer trough WiFi... there is a "NetStory", but in only measures amount of data transfer trough gprs....

so simple it is, what do you think: is it possible to someone to make that kind of app, or to upgrade a "netstory" with option to measure data trougt WiFi, or to create only a widget (QBW or whatever) to do the job?

thx community! ;)

futtawuh 2011-01-24 19:06

Re: [Request] WiFi meter
 
Hi there, not sure if this is what you're looking for?

http://wiki.maemo.org/Desktop_Comman...PRS_data_usage

-Futtawuh

bigears5000 2011-01-24 19:10

Re: [Request] WiFi meter
 
Quote:

Originally Posted by neboja (Post 927562)
ok, so i searched all forum, and did not find any software that could measure amount of data transfer trough WiFi... there is a "NetStory", but in only measures amount of data transfer trough gprs....

so simple it is, what do you think: is it possible to someone to make that kind of app, or to upgrade a "netstory" with option to measure data trougt WiFi, or to create only a widget (QBW or whatever) to do the job?

thx community! ;)

I thoroughy back this request.I have wanted something like this since I first joined the maemo community, but there isn't anything that does this. The closest thing I have found is this command http://talk.maemo.org/showthread.php?t=37771 but the data is wiped at every reset. I have made a request (can't seem to find it now for some reason) but it seems no one wants to do it. Unfortunately, I don't have the skills. I did also mention it here, but this thread is only a survey and not an application request thread http://talk.maemo.org/showthread.php...064#post920064

Joorin 2011-01-24 19:35

Re: [Request] WiFi meter
 
People might be more interested if you could describe a use case where it makes sense to measure WiFi data transfers.

You're most likely not paying for it directly, so why is it interesting to know this?

neboja 2011-01-24 19:37

Re: [Request] WiFi meter
 
@futtawuh: it is only for gprs data.... and for that we have a solution....
but we need a WiFi data....
@bigears500: i fond just this: http://talk.maemo.org/showthread.php?t=46724
but as i see, it only monitors networ statistics..... it would be awesome to make an app witch could remember all data, and present them in some form... (like netstory... wih option to reset database, and show a hour/day/week/month usage...)

neboja 2011-01-24 19:43

Re: [Request] WiFi meter
 
Quote:

Originally Posted by Joorin (Post 927591)
People might be more interested if you could describe a use case where it makes sense to measure WiFi data transfers.

You're most likely not paying for it directly, so why is it interesting to know this?

some of us have limited data transfer and it would help if you cold know when you are approaching the limit... BUT, this app (widget or whatever) would be great mostly for analysis!
main interest for me is how many i spend MB in a period of month, and for a purpose to bay a appropriate data package for my phone... ;)

Mentalist Traceur 2011-01-24 19:55

Re: [Request] WiFi meter
 
Hi,

I'm writing a clock style for use with Advanced Clock Plugin that does something very basic that isn't exactly what you want, but might be useful.

You know how cpumem applet shows a bar for cpu, that goes up with load, and a bar with memory that goes up with how much RAM is taken up?

This is kinda like that, but it uses colored bars (different colors for different interfaces - Green is WiFi, Red is basic telephony stuff [this is where you see activity when an MMS or SMS message is sent, when you get a cell-tower lock, etc], Purple is GPRS, orange for USB, blue for BlueTooth, and yellow is local [some internal traffic is sent over the local interface. I'm not sure why, but I figured it's worth showing). The bars are completely gone if there's no traffic, and appear (and get longer/shorter) depending on how much traffic is going over the interface at any moment.

It doesn't store this info in the database, and it doesn't break down what data was for what, though. It just gives you at-a-glance info about how much data traffic there is, like CPU/MEM bars tell you at-a-glance info about how much processor/RAM you're using.

As for exactly what you're asking, if no one else makes it for you, I MAY be able to eventually learn enough to make something like this with Python... No guarantees, but I'll try when I feel I can / have time.

- Edit -

Actually, the post that was posted while I was typing, about having limited data usage on wifi per month, clears up your use-case a bit more...

Yeah, my thing wouldn't really help you with that.

bigears5000 2011-01-24 20:02

Re: [Request] WiFi meter
 
Quote:

Originally Posted by Joorin (Post 927591)
People might be more interested if you could describe a use case where it makes sense to measure WiFi data transfers.

You're most likely not paying for it directly, so why is it interesting to know this?

If you are on a limited capped monthly data limit at home.
You could say why do people need a data monitor on a pc then?
So that you can keep track of how much data the N900 is using. It can be very data intensive depending on what you use it for. If you could monitor the data usage on the n900, you can the add it to the amount used by your pc for the true total home wifi data so that you do not exceed the monthly limit and then getting charged by your ISP.
It's fair enough if some people aren't interested, but others may well be and have a genuine use for it. Hence, a request.

linuxeventually 2011-01-24 20:22

Re: [Request] WiFi meter
 
WifiInfo: http://maemo.org/downloads/product/Maemo5/wifiinfo/
http://static.maemo.org/static/2/2ce...131-174600.png

casketizer 2011-01-24 20:26

Re: [Request] WiFi meter
 
@bigears
Does your router not offer this functionality? Most routers I know do this.

bigears5000 2011-01-24 20:42

Re: [Request] WiFi meter
 
Yes it does show the total. Perhaps I am just being sad, but I would still like to know how much of the total my N900 is using. I am faily sure there are tools for the pc to show totals for each individual device, but I would find it handy just to have a small widget like dataplan monitor, directly on the N900. Anyway, it was only a request. I must be sad, because if it would be much use to other people, it would have been made by now!

Joorin 2011-01-25 00:09

Re: [Request] WiFi meter
 
@bigears5000
You're not sad at all. The described use case makes sense (even though I didn't think of that setup from the start, WiFi being "free" data transfer in my world).

So, just to get the ball rolling: the network driver keeps track of both the number of packets and bytes sent and received. This information is available using the /sbin/ifconfig command. With some creative use of grep and sed, I'm sure it'd be easy to use some widget based application to dig this out and display it. QueenBeacon perhaps?

These counters are reset at reboot and unloading of the kernel module but as an initial hack, it might be enough to at least keep track of the general usage.

Mentalist Traceur 2011-01-25 07:57

Re: [Request] WiFi meter
 
You can also get the same data in:

/sys/class/net/wlan0/statistics/tx_bytes
/sys/class/net/wlan0/statistics/rx_bytes
/sys/class/net/wlan0/statistics/tx_packets
/sys/class/net/wlan0/statistics/rx_packets

(Where RX is received, TX is transmitted. Folders in net only show up if that interface exists. So if WiFi is unloaded entirely, it doesn't exist. If WiFi is loaded but not connected, it exists. Also, every time the interface disappears [unload driver / reboot], the packet count stops. So you'd have to add the value to the 'last' value, and save the final value as the 'last' every time the interface goes down, and/or occasionally [to prevent GBs of traffic count to be lost because of a sudden battery-flies-out incident.)

theonelaw 2011-01-25 08:51

Re: [Request] WiFi meter
 
conky ? http://talk.maemo.org/showthread.php?t=64434
never have set it for wifi but it should work.
it shows a lot but maybe you mean just logged data throughput?

On my Mandriva machines we have net monitor - very nice.
gkrelim is another that comes to mind...


All times are GMT. The time now is 07:10.

vBulletin® Version 3.8.8