Marc's Public Blog


All | Aquariums | Arduino | Btrfs | Cars | Cats | Clubbing | Computers | Diving | Dreamstate | Edc | Electronics | Exercising | Festivals | Flying | Halloween | Hbot | Hiking | Linux | Linuxha | Monuments | Museums | Oshkosh | Outings | Public | Rc | Sciencemuseums | Solar | Tfsf | Trips




More pages: November 2024 October 2024 September 2024 August 2024 July 2024 June 2024 May 2024 April 2024 March 2024 February 2024 January 2024 December 2023 November 2023 October 2023 September 2023 August 2023 July 2023 June 2023 May 2023 April 2023 March 2023 February 2023 January 2023 December 2022 November 2022 October 2022 September 2022 August 2022 July 2022 June 2022 May 2022 April 2022 March 2022 February 2022 January 2022 December 2021 November 2021 October 2021 September 2021 August 2021 July 2021 June 2021 May 2021 April 2021 March 2021 February 2021 January 2021 December 2020 November 2020 October 2020 September 2020 August 2020 July 2020 June 2020 May 2020 April 2020 March 2020 February 2020 January 2020 December 2019 November 2019 October 2019 September 2019 August 2019 July 2019 June 2019 May 2019 April 2019 March 2019 February 2019 January 2019 December 2018 November 2018 October 2018 September 2018 August 2018 July 2018 June 2018 May 2018 April 2018 March 2018 February 2018 January 2018 December 2017 November 2017 October 2017 September 2017 August 2017 July 2017 June 2017 May 2017 April 2017 March 2017 February 2017 January 2017 December 2016 November 2016 October 2016 September 2016 August 2016 July 2016 June 2016 May 2016 April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December 2011 November 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 October 2003 August 2003 July 2003 May 2003 April 2003 March 2003 January 2003 November 2002 October 2002 July 2002 May 2002 April 2002 March 2002 February 2002 November 2001 October 2001 September 2001 August 2001 July 2001 June 2001 May 2001 April 2001 March 2001 February 2001 January 2001 December 2000 November 2000 October 2000 September 2000 August 2000 July 2000 June 2000 April 1999 March 1999 September 1997 August 1997 July 1996 September 1993 July 1991 December 1988 December 1985 January 1980



2010/08/31 Visit of Kleenspeed
π 2010-08-31 01:01 in Cars, Ncars
A coworker of mine got us an introduction and meeting with the Kleenspeed folks.


their race car got the electric lap time record at Laguna Seca
their race car got the electric lap time record at Laguna Seca


we got a nice test drive around the block
we got a nice test drive around the block


that's a cool fuel gauge :)
that's a cool fuel gauge :)

See more images for Visit of Kleenspeed
2010/08/27 An Evening With Paul Watson from Sea Shepherd
π 2010-08-27 01:01 in Diving, Public
It was by total dumb luck that Paul Watson from Sea Shepherd was talking at the whale museum on the small island of San Juan between Washington State and Canada where I had flown with our local flight club the previous day (San Juan has a large population of visiting whales and established pods of Orcas).



Paul has been fighting Japanese whalers with other volunteers and the financial backing of the animal planet for which he does a show: Whale Wars. While they've had success fighting the whalers and making it less worthwhile and risky for them to do their so called "research job" (of killing countless whales), the fight is not over.
He also explained that the Japanese are in the business of killing species of tuna and other fish that they overfish and stash as gold reserves in deep freezers so that they can sell the last specimens at super high prices (some blue fin tunas have already gone on the japanese fish market for $250,000 a piece).
Japan has also gotten in trouble after the making of The Cove in Taiji where the local Japanese fisherman would just slaughter dolphins by the hundreds because they didn't want them to eat the remaining fish that they are trying to fish too: in other words they were slaughtering dolphins because they were competition. On top of that, they were also feeding some of those very mercury tainted dolphins to their own school children who were getting mercury poisoning as a result (and they were also selling tainted dolphin meat on markets pretending it was tuna).

Back to whales, he mentioned that whales have much larger brains and neocortexes than we do, and are likely more intelligent than us. From what I had learned earlier about their communication and behaviour on a kayaking and whale watch tour, Orcas were not only highly social, but each pod had their own language, and also a separate language to communicate between different pods. From what I read, there is no conclusive evidence on direct correlation between brain size and raw intelligence, but most people seem to agree that the few mammals with bigger brains than humans are pretty intelligent. Obviously, there is a moral issue with killing mammals that are from fairly to highly intelligent, even if you're not vegan.

Separately, he talked about big oil companies getting away with major spills due to the money trail ending at governments. As a result, he gave examples of them being accomplices and muffling big investigations by the EPA or other organizations where people got away with fines as opposed to jail time for extreme negligence. He did mention, and he is right, that a set of big corporations is definitely more interested in short term profits than big the big picture, be it for oil or overfishing. After all, all they care about is the next quarter's stock price, or making a good profit at the next fish market sale.

To be honest, I don't know the greenpeace folks much, but I always had an opinion of them that some were kind of non very reasonable fanatics. After having listened to Paul's 45mn presentation, I found him to be a quite reasonable guy and found him pretty convincing: most people would have issue killing and eating their cats and dogs, and they should feel the same about at least very intelligent dolphins or even more intelligent whales.
For the record, Paul doesn't think very highly of greenpeace which he left many years ago and is more into fighting any whaling in whichever ways that are still legal.

In the meantime, the more they can stop things like those, or the Danish killing dozens to hundreds of whales every year, "for fun", the better.

2010/08/25 Fly Out Group trip to Seattle and the San Juan Islands
π 2010-08-25 01:01 in Flying, Nflying, Ntrips, Trips
Dan Dyer organized another fly out group trip, this time ot the San Juan Islands. It was a nice trip.

Palo Alto to Boeing Field

Jennifer wasn't able to join due to work commitments, but I found a copilot to go with and share the flying. I did the first leg to KBFI (Boeing Field International) which was an easy 5H leg with nice weather.


good old thunderhill, I'll be back soon :)
good old thunderhill, I'll be back soon :)






argh, all this for junkmail I never asked for :(
argh, all this for junkmail I never asked for :(

viewing platform for Mt St Helens
viewing platform for Mt St Helens


Mt St Helens
Mt St Helens


KBFI/Boeing Field
KBFI/Boeing Field

Museum of Aviation visible on the left of the runway
Museum of Aviation visible on the left of the runway




Boeing Museum of Flight

Since we were there already, we went to visit the Boeing Museum of Flight at KBFI. It's actually one of the best flight museums I've seen so far: a full visit takes over 4H and even a quick one takes over 2H :)




I had no idea the concorde had an anti tailstrike tailwheel
I had no idea the concorde had an anti tailstrike tailwheel

Their warbird collection was quite good and well layed out
Their warbird collection was quite good and well layed out



old vs new is fun to see :)
old vs new is fun to see :)

old french plane
old french plane


a rare A12/M21 with D21 drone
a rare A12/M21 with D21 drone

the drone was supposed to launch with nukes in unfriendly territory
the drone was supposed to launch with nukes in unfriendly territory





Seattle

I spent the rest of the afternoon visiting Seattle



the smith tower is a nice view open later than the BOA tower and better view than the space needle
the smith tower is a nice view open later than the BOA tower and better view than the space needle




BofA tower
BofA tower

underground bus system
underground bus system

monorail to space needle
monorail to space needle

lots of work to 'drive' it :)
lots of work to 'drive' it :)





Smith tower on the right
Smith tower on the right

a seaplane was doing patterns with passengers on the nearby lake
a seaplane was doing patterns with passengers on the nearby lake

Mt Rainier in the back
Mt Rainier in the back


Dinner with FOG folks
Dinner with FOG folks





Boeing Factory

The next morning, weather was bad, so we just drove to KPAE to visit the Boeing Museum. Unfortunately, we were not allowed to take any pictures of the factory floor. This is too bad since it was pretty cool to see 787s and 747s being built from scratch on huge floors.
We were able to take pictures of the static displays and planes seen from the outside though:







Flying Heritage Museum

On the way out, I had a look at Paul Allen's private Flying Heritate Museum. It's actually a pretty nice little collection with knowledgeable guides.









Flight to Friday Harbour

Weather still wasn't great, but it was VFR in Boeing field and Friday Harbour, so we figured we'd be able to link the two somehow. It wasn't a very straight line, but we ended up doing a safe, albeit a bit silly considering, VFR on top flight where we climbed over 10,000ft to clear the clouds and leave the cloud area around Seattle. An other flight was able to get there between layers but I didn't find such a path and just didn't wan tot be scud runnings with no so flat land around.







cool shadow of our plane in the clouds with a rainbow around it. Neat!
cool shadow of our plane in the clouds with a rainbow around it. Neat!

little island just next to Lopez Island, pretty cool.
little island just next to Lopez Island, pretty cool.

Orcas Island
Orcas Island

Friday Harbour
Friday Harbour



Visit of San Juan Island

I used the rest of the day to start visiting San Juan.

whale museum
whale museum


recent whale sightings
recent whale sightings


another FOG dinner
another FOG dinner




Kayaking off San Juan

The second day, I went kayaking in case we could be lucky and see orca whales.









Looking for Orca Whales

Since kayaking didn't work, I went on a boat ride, which makes things easier since there are boats keeping track of orca whale sightings. We indeed found some Orcas just by the Canadian border.



they have a catalog of local orcas
they have a catalog of local orcas

we saw a few orcas after a long boat trip
we saw a few orcas after a long boat trip


Before leaving friday harbour, we biked around the island a bit:







Quick Flight to Orcas Island

After biking around the Island, we flew to Orcas Island for lunch:










Flight Back to Palo Alto

And after a late lunch at Orcas Island, we flew back to Palo Alto.


looks like a fun track
looks like a fun track



Portland
Portland


more Portland
more Portland


making sure my blood O2 saturation was still good at altitude
making sure my blood O2 saturation was still good at altitude

As predicted by my skypad with XM weather, weather got a worse as we were about to enter California and got closer to Mt Shasta. We had to make a sharp westbound turn and fly around it to stay VFR on top (I had no interest in getting under the cloud layer and being sandwiched between it, and the rising terrain, or ending up in a box canyon).


while in our way, the cloud made a nice wave, like surfing inside a crashing wave (this was just as we turned west)
while in our way, the cloud made a nice wave, like surfing inside a crashing wave (this was just as we turned west)

we then got some nice VFR on top all the way back
we then got some nice VFR on top all the way back

and by Oakland, we got under the forming overcast that was starting to cover the bay (incidently, not Palo Alto yet)
and by Oakland, we got under the forming overcast that was starting to cover the bay (incidently, not Palo Alto yet)

