Python package for getting sensor values from an Ambient Air Sensor such as offered by [Rehau](https://www.amazon.co.uk/Rehau-USB-Stick-Ambient-Sensor/dp/B00ZXP6EI4).
## Getting Started
This section will introduce you to airsensor-py and how to install and use it for fun and profit.
### Prerequisites
Make sure that python 3 + pip is installed.
### Installing
```
pip install airsensor-py
```
## Usage
You can either use this package as a library in your code or using the bundled CLI. You'll have to run it as root or set up a udev rule to grant r/w access to the device to the user. For more instructions on that, see [here](https://github.com/tuxedo0801/usb-sensors-linux).
### Library
```
from airsensor.core import AirSensor
airsensor = AirSensor()
voc = airsensor.get_voc()
print(voc)
> 450
```
### CLI
```
$ airsensor-py
> 450
```
## Built With
* [PyUSB](https://walac.github.io/pyusb/)
## License
This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details
## Contribution
Want to add a feature or report a bug? Open an issue or a pull request for me!
## Acknowledgments
* [A C implementation](https://code.google.com/archive/p/airsensor-linux-usb/) was done by Rodric Yates which I used to see how the interaction with the device works.
Metadata
Release files for airsensor-py 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| airsensor-py-0.0.6.tar.gz | 3.0 kB | Without provenance | Details for airsensor-py-0.0.6.tar.gz |
Release files / airsensor-py-0.0.6.tar.gz
| Download URL | airsensor-py-0.0.6.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6da416b28c9e797141cf5efd412e070f7ad3b8c1a68b71a1753a6d71cce11c06
|
|
BLAKE2b-256 checksum How to use checksums |
877bd6be6b36b5bff81919d66ebad2f8448ab131df5b2a8939ca471df183bdaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for airsensor-py 0.0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.