BIT METER OS 0.7.6 (stable) & 0.8.0 (experimental)

Configuration wizards, scanners, remote desktop, etc.
Message
Author
User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#76 Post by mikeb »

Well my feeling is the beta is a beta..ie the ram usage may improve in time. Its also more sensitive to the network state.

My tests also show differences in behaviour with pups...so anyone finding problems may be suffering from that phenomenom..indeed it was not messed up permissions in my case but a problem running in Lucid...4.12 works OOTB.

Perhaps we need to give the developer this feedback...a link to this thread might help him/her.

mike

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#77 Post by Mike Walsh »

Afternoon, Michael.

Yeah; I think that's probably nearer the mark, actually. I'm guessing there probably are differences with the great variety of kernels in use by all the Pups & Puplets out there...and of course this will create problems in one respect or another.

I'll look into seeing if I can link this thread to Rob Dawson's site, and see if I can let him have some feedback. At least I'll find out that way if this is still under current development or not.

Cheers for the suggestion.


Mike 2 Mike. :D

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#78 Post by mikeb »

Well gave a test on a Lucid based distro but not puppy... same behaviour for 0.7.8 (no web) but working for 0.8.0...8 threads 1.7MB by the way. Using a wifi dongle in this case. Seems for 0.7.8 local connection is being blocked for some reason...cannot work out the logic there.

One note for testers...a database written by 0.7.8 will prevent 0.8.0 starting..you will get an error message in the log. Might cause a few red herrings. The reverse may also apply.

mike

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#79 Post by Mike Walsh »

@MikeB:-

I've acted upon your suggestion, and have sent a message to Rob Dawson via the 'Feedback' tab on his site. I've also left him a link to this thread, so.....if he's interested enough, he'll take a look, I guess.


Mike 2 Mike. :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#80 Post by mikeb »

Now if only he was called Mike Dawson ;)

mike

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#81 Post by Mike Walsh »

mikeb wrote:One note for testers...a database written by 0.7.8 will prevent 0.8.0 starting..you will get an error message in the log. Might cause a few red herrings. The reverse may also apply.

mike
Quite so; have to agree with you, there. I found that out myself when upgrading from one to t'other a few days ago. That's why I've added the suggestion into the OP that people will find it helpful to go into /var/lib and delete the bitmeter directory after uninstalling 0.7.6 and before installing 0.8.0.

Should prevent a lot of 'head-scratching'.....


Mike 2 Mike. :)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#82 Post by mikeb »

Useful tool though...just determined with it that ebay uses an average of 2MB a page...no wonder i chalked up 400MB searching for a boat nav light!!!!

Now thats bloated web design...and its NOT the images either!!

mike

robd
Posts: 4
Joined: Sun 17 May 2015, 14:52

#83 Post by robd »

Hi

I'm the developer of BitMeter OS, thanks to Mike for alerting me to this thread.

It's very rewarding to see all the effort that you have put into getting the app working on Puppy! I haven't done any real development on BitMeter for a number of years, but if anyone has specific questions about any issues you have found please reply here and I'll try to help.

Once you have a PET or SFS package that you are happy with I will add it to the download links on my site, so hopefully others will benefit from your work

best wishes

Rob D

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#84 Post by mikeb »

Hi rob.... this is another mike.

thanks for dropping in...hope you can make some sense of all our ramblings.

Seems like you have gained some popularity around here...or notoriety ;)

regards

mike

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#85 Post by Mike Walsh »

Well, well, well.....howsabout that then, guys & gals? We have had a visitation.....and a most welcome one, too.

@robd:-

Thank you very much for replying to my e-mail; it's much appreciated. I did say that I'd find out one way or another if this was still under development or not; at least now I know!

I still stand by what I said, in my original post; BitMeterOS is, to my way of thinking, one of the most useful small apps I've ever found...and if one individual found it useful, then it was likely a fair bet that others would, too. When I was using XP a while back, I used to regularly troll the download sites to see if I could glean any gems from the vast oceans of Windows dross that used to overflow the sites. You'd occasionally find something useful; that was how I came across a company called ShaPlus Software. They mostly produce business software for the Muslim community.....but they also produced an absolute little gem of a bandwidth meter:-

http://www.shaplus.com/bandwidth-meter/

Small, neat, and very simple...and told me just what I needed to know. In more or less the same way that yours does. To quote the UK 'Ronseal' television advert; '...it does exactly what it says on the tin...'

To reiterate; BitMeterOS is ace, IMHO. And one thing you soon learn, here on the Forums; we have some extremely talented, and very knowledgeable individuals, here in 'Puppyland'... They're the ones who've put the hard graft in; all I did was give the app an airing, and brought it to the community's attention. They deserve the credit...definitely not me!


Regards,

Mike. :)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#86 Post by Mike Walsh »

@robd:-

In fact, I DO have one question, now that I think about it. I moved to Linux about a year ago, as I said in my message to you. Nearly from the start, I looked for something similar to, and then discovered, BitMeterOS; I think the stable version then was 0,7.5, and 0.7.6 was the experimental version. When 0.8.0 was released, I moved to 0.7.6.

With 0.8.0, the web interface now shows the difference between total usage (up & down), and internet usage. It didn't take me long to find out that file-sharing via LAN was a lot more prevalent in the Linux world than it was in the Windows one. I've since come to realise that in fact, networking and 'file-sharing' is becoming quite standard these days, with the advent of media-streaming, and home-based media server setups.

Was this in your mind when you developed the 0.8.0 version?


Regards,

Mike.
Last edited by Mike Walsh on Mon 18 May 2015, 01:11, edited 1 time in total.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#87 Post by Geoffrey »

Mike Walsh wrote:Obviously, it won't make much difference if you have several GB of RAM to play with (as is the case on my desktop), but if you're in the 'upto a gig' bracket (as is the case with a lot of older hardware, including MY old Dell), then it might be wiser to recommend to people that they use the stable 'version'...

What do you think?
0.8.0, 32 bit and 64 bit versions appear to be working fine for me so far , as for the memory usage I don't think it will be that much of an issue.

I think the 0.8.0 version would be the best to use if your concern is internet bandwidth and you have a local network to consider too, else 0.7.8. should be adequate.

Maybe a tray icon to start and stop it would be of benefit, or a way to only start when connected to your metered connection, don't need to have it running if using other network access
mikeb wrote:Don't forget lucid and 412...indeed it would be odder if it did not work in everything
Whats needed for lucid and 412, does the 32 bit package work ok as is ?
Last edited by Geoffrey on Sun 17 May 2015, 22:46, edited 1 time in total.
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#88 Post by mikeb »

well aside from the problem with lucid and 0.7.8 web display some pups do not have the debian daemon binaries for starting and stopping.... I just used bitmeter & for example in the scripts.

pcap...some don't have it at all ..some need a link...some have the link...a mixed bag. My thoughts were to include a copy of 0.8 as its small... make it independent of whatever system its on then.

memory usage...not so much a case of can it be handled but anything way over the 1-2mb suggested a problem that may need looking at.

mike

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#89 Post by Mike Walsh »

@Geoffrey:-

A tray icon sounds a good idea, Geoff. It could work in much the same way as rcrsn51's experimental Bluetooth packages. Aside from all the supporting stuff, Bill's configured the set-up with a tray icon for actually enabling the Bluetooth connection. It's a simple toggle affair; click once for on, and again for off.

Could be a good addition. I like the sound of that. As I've said, however, I have to leave the mechanics of that to people like your good self: me no know what the hell I'm doing, as far as that goes..! I really think this is your 'baby' now, Geoffrey...

Comments?


Regards,

Mike. :)

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Bitmeter for a multiPup computer?

#90 Post by davids45 »

G'day,

How does Bitmeter or any other similar monitor store its data. Or where?

With for example, Osmo and Seamonkey, I can set every Pup on this computer to use the same profile data, sym-linked from a common file on a boot-mounted data partition.

So I can boot any Pup any time and have access to the same data, and add to that during any session.

The Pup-default meter on the taskbar (pops up with a hover over the internet connection icon) keeps a sort-of record for that Pup during the month (where I wonder?) but it is the aggregate for the computer itself that would be more handy to know.

Does a router store this sort of information so that it could be accessed from a Pup browser? With several old desktops set up with Puppies for the visiting grandkids, and an MS-commited wife, this would be interesting data to get/monitor as the common point of our home network is the router. Particularly now smart-phones as well as visiting laptops also go through the router via wifi.

Our ISP has its opinion about our total usage, of course :shock: .

David S.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#91 Post by Mike Walsh »

Hello, David.

Now; let's see if I have this right. As I understand it, BitMeter (I can't vouch for other monitors, as I haven't tried any others...yet!), stores its data in a database called 'bitmeter.db' in /var/lib.

By using the address bar entry 'localhost:2605/index.html', you are then telling the local loopback system to listen, on port 2605, for the most recent measurement from BitMeter, as it is in fact a small 'server'. The app itself is fairly configurable; you can set the 'Summary' tab to refresh itself at any interval you like, right down to once a second if you want. I have mine set for once every 7 seconds.....the default is 10.

I haven't got a clue whether other monitors work in this fashion.....I only know that this is how BitMeter OS works. Now that the author, Rob Dawson, has posted in the thread, you may be able to get a more detailed answer from the man himself. He's indicated that he's quite willing to answer questions on the subject.


Regards,

Mike.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#92 Post by Geoffrey »

mikeb wrote:pcap...some don't have it at all ..some need a link...some have the link...a mixed bag. My thoughts were to include a copy of 0.8 as its small... make it independent of whatever system its on then.
Is there a particular pcap that's needed, the one in Vanguard is as in Carolina/wary, if that will do I can add that so it's only used if the native version doesn't exist.

