Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can connect to it via SMB and grab the raw logfiles. It stores them as csv.

https://www.iqair.com/us/newsroom/download-the-airvisual-nod...

Not a friendly API for integrating but you can build from there (I have an air visual pro and I do this)



Thank you. The only info I found was their cloud connection.

I was interested because I wouldn't have to deal with customs in their case, but considering the price and interesting integration, dealing with customs might be better :P


Welcome. Actually, on checking, they've also added a .json file with the latest measurements.

smbclient -U airvisual%PASSWORD \\\\192.168.X.Y\\airvisual -c "get latest_config_measurements.json"

if you want an interactive display. Otherwise there are a bunch of csv files with the archived values, under a time-varying filename like:

202301_AirVisual_values.txt

With format:

Date;Time;Timestamp;PM2_5(ug/m3);AQI(US);AQI(CN);PM10(ug/m3);PM1(ug/m3);Outdoor AQI(US);Outdoor AQI(CN);Temperature(C);Temperature(F);Humidity(%RH);CO2(ppm) 2023/01/01;00:00:03;1672531203;0.0;0;0;0.0;0.0;8;3;22.7;72.8;41;406;


Thanks for digging into the mucks of the quote end quote API. SMB makes me think they were aiming for the commercial market and just repurposed it for home.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: