| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Browse archives
|
Untitled
Submitted by reeses on Thu, 2003-02-06 05:51.
There we go! :-) I stopped off at the nearest Radio Shack on the way home for a piece of cabling that cannot have any other acceptable use -- it's a 20'-ish length of 4-conductor phone cable, one RJ-11 plug on one end, and two RJ-11 sockets on the other. If you used this for its purported use, you'd have an ugly cabling mess. However, this is perfect for running a 1-wire network behind the couch, and sprouting off two sensors. Now, if you look here, you'll see a pretty simple display of the current temperature and a historical graph over the past 24 hours, for both the indoor and outdoor sensors. If "bodge" didn't apply before, it definitely does now. Let me explain the moving parts necessary to generate these pages, and keep in mind that it's this convoluted because I wanted to get it up as soon as possible. 1) A Ruby script sleeps for ten minutes, then fires off a C program that polls all of the sensors on the network, and prints out their ID and reading. Now, what's interesting is that I'm using a bunch of tools (gnuplot, mysql, Ruby, scp, ssh, cjpeg) that are much more comfortable on various Unix systems than they are on Windows. However, they're my hammers, and this is my nail. In addition, some of the pieces that I would have otherwise written in pure Ruby depend on Windows modules that are not available, or available only by contorting my installation unacceptably. So, there you have it. If you have 1-wire gear and want to do something similar and want a starting off point, email me. Otherwise, these are never going to see the light of day, and are going to do their ugly job unacknowledged and unlauded. Post new comment |
SearchSimilar entriesUser login |