simultaneous/temperature

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Wizard
Sent: Wed 4/12/2006 10:10 AM
To: [email protected]
Subject: [Owfs-developers] owfs speed up or skip rom
 
This is working to make a text file from owfs  but takes a long time to 
read and convert all the temps. is there a way to skip rom and issue 
global read and convert ? 

Modification:


#!/bin/bash
# Real location of fuse
chippath="/home/house/public_html/chips";

# Make symbolic links for nicer names
mkdir -p house
ln -s $chippath/10.FF7BB6000800 house/mkroom 
ln -s $chippath/10.32E8B6008000 house/jocelyn
.....

# Get list of known temperature sensors
X=$(ls  house/*/temperature);

# Start loop
while :

  # Trigger conversion
  echo "1" > $chippath/simultaneous/temperature

  # Now get all temps
  for f in $X; do d=$(dirname $f);
    echo "$(cat $d/address): $(cat $f)C" >> temp.txt;
  done

  sleep 2
done

<<winmail.dat>>

Reply via email to