Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/void-ux/pms7003
A Python client driver for the PMS7003 particle matter sensor
https://github.com/void-ux/pms7003
gpio particle-matter pms7003 raspberry-pi rpi sensor serialport
Last synced: 12 days ago
JSON representation
A Python client driver for the PMS7003 particle matter sensor
- Host: GitHub
- URL: https://github.com/void-ux/pms7003
- Owner: Void-ux
- License: mit
- Created: 2024-12-21T01:42:25.000Z (13 days ago)
- Default Branch: main
- Last Pushed: 2024-12-21T04:11:46.000Z (13 days ago)
- Last Synced: 2024-12-21T05:18:17.969Z (13 days ago)
- Topics: gpio, particle-matter, pms7003, raspberry-pi, rpi, sensor, serialport
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### pms7003
A small, elegant and performant client driver for the PMS7003 particulate matter sensor.
This code was tested on the Raspberry Pi 5, though feel free to use this on any machine with Python and a serial port.
```python
from pms7003 import PMSSensorwith PMSSensor('/dev/ttyAMA0') as sensor:
while True:
print(sensor.read())
```### Installation
Installing the library is simple and done purely through git, so make sure you have it installed (`sudo apt-get git` on Debian-based).
```shell
pip install git+https://github.com/Void-ux/pms7003.git
```### License
MIT