-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDHT11.sh
22 lines (22 loc) · 954 Bytes
/
DHT11.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
cat /sys/bus/iio/devices/iio\:device0/in_humidityrelative_input | sed -r s/000$/'%'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_humidityrelative_input | sed -r s/000$/'%'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_humidityrelative_input | sed -r s/000$/'%'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_humidityrelative_input | sed -r s/000$/'%'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_humidityrelative_input | sed -r s/000$/'%'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed s/000/'℃'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed s/000/'℃'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed s/000/'℃'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed s/000/'℃'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed s/000/'℃'/g
sleep 1
cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed s/000/'℃'/g