Skip to main content

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.')
    # data acquisition
    sample = sensor.getData(comport)
    print(['signal', 'unit', 'temperature', 'unit'])

Data acquisition from

from pySulfiLoggerAPI.webData import WebData

# login
webData = WebData(username ="username", password= "password")
# get sites
sites = webData.getAvailableSites()
# 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")

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.

Files for pySulfiLoggerAPI, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size pySulfiLoggerAPI-0.0.6-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pySulfiLoggerAPI-0.0.6.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page