
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
airthings-consumer-api
Advanced tools
An unofficial Node.js client library for Airthings Air Quality Monitors via the Airthings Consumer API.
An unofficial Node.js client library for Airthings Air Quality Monitors via the Airthings Consumer API.
https://michaelahern.github.io/airthings-consumer-api/
$ npm install airthings-consumer-api
import { AirthingsClient, SensorUnits } from 'airthings-consumer-api';
async function main() {
// Create an Airthings Client ID & Secret at
// https://consumer-api-doc.airthings.com/dashboard
const client = new AirthingsClient({
clientId: '[CLIENT_ID]',
clientSecret: '[CLIENT_SECRET]'
});
const devicesResponse = await client.getDevices();
devicesResponse.devices.forEach((device) => {
console.log(device);
});
// {
// serialNumber: '2960000000',
// home: 'My Home',
// name: 'My Airthings',
// type: 'VIEW_PLUS',
// sensors: [
// 'radonShortTermAvg',
// 'temp',
// 'humidity',
// 'pressure',
// 'co2',
// 'voc',
// 'pm1',
// 'pm25'
// ]
// }
const sensorsResponse = await client.getSensors(SensorUnits.Imperial);
sensorsResponse.results.forEach((sensor) => {
console.log(sensor);
});
// {
// serialNumber: '2960000000',
// sensors: [
// { sensorType: 'radonShortTermAvg', value: 1.2, unit: 'pci' },
// { sensorType: 'humidity', value: 40, unit: 'pct' },
// { sensorType: 'temp', value: 68.8, unit: 'f' },
// { sensorType: 'co2', value: 678, unit: 'ppm' },
// { sensorType: 'voc', value: 234, unit: 'ppb' },
// { sensorType: 'pressure', value: 78178, unit: 'pa' },
// { sensorType: 'pm25', value: 0, unit: 'mgpc' },
// { sensorType: 'pm1', value: 0, unit: 'mgpc' }
// ],
// recorded: '2025-01-01T12:34:56',
// batteryPercentage: 100
// }
}
main().catch(err => console.error(err));
FAQs
An unofficial Node.js client library for Airthings Air Quality Monitors via the Airthings Consumer API.
We found that airthings-consumer-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.