I finally read the data sheet very carefully and wrote this test code that is the basis of everything I do with onewire:
https://github.com/WardCunningham/Txtzyme/blob/master/projects/onewire/test.pl
This can be greatly simplified if you skip the device discovery logic. See get.pl for an example.
The advantage I find with Txtzyme is that the Teensy keeps no state between requests. This allows me to have multiple applications talking to multiple sensor/actuators in a web centric enviroment.
You could get your basic control running in a cron job and then do innovative analytics in cgi or sinatra.
I took this approach when I hooked my Christmas lights up to the onewire thermometer in my furnace hot air plenum.
https://github.com/WardCunningham/Txtzyme/blob/master/projects/moodlites/ReadMe.md
Best regards -- Ward
Sent from my mobile
503-432-5682