Hi Rob, On 10/28/2010 04:54 AM, Rob Conway wrote:
[...] > I would also like to know if the Alias function is OK. I can remember > some time ago there was some kind of caution in using the alias file. When I tried using aliases I got random read failures so I stopped using them and instead implemented "aliases" in my polling script: ------------------------------------------------------ my %sensors = ( "28.EC30A5020000" => "bedroom1", "28.154BA6020000" => "bedroom2", "28.6618A7020000" => "bedroom_master", "28.B844A9020000" => "garage", "28.CE4892020000" => "breakfast_nook" ); foreach my $sensor (keys %sensors) { if (!open SENSOR, "/owfs/$sensor/temperature") { print STDERR "Can't open temperature file for sensor $sensor: $!\n"; next; } my $temperature = <SENSOR>; close SENSOR; $temperature =~ s/ *//; # " 82.7375" -> "82.7375" $output .= "$sensors{$sensor}:$temperature "; } ------------------------------------------------------ (This produces output that can be consumed by a Cacti external poller script.) This has been very stable for me. I first reported the problem of read failures when using aliases in this message, but I never heard from anyone on it: http://sourceforge.net/mailarchive/message.php?msg_name=4C8A12DC.8090509%40chapus.net Cheers, Eloy Paris.- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers