Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quant-aq/py-licor
Python logging software for the Licor 840 CO2/H2O analyzer
https://github.com/quant-aq/py-licor
Last synced: 14 days ago
JSON representation
Python logging software for the Licor 840 CO2/H2O analyzer
- Host: GitHub
- URL: https://github.com/quant-aq/py-licor
- Owner: quant-aq
- License: mit
- Created: 2019-11-05T14:59:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T02:23:10.000Z (about 5 years ago)
- Last Synced: 2024-10-08T12:06:50.358Z (about 1 month ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-air-quality - py-licor - _Python logging software for the Licor 840 CO2/H2O analyzer_ (Software Libraries)
README
# py-licor
Python logging software for the Licor 840 CO2/H2O analyzer## Dependencies
* bs4 (beautifulsoup)
* pyserial## Python Versions
This software package is written for Python 3+.
## Installation
To install from PyPi:
```sh
$ pip install py-licor [--upgrade]
```To install directly from GitHub:
```sh
$ pip install git+https://github.com/quant-aq/py-licor.git
```You can also download and install from source:
```sh
python setup.py install
```## Documentation
There isn't any real documentation yet...but for now, there are only a few commands:
To setup a connection:
```python
import licor
dev1 = licor.Licor840()
# set the port
dev1.port = "/dev/tty.USA19H142P1.1"# begin the connection
dev1.connect()# read a line
dev1.read()
```A successfull read will return a dictionary with the data - if it fails, it will return an empty dictionary. At any point, you can reset the port and re-connect. You can also set the default timeout using the `timeout` attribute of the Licor840 class. That's it! All connections on made using baud=9600.