Documentation menu

env: environment and power

Readings from environmental sensors, such as dust and noise, together with the device's power status.

View as Markdown

The env table holds the readings of Asense environmental sensors, such as the noise and dust sensor. Each record also reports the device's power status: battery, solar panel and external supply. A device usually sends one record every 10 minutes.

Air quality

FieldTypeUnitDescription
pm1_ug/m3numberµg/m³PM1 mass concentration.
pm2_5_ug/m3numberµg/m³PM2.5 mass concentration.
pm10_ug/m3numberµg/m³PM10 mass concentration.
pm1_/cm3numberparticles/cm³PM1 particle count.
pm2_5_/cm3numberparticles/cm³PM2.5 particle count.
pm10_/cm3numberparticles/cm³PM10 particle count.
is_ob_ovinteger1 when the dust sensor reports an obstruction. While it is 1, the PM values are not valid readings.

Some field names contain a /. In JavaScript read them with brackets, for example row["pm2_5_ug/m3"].

Noise

Each noise reading is taken over a 10-second capture. The average is the mean level over the capture, and the peak is the highest 100 ms level within it.

FieldTypeUnitDescription
spl_avg_dbnumberdBAverage sound pressure level, unweighted.
spl_pk_dbnumberdBPeak sound pressure level, unweighted.
spl_avg_dbanumberdB(A)Average A-weighted level.
spl_pk_dbanumberdB(A)Peak A-weighted level.
spl_avg_uv, spl_pk_uvnumberOlder field pair. Devices that do not yet send the _dba fields put dB(A) × 100 here, so 6750 means 67.50 dB(A).

Power and status

FieldTypeUnitDescription
bat_mvintegermVBattery voltage.
pv_mvintegermVSolar panel voltage.
in_mvintegermVExternal supply voltage.
socnumberBattery state of charge, as reported by the device.
prod_mvasintegermV·A·sEnergy counter for power produced, as reported by the device.
cons_mvasintegermV·A·sEnergy counter for power consumed, as reported by the device.
run_secnumbersTime the device has been running.
temp_cnumber°CTemperature.
lat, longnumberdegreesPosition, as decimal latitude and longitude.

A field the device does not send is returned as 0.

Order and timestamps

env supports ascending=false, to get the newest record first, and timestamps_only=true, to list record times without the readings. merge has no effect on this table.