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[3], '2019-09-25T00:00:00%2B02:00','2019-10-05T00:00:00%2B02: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
pySulfiLoggerAPI-0.0.4.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for pySulfiLoggerAPI-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df02f3e5c8baa992fa2fe5d913b3460ba70d3c284f2b7e56bbac9afc1fd91aa9 |
|
MD5 | 5840e6f3c769ae9756280d53030d9a47 |
|
BLAKE2b-256 | e434dee3e72530e6b5cc8ab99a7998e9c58ba32770b731c143db9ededfc0c978 |