2010/08/22 Hospital Prices
π 2010-08-22 01:01 in Osa, Public
After a totally ludicrous $4000 bill the one time I was stupid enough to go to the ER for 4 stitches, a shot, and a few bandaids, I was not optimistic on the hospital bill for my recent surgery.
At hand was: a 5H surgery with related staff and supplies, 1 night in the ICU (which I'm not quite sure I needed since I never was in a critical state, but I suppose better be safe than sorry if money is no issue), and one night in a regular hospital room (all in all I stayed a bit less than 48H).

So, what was the bill? Indeed, it was over $93,000 for just the hospital (my surgeon bills separately, and I may also get a separate anesthesiologist bill and potential lab fees).
While I realize that world class surgeons should get paid for their skill, and hospitals don't run just on good wishes and fresh water, they still cost over 5 times what I'd pay in France for similar service (minus maybe things that would be considered unnecessary).

Now the "fun" part is where the insurance has pre negotiated prices and decides that things are really worth less than what the bill says. From there it goes from $93k to $16k!
Now, $16k is not cheap, but feels not as unreasonable as the first bill. What's disheartening though is that it's likely people without insurance who get billed full price and maybe get a measly 25% discount in the end.
I don't work in a hospital, but I really do wonder how they get to quote such outlandish prices and what happens to people who don't have insurance that will refuse to pay their rate and negotiates the prices way down.

Oh, if you add "supplies", it adds up to $26k billed. I really want to see what supplies I got for $26K worth.
Even over $1650's worth of drugs is steep, but of course that starts with drug companies charging pretty ridiculous prices (which Cigna mostly fully paid).

Anyway, there is a lot of things to fix in the medical industry, but I suppose that's no news to everyone :-(

In the meantime, I can thank Cigna PPO for making this experience mostly a non event financially for me.

2010/08/21 Installing both UBCD (with linux) and UBCD4WIN on a 2GB USB key
π 2010-08-21 01:01 in Linux
First, if you don't know them, it's a mashup of http://www.ultimatebootcd.com/ and http://www.ubcd4win.com/ . Very convenient for recovery of systems.

I wanted to have a USB key that could boot both UCBD and UBCD4Win, the two award winning ultimate boot CDs for rescue and other things. Turns out however that making a bootable USB key is not that simple, XP is not even meant to boot from USB apparently.

To make things simple, UBCD boots with syslinux and UBCD4WIN boots with grub. However, copying the files from UBCD4WIN on a UBCD bootable USB stick does not allow to boot XP from grub anymore (it complains about a missing boot.ini it didn't need before).

After some research and work, here's what I was able to find and come up with. I'd love to be able to just share my image with you, but because of the XP license and requirement that you use your own XP media to generate it, I can't do that unfortunately.

  • Make use ubcd4win image
  • In my case, I already a ubcd4win CD image and didn't want to make a new one since it takes a while, but apparently if you make a new one, there is an option to make it usb compatible ( see http://www.youtube.com/watch?v=jdIKHdcMA0Y#t=6m10 ).

  • make ubcd4win installed/bootable for usb with bartpetoUSB: http://gocoding.com/page.php?al=petousb
  • However this setup forces the windows boot and ignores boot.ini/config.sys and grub, so there is no way to boot anything else that I could find.

  • get grub4dos: http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial and http://sourceforge.net/projects/grub4dos/
  • Then install gldr.mbr/gldr on the USB key (maybe only one is needed)

  • use grub4dos installer: http://www.themudcrab.com/acronis_grub4dos.php
  • The trick is to select disk, not select a file and chose whole disk/don't search floppy. This causes grub to boot instead of ntldr

  • copy ubcd files over (I used an existing ubcd ISO image from http://www.ultimatebootcd.com/download.html and copied the files over to my USB key).
  • I then had to modify menu.lst on the USB key to launch UBCD options too (you'll probably need some ^M's in there when you save it on your FAT filesystem).
  • color black/cyan yellow/cyan
    default /default
    default     0
    timeout     10
    

    title Launch "The Ultimate Boot CD for Windows" fallback 1 find --set-root /ntldr chainloader /ntldr savedefault --wait=2

    title pause

    # doesn't work without patched grub #title UBCD menu #chainloader /boot/isolinux/isolinux.bin #savedefault --wait=2

    title BIOS configfile /ubcd/menus/grub4dos/bios.lst

    title CPU configfile /ubcd/menus/grub4dos/cpu.lst

    title HDD configfile /ubcd/menus/grub4dos/hdd.lst

    title Memory configfile /ubcd/menus/grub4dos/memory.lst

    title Others configfile /ubcd/menus/grub4dos/others.lst

    title Peripherals configfile /ubcd/menus/grub4dos/periph.lst

    title System configfile /ubcd/menus/grub4dos/system.lst

    title Parted Magic V4.10\n Linux distro for manipulating partitions (eg. create, resize). Includes\n TestDisk, PhotoRec, Partition Image...) configfile /pmagic/boot/grub4dos/grub4dos.lst

    title UBCD FreeDOS R1.38 (Based on NwDsk V3.40)\n FreeDOS boot disk used to run many of the other DOS apps on the UBCD. map --mem /ubcd/images/fdubcd.img.gz (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0)

    title User-defined configfile /ubcd/custom/custom.lst

    title pause

    title Reboot\n Reboot the PC. reboot

    title pause

    title commandline savedefault --wait=2 commandline

    title floppy (fd0) chainloader (fd0)+1 rootnoverify (fd0) savedefault --wait=2

    title reboot savedefault --wait=2 reboot

    title Darik's Boot And Nuke v2.0 ~ Submenu configfile /dban-Grub4dos.ini

    title FreeDos map --mem (hd0,0)//Images/freedos.img (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0)

    title GOBACK Removal Tool map --mem (hd0,0)//Images/goback.ima (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0)

    title Memtest86 v3.5 (iso boot) map (hd0,0)//Images/memtest.iso (hd32) map --hook chainloader (hd32) boot

    title NTFS-Dos map --mem (hd0,0)//Images/ntfs4dos.img (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0)

    title Launch "Windows(tm) Recovery Console" fallback 1 find --set-root /cmdcons/setupldr.bin chainloader /cmdcons/setupldr.bin ##################################################################### # write string "cmdcons" to memory 0000:7C03 in 2 steps: ##################################################################### # step 1. Write 4 chars "cmdc" at 0000:7C03 write 0x7C03 0x63646D63 # step 2. Write 3 chars "ons" and an ending null at 0000:7C07 write 0x7C07 0x00736E6F savedefault --wait=2

    Other random links I found:

  • Install WinNT and maybe more (Vista?) from USB key, also add grub/bartpe: http://www.911cd.net/forums//index.php?showtopic=20089
  • Multiboot with usb_multiboot_10.cmd: http://www.911cd.net/forums//index.php?showtopic=20089&st=11
  • More than 2GB key needs the HP usb disk storage option: http://tsukasa.jidder.de/blog/2009/07/29/short-notice-installing-grub4dos-on-usb-thumbdrives
  • Make boot on device bigger than 2GB (not FAT32): http://ubcd4win.com/forum/index.php?showtopic=9668
  • 2010/08/19 MMA surgery, 7 weeks later
    π 2010-08-19 01:01 in Osa
    Ok, this update is going to be boring, but I'm considering myself fully recovered. I can pretty much eat anything at this point, and except for my chin still being somewhat numb (it takes months for it to come back fully apparently), I'm pretty much back to normal.

    All that is left is to move the teeth back to a location that makes sense for my new bite. Unfortunately that will likely take a year or so, but oh well...

    Ah, yes, my sleep. It's definitely better than before, no question about that, although it'll likely take another month or two before I get official scores from a sleep study.

    2010/08/19 Overdue Boat Pictures from Belize Diving Trip
    π 2010-08-19 00:00 in Diving
    They kind of forgot to include the pictures they took of us on the DVD we bought.

    Thankfully one of the passengers was able to get a copy, finally.

    Here are a few highlights:













    2010/08/16 Visit of Disneyland with my Dad
    π 2010-08-16 01:01 in Ntrips, Trips
    Since my dad was visiting and he had seen Disneyworld in the early, and then later days, he was curious to see Disneyland today, since it was the first park he had never seen.

    While I was not in a huge hurry myself, I figured why not? so there we went after a reasonably short flight directly to fullertown airport just 10mn from Disney (closer than LAX and all that crap).



    Disneyland

    I'll give the summary first:
  • The roller coasters, as expected, were not very impressive, but then again it's never been Disney's forte. Space Mountain was otherwise decent.
  • I was really dreading the "it's a small world" rides with dancing puppets everywhere. There were a few, we did 2 and missed 2 (we otherwise did pretty much all the attractions), and it wasn't as bad as I had feared.
  • They were open from 07:00 to 00:00, so 17 hours is actually a lot of time to visit the park if you want to be gung ho about it.
  • We were able to pretty much do all of Disneyland in 1.3 days without pushing horribly (if you really do opening to close, it's likely doable in one day with intelligent use of fastpass).
  • Fastpass is not that bad an idea: you can register for one and only one ride in advance and get a time 1 to 4 hours from now, and then come back later when your time has come and get in with almost no line. That was useful for Space Mountain for instance. You just have to keep in mind that you may not want your fastpass blocked for 4 hours when you could do 2 other 2H wait only fastpass rides during that time.
  • Disneyland actually has a mobile online website where you can check ride wait times with your cell phone without having to go check them out. Neat!
  • All in all, I don't think we stood in line for more than 10mn for most rides. Maybe 20mn for one, and that was it. This was most unexpected (that was both use of fastpass, intelligent ride scheduling, and the fact that they were just not that busy on August weekdays, which was a good surprise).
  • Anyway, here are the picts:




    moderately happy with the ride :)
    moderately happy with the ride :)



    Random pictures:








    The Jedi Training Show was actually fairly good:





    But Asimo in futureland was very cool, I had never seen it in person:






    More random pictures:














    California Adventure Park

    Half morning on the second day, we were done with Disneyland and headed toward California Adventure Park. I went to pick up some fastpass spots for the 2nd World of Color show (which turns out to only be the right to stand in line almost 1H to get a standing spot somewhere in front of the water, not necessarily with a good view of the show. Thankfully we later scored some VIP standing spots after getting dinner at a local restaurant.

    Anyway, back to California Adventure:






    The animated rotated animation lit by strobe was really cool (looks better in real life than my camera video where it flashes a lot, but it gives you an idea):





    We also got a cartoon drawing class:



    ok, I won't quit my day job :)
    ok, I won't quit my day job :)


    Some rides are really good decors, I was impressed:




    They also had a really well made Simbad Musical:






    More random pictures:

    this was a fun elevator ride up and down
    this was a fun elevator ride up and down







    The new 4D shooting show was quite fun
    The new 4D shooting show was quite fun


    My high score, and my dad's
    My high score, and my dad's


    This is the waterfront where the world of color show takes place, it's actually pretty nice:





    And we finished the day with the California Adventure World of Color Show. It was actually quite pretty, and cool to display video on water:








    It was a packed two days, but we pretty much got to see everything in both parks, which for my dad is actually a really good job :)
    Good fun was had by all as they say.

    Disney seen from the sky.
    Disney seen from the sky.


    See more images for Visit of Disneyland with my Dad
    2010/08/15 Visit from my Dad: Harris Ranch, Alcatraz, SF Duck Tour, Beauty and the Beast
    π 2010-08-15 01:01 in Family
    Below are a few picts from my Dad's visit outside of our trip to Disneyland.

    all these years, my dad liked cats, he just didn't know :)
    all these years, my dad liked cats, he just didn't know :)

    nice dinner before visiting Disneyland
    nice dinner before visiting Disneyland

    Coming back from Disneyland, we landed at Harris Ranch for a good lunch:


    more meat parts than I know about
    more meat parts than I know about


    We went to a wine tasting Jennifer was doing at Travieso



    Other random picts:


    My dad had always wanted to visit Alcatraz, so we finally got around to that. They do have a really good audio tour:






    When then did a duck tour of SF, maybe not the best tour ever, but a fun enough way to spend the rest of the afternoon:




    you get to drive the boat :)
    you get to drive the boat :)



    That evening, we then saw Beauty and the Beast, which was pretty good:


    2010/08/14 BestOf Old VA Pictures
    π 2010-08-14 08:52 by Merlin in Public

    I went through my old pictures at VA Linux, and selected a few "best of" category.

    It's a good trip in memory lane if you'd like to indulge :)

    Beer Bashes:






    Funny thing, I still have those two weapons in my cube:


    Eh, we actually built and shipped stuff:








    Oh yeah, that:














    classic T-shirt:




    Chris was always meant to be a penguin :)




    Walt:


    We're not alcoholics :)


    IPO:










    Can't argue with the logic:




    Don Dugger, classic:


    San, my man:


    Getting hardware from the trash:






    Allhands:




    Funny slide:


    new buildings:


    who's the ice cream man?


    Xmas:












    Jeremy, you make me horny:


    Steve, the master cook:


    Chris Antilla/and Theresa Marie, Chili Judges:


    For those who were there, our scooter and chair race around the track:




    (I won the chair race by the way :) )

    And in no time, Engineering was let go, Walt doing BBQ for us:


    Josh, and his many hawaiin shirts:






    We didn't quite come close:


    Morale was high:












    VA hemoraging staff:






    Aaah, Leanne :)




    You look good Steve:






    Oh man, Brian was stoned big time


    Oh, well, maybe it wasn't just him:




    Hair to impress:












    Jeremy, I think of you at night still, and I wish I didn't :)


    Ah, our new CFO, she was cool, I liked her. Too bad she picked the wrong company:


    Yes, TM, you look good too :)




    Classic Linuxworld:


    And that's all folks, fun memories, good times :)

    The rest of BestOf is here and all the pictures are there.

    2010/08/14 Overfly of Rancho San Antonio with Multiplex Cularis and GoPro HD
    π 2010-08-14 01:01 in Rc
    I had been doing some gopro flights with my minimag, but it just wasn't a great idea because:
  • The minimag is just too small and hard to see from a distance, which is why I already lost one plane and camera after losing the plane because it was too small after it got caught in a strong wind.
  • The minimag needs a lot of power to stay airborne with the weight of the GoPro HD. The wing loading is just really high with that extra weight, and my last flight where the motor died on final, I barely managed to land while dropping from the sky at what felt like less than a 2/1 glide ratio.
  • A byproduct of the minimag's wing loading means that I have to run on power at all times which causes both noise and vibration, neither are ideal for filming.
  • That also means that I can't run the battery that long and the flights aren't much longer than 10mn.
  • If I do lose the plane, better lose a much bigger one that's easier to find in the weeds :)
  • The one issue with the Cularis is that it has no landing gear, when putting the camera under the plane, that's the first thing to hit the ground on landing, which ain't ideal (I saw someone who put the camera under one wing and used a counterweight, but the view isn't as good.
    I ended up putting the camera under the plane with some foam to protect it and planned to land in the weeds. For my 2 flights, that worked fine although it wouldn't work as well if I had to land in a parking lot :)


    My first flight (video below) was 16mn and went fine. The second flight lasted a whole 25mn, although that was pushing it, the battery died just as I was landing (i.e. I got lucky :) ).

    I took some 3Mpix shots from the video, a few are below:

    the flying field
    the flying field


    hwy 280
    hwy 280

    the next door cemetary
    the next door cemetary

    another nice view of the cemetary
    another nice view of the cemetary

    they have a nice array of solar panels
    they have a nice array of solar panels

    nice houses next door
    nice houses next door


    why do people fill their garages with junk and park outside?
    why do people fill their garages with junk and park outside?


    Here is the video of the first flight:

    2010/08/13 Fine grained house-wide power monitoring with Brultech ECM1240, ecmread.py (with net metering support), and graphing with cacti
    π 2010-08-13 00:00 in Computers, Linuxha, Solar

    Introduction

    Until recently, I had a Brand One Powermeter to measure PG&E Meter, PV system and my AC. It was bulky, unreliable, and impossible to reprogram. In other words, it was a poor and expensive solution. That said, I still got some data and reasonable graphs from it as per this earlier blog post.

    But let's be honest, I really didn't like that monitor and wanted to ditch it. After some research, the ECM1240 is the best feature/cost ratio power monitoring device I found (as of 2010). As of 2019, the ECM1240 is now obsolete and replaced by the Greeneye, see below:

    _Note, there seems to be a better monitor now, the Greeneye._ You may want to have a look at Brultech Greeneye.

    Why is it better than the alternatives?

  • you can monitor 7 (!) channels plus voltage for less than $200
  • you can use multiple devices to monitor more than 7 channels (I monitor 20 in my panel)
  • it comes with multiple CTs to chose from, from highly accurate high current split CTs or TTs to small quarter sized CTs that are appropriate for monitoring all your smaller loads behind each of your circuit breakers
  • you can monitor let's say 6 circuit breakers as one channel (like 'all lights').
  • the data gatherer can be connected to your computer via serial port (what I used), ethernet, or wireless (for comparison the TED device, aside from being a single channel device, can only communicate over your power lines, which is unreliable and almost a guaranteed disaster if you use X10 or insteon home automation).
  • the owner is helpful is responsive to intelligent questions
  • while the software is meant for windows, data can be gathered on linux or any OS that can run python (i.e. just about anything) thanks to ecmread.py provided in this page.
  • Here's what it looks like:

    the whole system
    the whole system

    I calibrated the TTs vs the split 60CTs and the small CT-40s by comparing measurements of the same load
    I calibrated the TTs vs the split 60CTs and the small CT-40s by comparing measurements of the same load

    the 2 white boxes are the ECMs1240s, but I also have my older and bigger brand one power meters in there
    the 2 white boxes are the ECMs1240s, but I also have my older and bigger brand one power meters in there

    the small donut CT-40s are great, they take no room at all
    the small donut CT-40s are great, they take no room at all

    After getting this installed, I was able to get data on linux after I got a working but incomplete (for me) ecmread.py from prior authors, Brian Jackson, Kelvin Kakugawa, and Amit Snyderman. I modified it to support net metering and show high precision data as required by proper per second graphing in cacti.

    Code

  • Here is a link to my improved ecmread.py.
  • And is here my ecmread logfile to cacti/rrdtool converter.
  • My init script
  • My script to add labels to each channel
  • My generic page with logfile to cacti converters.
  • Gratuitous Graphs :)

    Ok, first you can find all the graphs here: all regular owfs derived graphs.
    And here are the interesting composite graphs.

    So, US houses come with 2 120V phases. Now, if you wanted 100% exact wattage measurements, you'd have to measure the voltage on each and every circuit breaker you measure, but in reality measuring each phase is close enough.
    In real life, measuring amps on one phase with voltage from another phase will only give you about a 1-2% error at worst, so it's not a lot to agonize about. In my setup I tried to measure phase 2 loads on my ECM that's plugged into phase 2 power, but wasn't fully able to do it, and it's not meaningful when you measure 240V loads anyway.

    This is what the phases look like, as the graph shows phase 1 typically gets more power than phase 2 for me, but depending on the load in my street and my house, they sometimes become close or equal:

    Of course, I have a lot of single interesting graphs. Can you tell when my disk to disk backup completed? :)

    More importantly, and worryingly, compiling the same kernel took 30mn and 20W on my dual core duo laptop:

    While compiling the same kernel on my dual Xeon P4 server took 2H and 80W-ish:

    Another interesting graph was charging a 12V marine battery for my UPS:

    Thanks to this graph, I was able to find that my TV and speakers took 30W when off. I got a smart power strip that turns them off totally and saved about 30W off my base load:

    Ever wonder how much power your fridge is really using?

    So, how much power does AC use? Well, not only 3500W for AC, but another 1000W for the whole house fans:

    A cool graph showing House Power Use (calculated) from PG&E meter and PV production probe:

    And for the money shot, all the house uses combined on one graph:

    And the same graph, but with AC that was activated:

    Setting up cacti

    See my cacti config page.

    Now, the tricky part is creating graph items that do not exist (like house use, or unmonitored house use). See this post I made on how to do this.

    The other tricky part is that I had my ECM graphs setup to refresh every 10 seconds, which is faster than the cacti poller which runs every minute. This post explains how I did a faster than 1mn refresh in cacti

    2010/08/10 Linuxcon 2010
    π 2010-08-10 01:01 in Linux
    The 2nd Annual LinuxCon, aka the new OLS, was in Boston this year. I was invited to speak about svn and source control systems.

    While the conference is still young, they did a good job and attendance was good.



    my source control system was _this_ big :)
    my source control system was _this_ big :)


    software patents are both interesting and depressing
    software patents are both interesting and depressing


    I remember vmware 1.0 :)
    I remember vmware 1.0 :)

    the questions on geeks vs nerds were a bit disappointing though
    the questions on geeks vs nerds were a bit disappointing though

    It was cool to have run into Maddog again. It had been 14 years since we first met.

    Maddog and me 14 years later
    Maddog and me 14 years later


    that was the linux pavillion at Comdex in 1996
    See more images for Linuxcon 2010
    2010/08/06 Boston Science Museum
    π 2010-08-06 01:01 in Sciencemuseums
    The science museum in Boston was really cool. They have the biggest Van Der Graph belt driving generator in the world, which is understable considering it was built by its inventor at MIT which then donated it to the museum.







    They also had a nice butterfly exhibit:



    this is what they look like when they're very old
    this is what they look like when they're very old

    this one landed on my pants :)
    this one landed on my pants :)

    See more images for Boston Science Museum
    2010/08/06 Visiting Boston
    π 2010-08-06 01:01 in Ntrips, Trips
    Since I was going to be in Boston for linuxcon, I used the opportunity to have a look around, and there is a fair amount to see in Boston, especially if it's not covered with snow :)

    I snapped a few nice shots from the plane:



    I then had a weekend in Boston before the conference. Below are a few random pictures from Boston.


    ok, they have somewhat historical buildings :)
    ok, they have somewhat historical buildings :)





    duck tour :)
    duck tour :)









    french dinner for our anniversary
    french dinner for our anniversary



    no, I don't have a DSLR or even a tripod :)
    no, I don't have a DSLR or even a tripod :)

    The Aquarium wasn't fantastic, but it wasn't bad. Their big tank that you can walk around and see from different 'depths', including the top where they have some giant turtles, is pretty cool.




    The science museum, however, was really cool. They have the bigger Van Der Graph belt driving generator in the world, which is understable considering it was built by its inventor at MIT which then donated it to the museum.





    They also had a nice butterfly exhibit:



    this is what they look like when they're very old
    this is what they look like when they're very old

    this one landed on my pants :)
    this one landed on my pants :)

    Next, I got a nice tour of MIT, which was definitely interesting.


    One fun thing MIT students do from time to time is a so called hack, doing something impressive and/or mind-boggling like putting a cop car on top of their main building

    that was a few years ago, this is how cop cars looked back then
    that was a few years ago, this is how cop cars looked back then

    putting it on top of the dome must have been hard, it had to be helicoptered down
    putting it on top of the dome must have been hard, it had to be helicoptered down




    new cop cars
    new cop cars

    A few cool picture from the MIT museum where the same exact picture seen from close and far looks different (look at your laptop screen from a distance to see):




    Harvard had a much nicer campus as seen from the outside though:




    and yes, they have their own cop cars too
    and yes, they have their own cop cars too

    A few pictures from a cruise dinner:





    I got lucky with this one considering it was handheld from a moving boat
    I got lucky with this one considering it was handheld from a moving boat

    All in all, it was a very nice city to visit during the summer.

    See more images for Visiting Boston
    2010/08/06 Temperature, moisture, humidity, and UV monitoring and graphing with 1wire devices, owfs, and cacti
    π 2010-08-06 00:00 in Computers, Linuxha

    Introduction

    In a prior post, I wrote about using digitemp to talk to 1-wire temp sensors.
    Digitemp is a good first choice if you only care about temperature since it's already available in most linux distributions, and it's pretty easy to setup. However, digitemp is fairly limited: first it does not support anything but temperature, and one humidity sensor (with only one convertion table, and there are several depending on which one you end up buying). On top of that, the humidity sensor only works with the serial interface and not the USB one.

    1-wire supports a lot more than just temperature, including several kinds of humidity sensors, a moisture sensor which can be used to measure the amount of watering needed for your lawn, and outdoors UV and solar intensity sensors (available from hobby boards).
    1-wire also has weather stations, but you do have to worry about your pole with the wind sensor being hit by lightening that would then be channeled back inside your house and to your computer (not good). Also, I have not found 1-wire weather stations to be price competitive with an Oregon Scientific WMR968 which is wireless and can be directly connected and read from via its serial port on linux and through misterhouse.

    http://www.hobby-boards.com/catalog/index.php?cPath=22

  • wind: $140 (95+45) (or some more expensive $225)
  • baro: $60
  • humidity/solar x2 (indoors/outdoors): $120
  • rain gauge: $93
  • then add wiring and a possible hub ($50)
  • This gives you a total of $493. For comparison an oregon scientific WMR968 weather station costs $200 (see this thread for details on that) and my WMR 968/rfxcom page for my setup.

    After switching from digitemp, I realized that my single bus described here was really stretching the limits of a single bus. I therefore ended up adding a hub.

    What you need to know about the hub is that you get 6 buses split off your original bus (i.e. you get 7, one is the original bus passed through but with bus power added, and there are 3 1-wire switch chips with a MAIN and AUX sub bus each, effectively giving you 6 more busses). The Hobby-Boards 1-wire hub, which is the one I bought, injects regulated 5V power and unregulated 12-24V power for some special outdoors 1-wire devices on all the ports, including the pass-through one.
    Having a powered bus with 5 and 12-24V allows the use of some special 1-wire devices like the moisture meter, and the UV sensor.
    If you go with the hobby-boards hub, you should plan to wire like they do to make your life easier: hobby boards wiring chart.
    .

    1-wire basic setup

    I talked about what to buy, and how to wire on my last Temperature monitoring and graphing with 1wire devices, digitemp, misterhouse, and cacti post. Go read that section.

    1-wire and star technology

    If you have a wiring closet where all your cables come back, you have a star topology. With a hub, you can have up to 7 branches, which may be enough for you. If however you need more than that, when you use the wiring chart from hobby-boards, I recommend that you use pair 3-6 as a return for pair 4-5: i.e. you send signal down your cat-5 to some location and then you connect 4 to 3 and 5 to 6 at the end point. You then connect 3 and 6 to 4 and 5 of your next Cat-5 run elsewhere in your house.
    When combining this techique and the 7 branches you get from a hub, this should give you more than plenty branches from your network closet.


    Hobby Boards 1-wire UV meter

    I added the Hobby-Boards UV sensor to my roof 1-wire bus now that it had bus power added to it after I got the hub, and I used cella-wrap to make sure water wouldn't get in the box or touch the 1-wire device wires and create a temporary bus short. The UV board also has a built in temp sensor, but the weatherproof box it comes with will act as a greenhouse somewhat, so the temperature read by that sensor will be higher than normal (it is used for UV readout temp correction). If you don't care about UV index as much and would like outside humidity level, you may want to consider the humidity/temp/solar sensor instead (I get outside humidity through my WMR968 Oregon Scientific Weather Station, so I didn't care to have that in my outside 1-wire sensor).

    UV sensor in mostly water proof box
    UV sensor in mostly water proof box

    gets inside the attic through a water proof hole
    gets inside the attic through a water proof hole

    Hobby Boards 1-wire Moisture Meter

    The moisture meter has a temp sensor on the moisture meter control board, but it is unfortunately not used to correct the moisture readings from the moisture probe (this sensor does have a moisture value that can vary up to 50% when fully wet between temperature extremes). Thankfully in real life, your soil temperature deeper down should not change too much and affect the reading too much.
    I then buried the control board too so that it could be used as a soil temperature sensor.

    moisture meter
    moisture meter

    the trick was not to bury the sensor too deep: just as deep as my grass roots
    the trick was not to bury the sensor too deep: just as deep as my grass roots

    protecting the board from water
    protecting the board from water

    regular DS18B20 outside temperature probe in the shade
    regular DS18B20 outside temperature probe in the shade

    The temperature graph is not super exciting, but still good info. It's reassuring that the dirt temp doesn't change much and therefore the moisture readings won't be foiled much:


    The moisture readings are more useful and for instance this graph shows how I wasn't watering enough, and turned up the sprinkler times a little bit so that the humidity ends up at a reasonable state:


    But the really interesting graph is seeing soil humidity over soil temperature (green) and outside temperature (red):


    what this graph shows is outside temperature obviously affecting soil temperature a little bit, and when soil temperature goes up on a wet sensor, it brings up the moisture reading somewhat unfortunately.
    Similarly, from the 1-wire side, you don't see a humidity percentage, but a negative current value

    cat /etc/owfs/moisture/35\ Front_Lawn/current; echo -1.35875

    I looked at the range of values I typically get for full dry and full wet, and this is definitely sensor and board dependent. There is also the problem that the hobby-board design up to 2010/05, did not have a ground loop isolation transformer (without which the sensor would behave erratically as soon as you put it in the ground). Once you add the isolation tranformer, it does change the current values for dry and wet though, so each person may have to compute their own. Unfortunately I've seen my sensor briefly return values all the way to -2.55 instead of the typical wet -1.74
    See the owfs moisture sensor page I wrote for details on this.

    This is the code I use for now:

    # 0.56625/0.5675 bone dry, but once got 0.335625.
    # glass of water yielded 1.74 but I've sometimes seen 2.555. What to use?
    my ($min, $max) = (0.33, 2.6);
    

    # value should be temp ajusted in an ideal world, but I don't have correction tables. $value *= -1; $value = $min if ($value < $min); $value = $max if ($value > $max); $value = (100 * ($value - $min) / ($max - $min));

    I've struggled on finding the upper value. First, I got -1.74 but eventually I sometimes got -2.55 out of the blue for a few samples, which yielded some clipping, so I changed the max value from -1.74 to -2.6 at noon on this graph, explaining the sudden dip. You can however you can see on the left the jump to 100% when the sprinklers were started:


    Despite the sensor being noisy, temperature dependent, and hard to calibrate, the overall graph is still useful enough to show whether your sprinklers are keeping the dirt moist enough, or if your overall moist is just going down (bad).

    Owfs setup

    But back to 1-wire and owfs, owfs is more work to setup but it's just the way to go if you want anything more than temperature monitoring.
    You need to start by getting the latest source code from http://www.owfs.org/, and compiling it. /configure --enable-debian did the right thing for me, but you need to make sure you have the right headers on your system

    I wrote this script, read_owfs that reads from an owfs symlink tree and generates a digitemp looking logfile so that it's easy to parse the logfile later with the same code regardless of whether you use digitemp or owfs to capture the data.

    owfs with a hub is a bit "interesting" since you have to find your devices in subtrees, which is why I made a symlink tree to make my life easier. I setup a symlink for each hub port and a chain name to point to each of the 3 buses' AUX or MAIN branch. This is what it looks like:

    /etc/owfs/bus1 -> /owfs/1F.F05005000000
    /etc/owfs/bus2 -> /owfs/1F.E25005000000
    /etc/owfs/bus3 -> /owfs/1F.E15005000000
    /etc/owfs/chain1 -> bus2/main
    /etc/owfs/crawlspace_chain -> bus2/aux
    /etc/owfs/dining_chain -> bus3/main
    /etc/owfs/roof_chain -> bus1/aux
    

    /etc/owfs/humidity/56 Hall_Closet -> ../chain1/26.2E4DF5000000/HIH4000 /etc/owfs/moisture/35 Front_Lawn -> ../crawlspace_chain/30.131A62120000

    /etc/owfs/temperature/11 Family_Room -> ../chain1/10.A8D1ED010800 /etc/owfs/temperature/12 Living_Room -> ../chain1/10.52D1ED010800 /etc/owfs/temperature/15 Garage -> ../chain1/10.2223EF010800 /etc/owfs/temperature/21 Attic -> ../roof_chain/10.5DE1ED010800 /etc/owfs/temperature/22 Roof -> ../roof_chain/10.94A2ED010800 /etc/owfs/temperature/23 Outdoors_Roof -> ../roof_chain/28.57B659020000 /etc/owfs/temperature/25 Roof_UV -> ../roof_chain/EE.E749CB010800 /etc/owfs/temperature/31 Crawlspace -> ../crawlspace_chain/10.F9F3EE010800 /etc/owfs/temperature/32 Outdoors_Crawlspace -> ../crawlspace_chain/10.D1D0ED010800 /etc/owfs/temperature/35 Front_Lawn -> ../crawlspace_chain/30.131A62120000 (...)

    This is how I start owfs and the xpl-owfs gateway:

    gargamel:/etc/owfs# cat /etc/init.d/owfs 
    #!/bin/sh
    case "$1" in
      start)
            umount /owfs 2>/dev/null
    	# serial
            /opt/owfs/bin/owserver -d /dev/DS9097U -F --error_print 0 --error_level 1 --nozero
    	# usb
            #/opt/owfs/bin/owserver -u -F --error_print 0 --error_level 1 --nozero
            /opt/owfs/bin/owfs    -F -s localhost:4304 /owfs --nozero
            /opt/owfs/bin/owhttpd -F -s localhost:4304 -p 8082 --nozero
    	# this comes from xpl-perl, reads /owfs devices and relays their data periodically
    	# over XPL, where they can be relayed to misterhouse.
            xpl-owfs --interface eth1 --owfs-mount /owfs >/dev/null &
            ;;
      stop)
            pkill -f '/opt/owfs/bin/owfs'
            pkill -f '/opt/owfs/bin/owserver'
            pkill -f '/opt/owfs/bin/owhttp'
            pkill -f 'xpl-owfs'
            ;;
      restart|force-reload)
            $0 stop
            $0 start
            ;;
      *)
            echo "Usage: owfs {start|stop|restart|force-reload}" >&2
            exit 1
            ;;
    esac
    exit 0

    Gatewaying 1-wire data to misterhouse

    owfs-xpl is a good way to relay 1-wire data to misterhouse via its XPL gateway as opposed to reading owfs directly since you're assured not to hang.
    This is how you setup devices in misterhouse:

    XPL_SENSOR, bnz-owfs.*:10.2223EF010800, garage_temp, , temp
    XPL_SENSOR, bnz-owfs.*:28.3359C7010000, freezer_temp, , temp
    XPL_SENSOR, bnz-owfs.*:28.998D4D020000, computer_closet_temp, , temp
    XPL_SENSOR, bnz-owfs.*:26.2E4DF5000000, hall_closet_temp, , temp
    XPL_SENSOR, bnz-owfs.*:26.2E4DF5000000.1, hall_closet_humidity, , humidity

    If you use xpl-owfs, adding .1 behind a humidity value lets it pick another DA converter between the default one in owfs: .1 for HIH4000, and .2 for HTM1735 (it makes a difference since the analog value is turned into a different moisture percentage value as a result).
    Here's what it looks like and the patch for xpl-owfs if you are not running a recent one with that support:

    gargamel:~# grep . /owfs/26.2E4DF5000000/{.,*}/humidity
    /owfs/26.2E4DF5000000/./humidity:     58.8895
    /owfs/26.2E4DF5000000/HIH4000/humidity:     60.5681
    /owfs/26.2E4DF5000000/HTM1735/humidity:     56.8768
    

    --- /usr/share/perl5/xPL/Dock/Owfs.pm.orig 2010-04-17 09:08:43.000000000 -0700 +++ /usr/share/perl5/xPL/Dock/Owfs.pm 2010-04-17 09:25:25.000000000 -0700 @@ -154,6 +154,8 @@ foreach my $dev (@$devices) { foreach my $rec ([ "temperature", "temp" ], [ 'humidity', 'humidity' ], + [ 'HIH4000/humidity', 'humidity', 1 ], + [ 'HTM1735/humidity', 'humidity', 2 ], [ 'counters.A', 'count', 0 ], [ 'counters.B', 'count', 1 ], [ 'current', 'current' ]) {

    Once you have misterhouse configured to receive XPL messages, with those in mh.private.ini:

    ipaddress_xpl_broadcast = 192.168.205.255
    ipaddress_xpl = 192.168.205.3
    # this is how you turn it off
    #xpl_disable = 1
    # if you are using a better XPL hub, turn off the mh built in one
    #xpl_nohub = 1

    Then, you can simply read owfs values in misterhouse via XPL like so:

    my $compcloset_temp = $computer_closet_temp->state()
    (there is one caveat there: misterhouse does not currently have a timer to remove the temperature value if you aren't getting updates from xpl/owfs)

    Note that there are other ways to read owfs in misterhouse, namely:

  • via xAP (just like xPL, but unless you're already using xAP for something else, don't bother with it)
  • iButton code in MH if you use the iButton 1-wire interface as opposed to a DS9097U (serial) or DS2490 (USB)
  • Owfs_item code in MH from Jim Duda. This one talks to owfs via its owfs_server daemon and perl bindings, but I've found this to be had to get to work because the owfs perl bindings haven't been reliable for me. Jim actually recommends using xPL for new installs, but if you want to try his code look at thread #1 (you need to open the messages after this one) and thread #2.
  • The summary of the threads I posted however is that xPL and xpl-owfs are the way to go for reading owfs sensors in mh.

    Feeding data in cacti / code

    Now that you have data available in /etc/owfs/*, and being sent to misterhouse via xPL, you can (and should) log it to a file.

    I have written two scripts for this:

  • read_owfs reads owfs data from a symlink tree in /etc/owfs/ and populates a digitemp looking file in /var/log/temperatures.
  • cacti_owfs reads a digitemp or owfs derived /var/log/temperatures file and converts it into rrdtool data or cacti compatible query data.
  • The second script is the important one which can generate cacti data or help you regenerate/build an rrdtool RRA file from scratch if you add fields or change your data format (my recommendation is to plan ahead and add extra fields in your RRD file for probes you might add later (you can't add fields after the fact without regenerating the entire file and refilling it with all the data from time 0, so it's better to plan ahead and get it right the first time, and a good way to do that is to just add extra fields that you're not using yet but can use later) ).

    For more details on cacti integration, see my Gatewaying 1-wire, XPL (Oregon Scientify Weather), Brultech ECM1240 Power Data, and Brand OneMeter Data to cacti page.

    cacti_owfs can also be used for feeding data in an rrdtool after the fact (--dump-cacti) and used like so:

    sort -u < dump | time xargs rrdtool update $RRD --template `cacti_owfs --cacti-dump-header`
    (after having freshly re-created the RRD and make sure you use --start 1271572300 with the right second value that's just before the first one in your dump).

    Setting up cacti

    See my cacti config page.

    Gratuitous Graphs :)

    Ok, first you can find all the graphs here: all regular owfs derived graphs.

    And here are the interesting composite graphs.

    I keep track of the humidity in our wine closet. This chart shows when I refilled the evaporation water plate:


    AC run on a warm day:



    I was curious to know if our old fridge in the garage was having unreasonable and too frequent on/off cycles. The old garage fridge does run a bit warmer but doesn't cycle that much more often than the new one, so I'm not as worried about it dying soon as much (it does take a fair amount of extra power though, being 10 years older):


    Interestingly enough, it is actually the newer kitchen freezer which has occasional big temp jumps to >50F.


    And this lets me keep track of temperature and humidity in our wine closet (the good news is the water plate in the closet does keep humidity higher compared to the house humidity level):


    2010/08/06 Booster Fans and Heating/Cooling with Outside Air with Misterhouse
    π 2010-08-06 00:00 in Computers, Linuxha

    Introduction

    So, my plan was to be able to use outside air to cool the house at night during the summer without leaving doors and windows open on one hand, while being able to boost or shutoff air to the master bedroom depending on the time and boost HVAC air to the family room which gets the warmest but is also the hardest to cool since it's at the end of the line.

    Boosting air is simply done by adding booster fans to the right ducts, but controlling the fans at the right time is where it gets interesting: I wanted to be able to decide not to turn on the booster fan to the bedroom during the day (waste of air) and not bother with trying to heat/cool the family room at night either since the master bedroom needs the air more than the family room.
    The astute reader will note that this is usually done with dampers, but the furnace we have is older and would require a pressure return for extra air if only one room were targetted, and dampers just add more money and complexity when I already wanted booster fans. The trick is that booster fans can act as semi dampers when they're not running, which is good enough.

    Now, the main goal was however to be able to pull air from the outside and bring it in the house. This was accomplished with the same 2 booster fans to create suction this time and 2 dampers do redirect the air from the furnace output to ducts that go outside the house.

    that was a few parts :)
    that was a few parts :)

    damper closed
    damper closed

    damper opened (notice the 2 small wires which got to my 1-wire 8 channel IO board)
    damper opened (notice the 2 small wires which got to my 1-wire 8 channel IO board)

    So, to cool down the house (or bring warm day air in during the day in the winter), I need to:

  • close the air coming from the furnace with a damper
  • open the air coming from outside with another damper (both happen at the same time)
  • turn on one or two of the booster fans to suck air from outside
  • make sure that at no time my HVAC system actually decides to turn on too, and if it does reset the dampers to allow air from the furnace (which is also the AC).
  • automatically do the above when there is a suitable temperature difference between inside and outside.
  • For normal operation, I have 2 HAI RC-80 and RC-90 thermostats, one for the house and one for the master bedroom. Depending on which one triggers, the booster fan to the appropriate zone should activate too.

    Do you have a zone board that can do all this?
    If so, how many hundred dollars is it and do you need to call an HVAC person with proprietary software to reprogram it?
    Do the inside and outside temperature probes cost $3 each, or more? :)

    If you want to skip ahead, this is the misterhouse hvac code I was able to write to control the hvac system.

    Implementation with Misterhouse

    This is where misterhouse comes in again, I can program absolutely any logic I want and mostly with sensors and actuators that cost a lot less than typical overpriced HVAC parts.
    The bits that came in play were:

  • HAI RC-80 thermostat which I can query for status (cooling/heating/HVAC fan on or off?) from misterhouse thanks to the code I wrote earlier (see my misterhouse HAI code). Actually I also use that code to know the temperature in the bedroom (which I could also get with a 1-wire sensor).
  • 1-wire temp sensors inside and outside the house. This is obviously useful to know whether air outside is the right temperature for bringing in, or not (see the Temperature, moisture, humidity, and UV monitoring and graphing with 1wire devices, owfs, and cacti for details on the owfs setup.
  • 1-wire 8 Channel I/O board which I use to control 24VAC to the dampers. One is normally closed and the other one normally opened. They each only need about 250mA to be held in the other position, so a single 500mA 24VAC power supply going through a relay on the 8 Channel I/O board is good enough. See my owfs 8 channel I/O page
  • 2 X10 (or Insteon) remotely controlled plugs to turn the booster fans on or off.
  • Here's a picture of the 1-wire 8 Channel IO board


    I then added some 1-wire temp sensors inside the ducts to confirm the temperature of the air going through them, and that's it. All that was left was some code, which you can find below.

    When both duct fans are running, the power graph shows they use 300W:


    Here is a temperature graph of cooling with outside air without using the AC showing a 5 degree decrease for dining room/family room:


    and for comparison cooling with just the windows open, which I don't quite want to do anyway (compare the family and diving room temps which only go down by 2 and 1 degree).


    For yet another comparison, the following link is a test with only the family room duct fan running (and not the bedroom one): that was a 3 and 1 degree decrease for the dining room/family room. Not as impressive.



    Yes, booster fans do require some electricity to run (150W a piece or so), but for comparison, AC is 3000W just for the AC, to which you have to add 1000W for for furnace whole house fan and then the 150W for the booster fan:



    At least, as a bonus, we do now get more cold air to the family room with the booster fan when we do run the AC, so we reach our target temperature more quickly.

    Top/Hvac Damper Open to Close Video (click me)
    Top/Hvac Damper Open to Close Video (click me)

    Scripts/code

    Here is my misterhouse hvac script that controls the booster fans and outside air intake depending on inside, outside temperature and HAI thermostat status.

    2010/08/03 Spinning Down WD20EADS Drives and Fixing Load Cycle
    π 2010-08-03 01:01 in Linux
    Like others, I've had the problem with my WD20EADS's load cycle is shooting through the roof (I'm already past a tenth of its parking/unparking lifetime (130,000 Load Cycles) after just a few months of use). This is apparently a problem with many recent WD green drives.

    One would think that hdparm -S 254 /dev/device or something close would take care of it like it would on any laptop hard drive that supports head parking, but no.
    Western Digital: what's up with this? Why does your firmware have to be so different and auto head parking after 6 (or is it 8?) seconds not be turned off?

    Now, there is an unsupported and technically "void your warranty" solution (which is ironic considering that not doing anything will kill the drives and cause warranty returns within about 1 to 2 years for me): wdidle3 from their site and also wdspinup .

    Now, the other problem is that those are green drives and they were taking more power than my other drives because I could not spin them down (I don't use my drives more than a few times a day in a machine where they are on all the time).

    The sad thing is that my solution to this was to write a quick program that checks whether the drive has been used recently (using iostat) and manually spin it down with hdparm -y if it has not.

    You can get swdisksusp.

    2010/08/01 My House is Sold
    π 2010-08-01 01:01 in Public
    My old house closed last thursday, and Chen-Chen Wu did an awesome job fixing up the house before selling, getting it nice and pretty, and finding the best buyers available and the best price for now.

    I met the buyers today (and old retired couple downsizing from Palo Alto and getting cash out) to help them setup the phone lines via the patch panel and their DSL modem (I have DSL freqs split outside and sent in the wiring closet on a special plug, something they'd not have figured out themselves). I also gave them a primer on X10 lighting and programming, and it was a bit more tech than they were used to, but they were happy.

    I know I could have kept it as an investment, but that was just more hassle than I was willing to deal with. I have enough other things that can take my time already :)


    More pages: November 2024 October 2024 September 2024 August 2024 July 2024 June 2024 May 2024 April 2024 March 2024 February 2024 January 2024 December 2023 November 2023 October 2023 September 2023 August 2023 July 2023 June 2023 May 2023 April 2023 March 2023 February 2023 January 2023 December 2022 November 2022 October 2022 September 2022 August 2022 July 2022 June 2022 May 2022 April 2022 March 2022 February 2022 January 2022 December 2021 November 2021 October 2021 September 2021 August 2021 July 2021 June 2021 May 2021 April 2021 March 2021 February 2021 January 2021 December 2020 November 2020 October 2020 September 2020 August 2020 July 2020 June 2020 May 2020 April 2020 March 2020 February 2020 January 2020 December 2019 November 2019 October 2019 September 2019 August 2019 July 2019 June 2019 May 2019 April 2019 March 2019 February 2019 January 2019 December 2018 November 2018 October 2018 September 2018 August 2018 July 2018 June 2018 May 2018 April 2018 March 2018 February 2018 January 2018 December 2017 November 2017 October 2017 September 2017 August 2017 July 2017 June 2017 May 2017 April 2017 March 2017 February 2017 January 2017 December 2016 November 2016 October 2016 September 2016 August 2016 July 2016 June 2016 May 2016 April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December 2011 November 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 October 2003 August 2003 July 2003 May 2003 April 2003 March 2003 January 2003 November 2002 October 2002 July 2002 May 2002 April 2002 March 2002 February 2002 November 2001 October 2001 September 2001 August 2001 July 2001 June 2001 May 2001 April 2001 March 2001 February 2001 January 2001 December 2000 November 2000 October 2000 September 2000 August 2000 July 2000 June 2000 April 1999 March 1999 September 1997 August 1997 July 1996 September 1993 July 1991 December 1988 December 1985 January 1980

    Contact Email