Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit c5abdf6

Browse files
committed
Cleaning
1 parent 8caed51 commit c5abdf6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Adafruit_DHT_Driver/dht2ht.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function ReadSensor() {
1717
local WYNIK=""
1818
local SUCCESS=""
1919

20-
## zwiększyłem powtórzenia do 5 (sleep zmniejszony do 5s/było 10)
20+
## max 5 tries:
2121
for i in 1 2 3 4 5; do
2222
WYNIK=`sudo $BIN_DIR/Adafruit_DHT $sensorType $sensorId | tr '\n' ' '`
2323
SUCCESS=`echo $WYNIK | awk ' { if (NF > 10) {print "YES"} else { print "NO"}}'`
@@ -31,7 +31,7 @@ function ReadSensor() {
3131
sleep $SLEEP_TIME;
3232
done
3333

34-
## Trzy próby okazały się nieudane
34+
## All tries were unsuccessful
3535
if [ $SUCCESS = "NO" ] ; then
3636
echo "$sensorId=? $WYNIK" >> $LOG_DIR/DHT22.log
3737
DHT_CURR_TEMP="999.9"
@@ -41,23 +41,25 @@ function ReadSensor() {
4141

4242
echo "@`date "+%Y%m%d%H%M%S"`" >> $LOG_DIR/DHT22.log
4343

44-
## Czujnik w pokoju:
44+
## Room
4545
ReadSensor $SENSTYPE "24"
4646
READINGS="$DHT_CURR_TEMP $DHT_CURR_HUM"
4747
sleep 12
4848

49-
## Czujnik weranda
49+
## Porch
5050
ReadSensor $SENSTYPE "25"
5151
READINGS="$READINGS $DHT_CURR_TEMP $DHT_CURR_HUM"
5252
sleep 12
5353

54-
## Czujnik na zewnątrz:
54+
## Garden
5555
ReadSensor $SENSTYPE "22"
5656
READINGS="$READINGS $DHT_CURR_TEMP $DHT_CURR_HUM"
5757

58-
#
58+
# Format to HTML/Produce charts
5959
/usr/bin/perl /home/pi/bin/dht2ht.pl > /var/www/stats/DHT22.html
6060

61-
# ** Wyślij na google **
61+
# Upload to google.docs
6262
/home/pi/bin/DHT_googledocs.ex.py $READINGS
6363

64+
## all
65+

0 commit comments

Comments
 (0)