raspberrypi/gpio/temperature.sh

5 lines
148 B
Bash
Raw Permalink Normal View History

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