You are not logged in.

#1 2014-06-25 11:15:57

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

nbwmon - ncurses bandwidth monitor

nbwmon - ncurses bandwidth monitor

* Print bandwidth graphs.
* Print current, average and maximum transfer speeds.
* Print total traffic.
* Scale to full window on startup and resize.
* Detect active network interface.
* Support for multiple units.
* Support for colors.

git:
https://github.com/causes-/nbwmon

screenshot:
7zfeGdws.png




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by defer (2014-10-03 19:15:19)

Offline

#2 2014-06-25 14:06:32

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: nbwmon - ncurses bandwidth monitor

Wow, that looks pretty cool! I'm gonna have to take a look at that.

All the best,

-HG

Offline

#3 2014-06-25 14:15:24

xero
Member
From: ~/
Registered: 2014-04-02
Posts: 86
Website

Re: nbwmon - ncurses bandwidth monitor

defer wrote:

nbwmon - ncurses bandwidth monitor

very nice. thanx for sharing!


▬▬ι═══════ﺤ
http://git.io/.files

Offline

#4 2014-06-25 15:05:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: nbwmon - ncurses bandwidth monitor

For monitoring network traffic and bandwidth usage I like to use nload http://www.roland-riegel.de/nload/scree … index.html
I doesn't have colors, but seems to scale with windows resize.

Offline

#5 2014-06-25 17:27:32

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: nbwmon - ncurses bandwidth monitor

Iftop does the job well too, with the added benefit of displaying active network connections.

Offline

#6 2014-06-25 18:40:59

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: nbwmon - ncurses bandwidth monitor

defer wrote:

nbwmon - ncurses bandwidth monitor

Nice little app smile

Obviously (from the commit log) it's a very recently started project, but would you like any feature requests/bugs/etc adding on github... or just leave it to you for a while until the project gets a little older?

Offline

#7 2014-06-25 18:59:33

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

Glad you like it. Bug reports and feature requests are always welcome.

Offline

#8 2014-06-25 21:33:17

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: nbwmon - ncurses bandwidth monitor

defer wrote:

nbwmon - ncurses bandwidth monitor

features:
print bandwidth graph
print bandwidth, peak and traffic
scale to full window on start and resize
support for colors

git:
https://github.com/defer-/nbwmon

screenshot: http://i.imgur.com/W1H9ZXI.png




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

The flicker was bad so I fixed it

 [ nbwmon ]$
└──╼ diff ./orig.nbwmon.c ./nbwmon.c 
83,86d82
< 	endwin();
< 	refresh();
< 	clear();
< 
101d96
< 		endwin();
121,122d115
< 	clear();
< 
154,155d146
< 
< 	refresh();
183d173
< 		endwin();
201d190
< 		endwin();
248d236
< 		endwin();
271a260
> 		doupdate();

You're just jealous because the voices only talk to me.

Offline

#9 2014-06-25 21:43:43

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: nbwmon - ncurses bandwidth monitor

moetunes wrote:

The flicker was bad so I fixed it

https://github.com/defer-/nbwmon/issues/3   big_smile

which terminal program, just out of interest?

Offline

#10 2014-06-25 23:25:37

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

Flickering should be fixed now for urxvt (and others?).

Offline

#11 2014-06-26 02:04:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: nbwmon - ncurses bandwidth monitor

Splitting out the nbwmon posts to Community Contributions...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2014-06-26 08:04:46

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: nbwmon - ncurses bandwidth monitor

stevenhoneyman wrote:

snip

which terminal program, just out of interest?

I use urxvtc and the latest update fixed the flicker.

Cheers


You're just jealous because the voices only talk to me.

Offline

#13 2014-06-26 11:48:45

c0r73x
Member
From: Sweden
Registered: 2011-05-06
Posts: 14

Re: nbwmon - ncurses bandwidth monitor

Nice program smile

May I suggest changing the colorstuff to:

start_color();
use_default_colors();
init_pair(1, COLOR_GREEN, -1);
init_pair(2, COLOR_RED, -1);

to use the terminal default background instead of black smile

Offline

#14 2014-06-26 12:39:10

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: nbwmon - ncurses bandwidth monitor

How about a PKGBUILD?
You can try my PKGBUILD from my github-project. should be pretty much the same smile

https://aur.archlinux.org/packages/wh/w … t/PKGBUILD

Of course you will need to add your stuff for compiling and remove my dependencies because my project is in perl, but maybe it helps.

All the best!


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#15 2014-06-26 12:57:21

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

c0r73x wrote:
use_default_colors();
init_pair(1, COLOR_GREEN, -1);
init_pair(2, COLOR_RED, -1);

Yes thats much better. Thanks.

ap0calypse wrote:

How about a PKGBUILD?

Might be a bit early for that. Would be good to test the program without making changes to code for some time first.

Offline

#16 2014-06-26 13:28:06

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: nbwmon - ncurses bandwidth monitor

defer wrote:
ap0calypse wrote:

How about a PKGBUILD?

Might be a bit early for that. Would be good to test the program without making changes to code for some time first.

Valid point. wink


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#17 2014-06-30 00:22:08

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: nbwmon - ncurses bandwidth monitor

Hi defer, nice utility.
Do you plan to make the graph scale with the window size? Something like `nbwmon -l $(( LINES / 2 - 2 ))` is fine, just not quite handy.


This silver ladybug at line 28...

Offline

#18 2014-07-01 09:58:52

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

lolilolicon wrote:

Hi defer, nice utility.
Do you plan to make the graph scale with the window size? Something like `nbwmon -l $(( LINES / 2 - 2 ))` is fine, just not quite handy.

I added full height option (-f). I think the fixed height is good default because it may confuse if the graph height is not always the same.

Offline

#19 2014-07-01 10:29:15

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: nbwmon - ncurses bandwidth monitor

Huh, nice! And it scales, much better than my trick! Thanks smile


This silver ladybug at line 28...

Offline

#20 2014-07-01 19:27:33

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

lolilolicon wrote:

Huh, nice! And it scales, much better than my trick! Thanks smile

Now when i tested it i liked it so much i set it default. :-)

Last edited by defer (2014-07-01 22:07:25)

Offline

#21 2014-07-02 13:13:51

sekret
Member
Registered: 2013-07-22
Posts: 289

Re: nbwmon - ncurses bandwidth monitor

You're welcome (took about 1 minute)

Offline

#22 2014-07-02 16:17:16

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

sekret wrote:

You're welcome (took about 1 minute)

Great! Thank you.

Offline

#23 2014-09-19 16:44:17

defer
Member
From: Finland
Registered: 2013-06-25
Posts: 46
Website

Re: nbwmon - ncurses bandwidth monitor

0.4.3 is released with new UI style and other improvements.

Screenshot:
LhFJ21Ts.png

Offline

#24 2014-09-19 17:18:08

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: nbwmon - ncurses bandwidth monitor

The [ 0 B/s ] at the bottom is rather useless... To a less extent, the repetition of the max values also bothers me a little.

EDIT: My suggestion is to remove the bottom boxes, and place the numbers on the first line of each of the graphs.

Last edited by lolilolicon (2014-09-19 17:23:07)


This silver ladybug at line 28...

Offline

#25 2014-09-22 08:03:25

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: nbwmon - ncurses bandwidth monitor

lolilolicon wrote:

The [ 0 B/s ] at the bottom is rather useless... To a less extent, the repetition of the max values also bothers me a little.

EDIT: My suggestion is to remove the bottom boxes, and place the numbers on the first line of each of the graphs.

Or instead of the max value, use the current value over the graphs.

Offline

Board footer

Powered by FluxBB