Skip to main content

Shims for the Seeed Grove SI144X Sunlight sensor for the CounterFit virtual IoT device app

Project description

CounterFit Shims - Grove

Grove Shim PyPI

Shims for the Seeed Grove SI114X sunlight sensor to use with the CounterFit virtual IoT device app.

See the Seeed Python SI114X Docs for the API documentation.

Getting started

To use these shims, you will need to install CounterFit and have it running, with the appropriate hardware created.

  • Install this package from pip:

    pip install counterfit-shims-seeed-python-si114x
    
  • Import the Grove modules as normal, but using the counterfit_shims_seeed_python_si114x package instead of the seeed-python-si114x package, as well as importing the CounterFitConnection from the counterfit_shims_grove.counterfit_connection module:

    from counterfit_connection import CounterFitConnection
    from counterfit_shims_seeed_python_si114x import si114x
    
  • Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:

    CounterFitConnection.init('127.0.0.1', 5000)
    
  • Write your Grove code as usual. The default assumes you hve a light sensor on pin 0, IR on pin 1 and UV on pin 2. You can change these passing additional arguments to the init

    sensor =.si114x()
    light = sensor.ReadVisible()
    ir = sensor.ReadIR()
    uv = sensor.ReadUV()
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file counterfit_shims_seeed_python_si114x-0.1.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for counterfit_shims_seeed_python_si114x-0.1.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b9a433a44a9f9a479c192c157a1dc102c956b9729d47efd16cbac8af4542b94
MD5 64ea2eb2110ce9a5c66edcddd5f4e3bf
BLAKE2b-256 bfd39e5b7ae46e276d1a0905a91f9b8c73ab939f5969a2c66871ccd9dc58abbb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page