saladtestingbox/salad/chtemphum.sh

8 lines
172 B
Bash
Executable File

#!/bin/sh
cd /salad
DATETIME=`date "+%Y-%m-%d-%H-%M"`
HUM=`dht22 -p 38 -s hum`
sleep 1
TEMP=`dht22 -p 38 -s temp`
echo "$DATETIME HUM = $HUM TEMP = $TEMP" >> SALAD_log.txt