**** BEGIN LOGGING AT Sun Aug 24 02:59:59 2014 Aug 24 10:37:04 av500: hi Aug 24 10:37:15 is anyone here on a sunday? Aug 24 10:38:15 well , after trying to google a solution fro the water flow sensor online, I wrote my own Aug 24 10:38:20 http://pastebin.com/v9FyXRNY Aug 24 10:38:41 I am hoping someone here may take a look, and comment on it Aug 24 10:39:36 ah...cool, your doing in python....so , is it working or not working? Aug 24 10:40:23 it is, problem is to tell apart false pulses from real once Aug 24 10:40:39 I think of it as a button debouce Aug 24 10:40:55 when I press a button I expect to get bounces Aug 24 10:41:07 If I only get a single pulse - its false Aug 24 10:42:02 yet I may get many bounces when I open the tap and water start flowing Aug 24 10:43:01 real ones alwsy have two press? Aug 24 10:43:25 real onces have at least two press Aug 24 10:43:55 I was trying it with three, but noticed in some rare cases - it is not enougth Aug 24 10:44:21 I also need to post this as, I didn;t see anyone do it Aug 24 10:44:26 you should add a comment at if rawState == ON and OFF, its not obvious to me what it means Aug 24 10:44:34 and it makes sense ... Aug 24 10:44:43 thanks Aug 24 10:45:53 actually your innrer if code, its too nested with some many if, elif, if... Aug 24 10:46:30 i would say, if you can keep things within that whole while block to a bit simpler, it would be easier for you to debug Aug 24 10:47:45 in general, one level deep nesting is usually fine but too deep makes it difficult to debug Aug 24 10:47:47 right, I need to look in to this, Aug 24 10:49:56 cityoflights2: for example, this one shows one way of doing debounce in python Aug 24 10:49:57 https://stackoverflow.com/questions/6578431/debouncing-joystick-button-input Aug 24 10:50:50 you can see it maintains one level deep loop, so its easy to follow the logic. Aug 24 10:51:04 yep, but I am looking to use interrupts and therefor epool Aug 24 10:52:25 hmmm....try to see if you are doing everything ok within that while loop...make sure that logic is correct .... Aug 24 10:53:36 i usually draw such nesting on paper, its easier to follow.... Aug 24 10:57:41 hitlin37, as I am at work now, I will post a nicer version tomorrow. Aug 24 10:57:58 I guess I don't need the elif rawState == OFF and ( ( now - first_bounce_timestamp ) >= PRESS_MSEC ) : Aug 24 10:58:37 I mean , as long as I output the debounce valuve, I don't need to reset the counter. Aug 24 12:59:25 OK Noob question but ridiculously hard to find the answer online... How to display a .jpg file on the bone (original version), connected to the LCD7 cape? Aug 24 13:11:02 I know the Beagle is intended for a more advanced user group but it is strange that this is so difficult for such a simple task. I just installed Raspian on the pi, with zero linux experience, and had images and video files playing within seconds. A task a have spent hours trying to accomplish on the bone. A shame cuz seems like a really interesting platform but support for entry level is nill. Aug 24 13:33:58 hitlin37: http://pastebin.com/6tFLN4nc Aug 24 13:34:06 cleaner Aug 24 14:01:59 well , I am guessing most users here are napping, as it is a sunday Aug 24 14:02:49 In case anyone is here, please see this python code, to debounce a water flow sensor Aug 24 16:02:41 does anybody have any experience in speeding up OpenCV using NEON in BeagleBone Black? Aug 25 01:01:04 hi Aug 25 01:04:17 is there a router operating system for the bbv Aug 25 01:05:07 roll ya own .. iptables is in debian repo :P~ Aug 25 01:08:36 I want to use the bbb as WiFi repeater Aug 25 01:08:51 why isn't opewrt or ddwrt supported Aug 25 01:09:08 I'm not aware openwrt is still bein developed actively Aug 25 01:09:12 ask openwrt or ddwrt about that Aug 25 01:10:11 the pi is supported Aug 25 01:10:31 the pi doesn't have wifi does it?! Aug 25 01:11:09 neither does the bbb. you use a dongle Aug 25 01:11:31 good point Aug 25 02:50:51 It seems impossible to uninstall ANYTHING from the BeagleBone Black. Has anybody managed to do this? For instance, Apache2 is installed but it can't be removed. Aug 25 02:52:03 AquaZ: what distro? Aug 25 02:52:14 Debian. Aug 25 02:53:03 http://xmodulo.com/2013/02/how-to-uninstall-and-remove-apache2-on-ubuntu-debian.html Aug 25 02:53:22 there's a few ways, but htat's one Aug 25 02:53:53 Ok thanks. I'll read and give it a shot. Aug 25 02:54:13 Oh.. I've been there and done that. Aug 25 02:55:14 It appears to uninstall and then when I reboot, it's back. Aug 25 02:55:47 try purging it Aug 25 02:56:28 sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common Aug 25 02:56:38 root@debian-home:/opt# apt-get purge apache2 Reading package lists... Done Building dependency tree Reading state information... Done Package 'apache2' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Aug 25 02:56:53 Says it's not installed but it's running. Aug 25 02:57:19 you're on the BBB right, and not your host? Aug 25 02:57:27 Of course. Aug 25 02:57:57 hmmmm Aug 25 02:58:35 sdcard? Aug 25 02:59:03 No SD Card installed. Aug 25 02:59:28 This is like twilight zone stuff. Aug 25 02:59:36 sudo rm -rf /etc/apache2 **** ENDING LOGGING AT Mon Aug 25 02:59:58 2014