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 telegen-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 TeleGenConnection from the counterfit_shims_grove.counterfit_connection module:

    from counterfit_connection import TeleGenConnection
    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:

    TeleGenConnection.init('127.0.0.1', 5000)
    
  • Write your Grove code as usual. The default assumes you have 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 Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file telegen_shims_seeed_python_si114x-0.1.0.dev2.tar.gz.

File metadata

File hashes

Hashes for telegen_shims_seeed_python_si114x-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 6db0a52cd4f51419b1e76d15d105351a24afacdc8a9215c26cfeb9c8e15f9dbb
MD5 2ce33d1f31760fc7ba7371fbb457063f
BLAKE2b-256 5b0e6decd09bb72be338b5c7dbe80f350535b26d44176b186c767a56137ced97

See more details on using hashes here.

File details

Details for the file telegen_shims_seeed_python_si114x-0.1.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for telegen_shims_seeed_python_si114x-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1447f5f2894220da2c5ea5572e88c99cc6cb75f32ea0d182f40bbfefa3f482
MD5 065fa8faf66379ba553369a7e078ff83
BLAKE2b-256 77a11360b6bcf80dfe2e1e48849c027000630f9cd53c0b21089b0ece8d8adada

See more details on using hashes here.

Supported by

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