change output format

This commit is contained in:
2018-11-27 17:21:58 +01:00
parent 70da93968f
commit 5e042a523a

View File

@ -70,9 +70,9 @@ function check_output () {
} }
function write_results () { function write_results () {
echo `date +%s` > "$OUTFILE" echo "Timestamp="`date +%s` > "$OUTFILE"
echo "${T}" >> "$OUTFILE" echo "Temperature=${T}" >> "$OUTFILE"
echo "${H}" >> "$OUTFILE" echo "Humidity=${H}" >> "$OUTFILE"
} }
read_sensor read_sensor