I'm trying to read some JSON from a local PurpleAir sensor.
Some example JSON:
{
"pressure": 984.22,
"pm2.5_aqi_b": 20,
"pm1_0_cf_1_b": 2.72,
"pm2.5_aqi": 20
}
Using the Sandbox:
${JSON(input,"pressure")} = 984.22
${JSON(input,"pm1_0_cf_1_b")} = 2.72
${JSON(input,"pm2.5_aqi")} = No Value
${JSON(input,"pm2.5_aqi_b")} = No Value
Best I can tell here is that it won't parse the value because of the "." in the key name.
Doing this in Homeseer4 itself has the same problem, I can get the values for "pressure" and "pm_1_0_cf_1_b", but not the other two with the "."
Any suggestions?
Thanks!
pace
Some example JSON:
{
"pressure": 984.22,
"pm2.5_aqi_b": 20,
"pm1_0_cf_1_b": 2.72,
"pm2.5_aqi": 20
}
Using the Sandbox:
${JSON(input,"pressure")} = 984.22
${JSON(input,"pm1_0_cf_1_b")} = 2.72
${JSON(input,"pm2.5_aqi")} = No Value
${JSON(input,"pm2.5_aqi_b")} = No Value
Best I can tell here is that it won't parse the value because of the "." in the key name.
Doing this in Homeseer4 itself has the same problem, I can get the values for "pressure" and "pm_1_0_cf_1_b", but not the other two with the "."
Any suggestions?
Thanks!
pace
Comment