#!/bin/csh ############################################################################# # # Continually read the surrier temperature from the TCS... # # This script is called from ~daisy/.dtprofile.daisy with the command: # /usr/bin/X11/xterm -fb 9x15 -display ins1d5:0 -geometry 40x9+1000+0 -title # "Serrurier Temperature" -bg black -fg yellow -e ~meteolog/scripts/SurTemp & # # Author: James Brewer # Version: 1.0 Date: Oct.16, 1998 ############################################################################# # # Check script arguments... # if($#argv != 0) then echo "Usage: "$0 exit(-1) endif # # Set up variables used by script... # set path = ($path /home/meteolog/bin) # Add in local bin directory set gap = 60 # Sleep (secs) between readings while(1) clear # # Use rdval command to grab the T&H readings... # echo " Long Serrurier: "`rdval sens3 | tail -1 | cut -c0-5`"C" echo "Internal Humidity: "`rdval sens15 | tail -1 | cut -c0-5`"%" echo "External Humidity: "`rdval sens16 | tail -1 | cut -c0-5`"%" echo "" date -u "+ Date: %d/%m/%y%n U.T.: %H:%M:%S" echo "" echo ">>>> Refreshed every $gap seconds <<<<" # # Sleep between readings... # sleep $gap end exit (0)