https://github.com/tomasz-lewicki/py-pbay
a python API for PBay air quality board
https://github.com/tomasz-lewicki/py-pbay
airquality airquality-sensor
Last synced: 2 months ago
JSON representation
a python API for PBay air quality board
- Host: GitHub
- URL: https://github.com/tomasz-lewicki/py-pbay
- Owner: tomasz-lewicki
- License: mit
- Created: 2019-04-25T06:16:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T17:37:09.000Z (over 5 years ago)
- Last Synced: 2025-03-11T20:08:22.668Z (2 months ago)
- Topics: airquality, airquality-sensor
- Language: Python
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-pbay
A python driver for SPEC Sensors PBay board# Getting started
## 1. Install
```
pip3 install pbay
```
## 2. Run examplesTo simply display values:
```bash
python3 example.py /dev/ttyUSB0
```To log values to a csv file:
```bash
python3 example_csv.py /dev/ttyUSB0
```Your devpath for PBay can be different than ```/dev/ttyUSB0```.
To check it, use ```dmesg``` command after connecting USB and examine the output.## 3. Calibration
Before use, be sure to override the values in examples with your own calibration values