Upload files to "/"

This commit is contained in:
bmixed committed 2026-11-27 00:13:33 +00:00
1 parent 6aa418b63f
commit 6a329cda03
3 files changed
+19 -1

No files matched your search

+18
View File
@@ -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