| drewp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| drewp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
[link] I got an account with the site that distributes the sensor data from the loops in the freeways (pictured here). Here's the first hack, a boring map of the sensors with 10% of the speeds labeled. Code is in darcs. This screenshot shows my map on the right; a comparable sigalert screenshot on the left. [link] 2008-06-12T19:48:18 Garage door power usage: Kelsi and I wondered how much power the garage door opener uses, since we often use it on days when we ride our bikes. I plugged it into a little power meter. The surprise is that the motor runs at 650W and the lights afterwards use 120W. A full garage-open-close event uses a lot more power to shine the light than to open the door. I hope the solution will be to remove the light, run some home automation network to the garage, and computer-control all the garage lights and door. E.g. "when you know I biked to work, and it's now the evening, and the bluetooth sensor sees my cell phone nearby: open the door and turn on the light exactly long enough for me to get inside, as measured by the sensor on the door inside the house". Our garage door opener also uses 3W when it's idle :( [link] This is not the first time I've been completely lost in the RTM UI. On this page, I have no idea what's going on. Dying of curiosity, I made some groups: I now learn that the top box on the right displays some info about the group that I'm hovering over in the main list. I still don't know how to add members to a group that I've made. I have "1 contact and 2 groups selected", but there seems to be nothing to click that would affect the membership of any groups. Dare I suggest that the behavior of groups (they contain users) be reflected in the visual layout of the page (the depiction of a group contains depictions of users)? Finally, we're out of laundry soap, so please get some if you go to a store before I do and you're Kelsi. [link] 2008-05-30T23:38:37 Communicating with sunspots: I finally found that my SunSPOT manager wouldn't find its devices correctly because a shell script (!) that's supposed to gather the device names wasn't working on linux. Neither were two other alternative shell scripts I found in the forums, so I ported the best-looking one to python. Now it doesn't error, and it actually got a few lines shorter during the port. There's really no reason to write 75-line shell scripts when the target machine is a modern OS with the usual stuff (e.g. python) working. My prize for getting the device communication working was that I was able to run netbeans, open the AirText project, and deploy it to a sunspot. BTW, the demo code is over at https://spots-sdk-demos.dev.java.net/servlets/ProjectDocumentList, which was surprisingly hard to find. I really thought that when I was at Maker Faire, one of the Sun guys was saying "all the sunspot stuff is free and open, all the code, firmware, schematics, etc." But apparently that's not the case-- even the device manager code is still closed-source, which made it all the harder to figure out that a "StringIndexException: -1" was the tool's way of saying that it was choking on some extra stdout verbosity from my spotfinder python port, even though the comments in other spotfinder versions suggest that only the output on stderr matters. [link] 2008-05-27T22:22:06 emacs scroll keys: I like making the keypad plus/minus keys scroll my emacs window without moving the cursor. For ~/.emacs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | Unless otherwise noted, all content licensed by Drew Perttula under a Creative Commons License. |