Driver module for the SulfiLogger sensor
Project description
SulfiLogger sensor
Module for reading data from the SulfiLogger sensor
python requirements
- Python 3.7 or newer
python code example
Data acquisition from sensor
from pySulfiLoggerAPI.sensor import Sensor
# locate sensor
sensor = Sensor()
comport = sensor.findCom()
if(comport == None):
print('info','no sensor found.')
else:
# data acquisition
sample = sensor.getData(comport)
print(['signal', 'unit', 'temperature', 'unit'])
print(sample)
Data acquisition from webdata.sulfilogger.com
from pySulfiLoggerAPI.webData import WebData
# login
webData = WebData(username ="username", password= "password")
webData.login()
# get sites
sites = webData.getAvailableSites()
print(sites)
# get data from time interval
data=webData.getDataFromPeriod(sites[0], '2019-09-25T00:00:00+02:00','2019-10-05T00:00:00+02:00', "mg/L", "1hr")
print(data)
more examples
A python script for continuously logging and plotting data from the SulfiLogger sensor via the bokeh module is available upon request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pySulfiLoggerAPI-0.0.6.tar.gz.
File metadata
- Download URL: pySulfiLoggerAPI-0.0.6.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3bab8a1b603da5377fda9160d8b7ada1cdf19d3aeeccc2cddab7109d5fd3ca6
|
|
| MD5 |
d68ef62d9f20fe0055e8379a4cce1e6f
|
|
| BLAKE2b-256 |
ef9bab9fa63cdfeedebc0f6d747ca4db04fe9dd068c3d77ed069ae1f8c0e240b
|
File details
Details for the file pySulfiLoggerAPI-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pySulfiLoggerAPI-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7893055be1b064f1c25141c781341a9d2c0dd7aedd0f93733d82f20864616b8
|
|
| MD5 |
e3da18ec42233ea1084a9f008dc80761
|
|
| BLAKE2b-256 |
e4130fd50033cb036ce33a675c36fd215e04ac1f6681a0471cdaf1155ad8e90c
|