How to get Lux value using bash curl command
Posted: Tuesday 16 April 2019 18:21
hello I have problem with get Lux value
for example for voltage I use
for Lux I try
and command always return "null"
for example for voltage I use
Code: Select all
curl -s 'http://192.168.9.4:8080/json.htm?type=devices&rid=11' | jq .result[0].Voltage | sed 's/\"//g' | awk '{ print $1 }'
Code: Select all
curl -s 'http://192.168.9.4:8080/json.htm?type=devices&rid=17' | jq .result[0].Lux | sed 's/\"//g' | awk '{ print $1 }'
curl -s 'http://192.168.9.4:8080/json.htm?type=devices&rid=17' | jq .result[0].Value | sed 's/\"//g' | awk '{ print $1 }'
curl -s 'http://192.168.9.4:8080/json.htm?type=devices&rid=17' | jq .result[0].VALUE | sed 's/\"//g' | awk '{ print $1 }'
curl -s 'http://192.168.9.4:8080/json.htm?type=devices&rid=17' | jq .result[0].LightLevel | sed 's/\"//g' | awk '{ print $1 }'