nettigo-air-monitor
Python wrapper for getting air quality data from Nettigo Air Monitor devices.
Sensor.Community firmware is also supported.
How to use package
"""An example of using Nettigo Air Monitor package."""
import asyncio
import logging
from aiohttp import ClientConnectorError, ClientError, ClientSession
from tenacity import RetryError
from nettigo_air_monitor import (
ApiError,
AuthFailedError,
ConnectionOptions,
InvalidSensorDataError,
NettigoAirMonitor,
)
logging.basicConfig(level=logging.DEBUG)
HOST = "nam"
USERNAME = "user"
PASSWORD = "password"
async def main() -> None:
"""Run main function."""
options = ConnectionOptions(host=HOST, username=USERNAME, password=PASSWORD)
async with ClientSession() as websession:
nam = await NettigoAirMonitor.create(websession, options)
try:
data = await nam.async_update()
except (
TimeoutError,
ApiError,
AuthFailedError,
ClientConnectorError,
ClientError,
InvalidSensorDataError,
RetryError,
) as error:
print(f"Error: {error}")
else:
print(f"Firmware: {nam.software_version}")
print(f"MAC address: {nam.mac}")
print(f"Latitude: {nam.latitude}, Longitude: {nam.longitude}")
print(f"Data: {data}")
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
How to create a dev environment
git clone https://github.com/bieniu/nettigo-air-monitor.git
cd nettigo-air-monitor
./scripts/setup-local-env.sh
Metadata
Release files for nettigo-air-monitor 5.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nettigo_air_monitor-5.1.0.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nettigo_air_monitor-5.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.3 kB
Release files / nettigo_air_monitor-5.1.0.tar.gz
| Download URL | nettigo_air_monitor-5.1.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
000ace2c2f4dbb623a0cb28325a197b9684c6b95363bd52e422f2a5398526c20
|
|
BLAKE2b-256 checksum How to use checksums |
9fabe951ec5b79127805ef7abbba36a246c4ec18e1c9f2d8d2563b8dae9b8697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency logRelease files / nettigo_air_monitor-5.1.0-py3-none-any.whl
| Download URL | nettigo_air_monitor-5.1.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87b1ccd663218eecd8c79aaeed95e72023e8f0d33cbe97d0cee14a7751307f3a
|
|
BLAKE2b-256 checksum How to use checksums |
b2346e43661edceab97f936c679c8a1c031e9ec1b0063038934916a6e21d6e29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency log