Today more stations report (sometimes) the error message
“Problem 57: Invalid / no JSON data purpleair.txt Check settings and data”
Sadly there are now two reasons for this.
- the API error discussed already, occurs always
- A real json error occurs and refreshing/reloading solves the problem
This is correct data for my station, I use also the not changing fields for testing:
{
"api_version" : "V1.0.11-0.0.49",
"time_stamp" : 1699088722,
"data_time_stamp" : 1699088702,
"sensor" : {
"sensor_index" : 7302,
"last_seen" : 1699088609,
"name" : "Sluispark Leuven",
"latitude" : 50.886333,
"longitude" : 4.700227,
"humidity" : 56,
"temperature" : 60,
"pm2.5" : 1.3,
"pm10.0_atm_a" : 1.52,
"pm10.0_atm_b" : 1.2,
"stats" : {"pm2.5" : 1.3, "pm2.5_10minute" : 1.6, "pm2.5_30minute" : 2.2, "pm2.5_60minute" : 2.6, "pm2.5_6hour" : 2.2, "pm2.5_24hour" : 2.2, "pm2.5_1week" : 6.2, "time_stamp" : 1699088609}
}
}
This is the data in error, there is an extra } at the end
{
"api_version" : "V1.0.11-0.0.49",
"time_stamp" : 1699088968,
"data_time_stamp" : 1699088965,
"sensor" : {
"sensor_index" : 190464,
"last_seen" : 1699088829,
"pm2.5" : 3.6,
"pm10.0_atm_a" : 4.1,
"pm10.0_atm_b" : 3.56,
"stats" : {"pm2.5" : 3.6, "pm2.5_10minute" : 5.4, "pm2.5_30minute" : 4.2, "pm2.5_60minute" : 3.2, "pm2.5_6hour" : 1.8, "pm2.5_24hour" : 1.6, "pm2.5_1week" : 2.8, "time_stamp" : 1699088829}
}
}}
I have no idea how much stations have this and what causes this.
After a reload of the file, the data is OK.
Wim