This repository was archived by the owner on Sep 30, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function ReadSensor() {
17
17
local WYNIK=" "
18
18
local SUCCESS=" "
19
19
20
- # # zwiększyłem powtórzenia do 5 (sleep zmniejszony do 5s/było 10)
20
+ # # max 5 tries:
21
21
for i in 1 2 3 4 5; do
22
22
WYNIK=` sudo $BIN_DIR /Adafruit_DHT $sensorType $sensorId | tr ' \n' ' ' `
23
23
SUCCESS=` echo $WYNIK | awk ' { if (NF > 10) {print "YES"} else { print "NO"}}' `
@@ -31,7 +31,7 @@ function ReadSensor() {
31
31
sleep $SLEEP_TIME ;
32
32
done
33
33
34
- # # Trzy próby okazały się nieudane
34
+ # # All tries were unsuccessful
35
35
if [ $SUCCESS = " NO" ] ; then
36
36
echo " $sensorId =? $WYNIK " >> $LOG_DIR /DHT22.log
37
37
DHT_CURR_TEMP=" 999.9"
@@ -41,23 +41,25 @@ function ReadSensor() {
41
41
42
42
echo " @` date " +%Y%m%d%H%M%S" ` " >> $LOG_DIR /DHT22.log
43
43
44
- # # Czujnik w pokoju:
44
+ # # Room
45
45
ReadSensor $SENSTYPE " 24"
46
46
READINGS=" $DHT_CURR_TEMP $DHT_CURR_HUM "
47
47
sleep 12
48
48
49
- # # Czujnik weranda
49
+ # # Porch
50
50
ReadSensor $SENSTYPE " 25"
51
51
READINGS=" $READINGS $DHT_CURR_TEMP $DHT_CURR_HUM "
52
52
sleep 12
53
53
54
- # # Czujnik na zewnątrz:
54
+ # # Garden
55
55
ReadSensor $SENSTYPE " 22"
56
56
READINGS=" $READINGS $DHT_CURR_TEMP $DHT_CURR_HUM "
57
57
58
- #
58
+ # Format to HTML/Produce charts
59
59
/usr/bin/perl /home/pi/bin/dht2ht.pl > /var/www/stats/DHT22.html
60
60
61
- # ** Wyślij na google **
61
+ # Upload to google.docs
62
62
/home/pi/bin/DHT_googledocs.ex.py $READINGS
63
63
64
+ # # all
65
+
You can’t perform that action at this time.
0 commit comments