raspberrypi/gpio/temperature.sh
2020-09-10 13:23:23 +08:00

5 lines
148 B
Bash

#!/bin/bash
DATE=$(date "+%y年%m月%d日%H时%M分%S秒");
T="$(/root/gpio/wind -d 28-031682c7baff)"
echo "${DATE} ${T}" >> /root/temperature.data