Okay hey I need your help!
I playing aorund with the Arest library on my Arduino.
I find out how I can read the data of my DHT22 over Http.
If I open http://192.168.1.10/humidity I get this string:
{"humidity": 27, "id": "008", "name": "dapper_drake", "connected": true}
then I tried to use the the script of leader 21: Sunrise and Sunset device via shellsensor plugin
# Aresttemp.sh
temperatur=$(curl -s http://192.168.1.10/temperature | grep temperature | awk -F\" '{print $2}'|{ date -f - +%R; })
luftfeuchte=$(curl -s http://192.168.1.10/humidity | grep humidity | awk -F\" '{print $4}'|{ date -f - +%R; })
echo "Temperatur $temperatur C, Luftfeuchtigkeit $luftfeuchte %"
But there is one problem, I don´t know what I have to change to extract only the first number?
I hope you understand my problem and can help me.
thank u