Could likely have the pinstall also create new bitmeterweb and bimeter scripts to suit the versions of puppy that don't support the debian one's.

So far I'm at this as a pinstall if I add the Carolina libpcap.so.0.8 @179.1 kB, is there a smaller one ?

Code: Select all

LIBPCAP=`find /usr -type f -name 'libpcap.so.*' | head -n 1`
if [ ! -f "$LIBPCAP" ]; then
cp libpcap.so.0.8 /usr/lib/
else
LINK_PATH=${LIBPCAP%/*}
if [ ! -f "$LINK_PATH/libpcap.so.0.8" ]; then
ln -s "$LIBPCAP" "$LINK_PATH"/libpcap.so.0.8
fi;fi
cp /var/lib/bitmeter/bitmeter.db.new /var/lib/bitmeter/bitmeter.db
/etc/init.d/bitmeterweb start 
/etc/init.d/bitmeter start 
exit 0
How would this be as a start, stop script ?

Code: Select all

#!/bin/sh
# Lucid/412
DAEMON=/usr/bin/bmcapture
PROC=bmcapture

test -f $DAEMON || exit 0

doStart(){
    if ps aux | grep $PROC | grep -v grep > /dev/null
	then
	echo -e BitMeter Capture daemon is running...
	else
	echo -e Starting BitMeter Capture daemon: bmcapture
	$PROC &
	fi
}
doStop(){
    if ps aux | grep $PROC | grep -v grep > /dev/null
	then
	echo -e Stopping BitMeter Capture daemon: bmcapture
	pkill -f $PROC
	sleep 1
	fi 
}
case "$1" in
  start)
    doStart
    ;;
  stop)
    doStop
    ;;
  restart)
    doStop
    doStart
    ;;
  force-reload)
    doStop
    doStart
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}" >&2
    exit 1
    ;;
esac

exit 0
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Bitmeter for multiPup desktop

#93 Post by davids45 »

G'day Mike Walsh,

Thanks for the quick answer.

If Bitmeter keeps its data as a .db file in /var/lib, then can I set this file as a sym-link for each Pup's Bitmeter to the same 'real' bitmeter.db file on my computer's data partition? Whichever Pup I am using will then use this one-and-only common bitmeter.db file, so for this computer, I will have a single record of its internet usage.

I could do the same for the grandkids' old HP desktops here too, as they do like to play on-line ABC4Kids games for their age-group (1-4 years old) when not watching Peppa or Thomas or Roary or Sam or Bob or ... etc :roll:

David S.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

Re: Bitmeter for multiPup desktop

#94 Post by Mike Walsh »

davids45 wrote:...If Bitmeter keeps its data as a .db file in /var/lib, then can I set this file as a sym-link for each Pup's Bitmeter to the same 'real' bitmeter.db file on my computer's data partition? Whichever Pup I am using will then use this one-and-only common bitmeter.db file, so for this computer, I will have a single record of its internet usage...
Hmm. I don't know, to tell the truth. As I've stated in the thread, I'm pretty new to all this, compared to some other folk on the forums.....only been here for about 10 months, I think..?

I only discovered the use of 'sym-links' myself less than a month ago! If you mean would it work for multiple 'Pups' on the same hard drive, well..... Actually, I can't think of any reason why that shouldn't work; as long as they were all running the same version of BitMeter (0.7.6 or 0.8.0; I don't know if it would make a difference if you had, say, a mixture of 32- & 64-bit 'Pups'...)

I don't think it would work across a network for multiple machines, though.....I have no idea if symlinks can be set across a network (I'm more than willing to learn, though!) That's where Rob Dawson's 'bmsync' utility normally comes in; you can read more about that here:-

http://codebox.org.uk/pages/bitmeteros/bmsync/man

As I understand it, though, 'bmsync' has to be run manually (say like once or twice a day, simply to total data readouts across a network); I don't think it can be set to 'autorun'...

Something to think about, there... Thanks for that, David. I've been wondering if there was another way to 'sync' data in that manner; I've never been able to use 'bmsync' between OS's on the same machine, because it isn't designed to work like that. It's intended for use between two physical machines, running simultaneously.....you could have 20 Pups on one machine, but you can only physically run one of them at a time...

Try it, is all I can say. What's the worst that can happen?


Regards,

Mike. :D
Last edited by Mike Walsh on Mon 18 May 2015, 08:26, edited 1 time in total.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#95 Post by Mike Walsh »

@Geoffrey:-

A question for you. If you look at the last couple of posts, between me and davids45; would that idea work? Or would you get multiple instances of the same data?

What part of the app is it that actually writes to the database in /var/lib? Would that need to be what was 'sym-linked'.....or have I got hold of the wrong end of the stick here?

My 'noob-ness' is showing, ain't it? :lol:


Mike.

Post Reply