Upload files to "/"
This commit is contained in:
1 parent
6aa418b63f
commit
6a329cda03
3 files changed
+19
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
clear
|
||||
echo "ESP32 IP:"
|
||||
read -r srv
|
||||
srv=192.168.0.187:80
|
||||
while true; do
|
||||
clear
|
||||
ts=$(date +%Y-%m-%d-%T)
|
||||
#dht=$(curl -s -X GET http://$srv/data | sed 's/{"h"/Humidity/g'| sed 's/"t_f"/Temp/g' | sed 's/,/%, /g' | sed 's/}//')
|
||||
t=$(curl -s -X GET http://$srv/data | awk -F":|,|}" '{print$4}')
|
||||
h=$(curl -s -X GET http://$srv/data | awk -F":|,|}" '{print$2}')
|
||||
a=$(curl -s -X GET http://$srv/data | awk -F":|,|}" '{print$6}')
|
||||
echo "$ts, TEMP: $t°F, HUMID: $h%, AQI: $a" | tee -a espdhtmq.csv
|
||||
sleep 1
|
||||
#continue
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user