From: Greg M. <ha...@ga...> - 2010-07-06 03:24:13
|
I've finally wired up my hobby-boards.com 1wire hardware and am trying to get MH to chat with it. I'm wanting to read some inputs from my doorbell button, garage door sensors, a temp sensor or two, and open/close the garage door. I have the 6 port master hub (2480b, 3x2409P), 8 relay IO board (2408), and a temp board (18s20) I've got owserver working and owhttpd chatting with it. Using owfs-2.7p38. I've put owfs_port in mh.private And my code dir in owfs.pl use Owfs_Item; use Owfs_Thermostat; # Fetch a new temperature value once a minute my $therm1 = new Owfs_Item ( "10.0C7694010800", "Sewing Room" ); my $temp; if (new_minute) { $temp = $therm1->get( "temperature"); # $temp = (($temp*9)/5)+32; print_log "The temperature in the Sewing Room is now $temp degree Fahrenheit"; } Don't seem to get anything useful back out of $temp but don't seem to have any errors either even with debug owfs Am I missing something? Greg |