Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CounterFit Shims - Grove

Grove Shim PyPI

Shims for the Seeed Grove DHT digital temperature and humidity sensor to use with the CounterFit virtual IoT device app.

See the Seeed Python DHT 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-dht
    
  • Import the Grove modules as normal, but using the counterfit_shims_seeed_python_dht package instead of the seeed-python-dht 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_dht import DHT
    
  • 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, setting the pins to match the ones you set in the CounterFit app. To keep to the interface that the DHT specifies, only one pin can be passed to the constructor. The sensor assumes the pin given is for the humidity sensor, and the temperature is on the next pin.

    For example, create a humidity sensor on pin 1, and a temperature sensor on pin 2. Then pass 1 to the DHT constructor.

    sensor =.DHT("11", 1)
    humi, temp = sensor.read()
    

Metadata

Release files for telegen-shims-seeed-python-dht 0.1.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegen-shims-seeed-python-dht 0.1.0.dev2
File Size Uploaded
telegen_shims_seeed_python_dht-0.1.0.dev2.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for telegen-shims-seeed-python-dht 0.1.0.dev2
File Interpreter ABI Platform
telegen_shims_seeed_python_dht-0.1.0.dev2-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / telegen_shims_seeed_python_dht-0.1.0.dev2.tar.gz

Download URL telegen_shims_seeed_python_dht-0.1.0.dev2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6da36460a84a01faa1a6d0f69f4f763fcf9f33259669648183915edfebb4f0e4
BLAKE2b-256 checksum
How to use checksums
cd947993e698d645b375d5405cb2614aa0bec9d4a10e12adc55273372874b9d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / telegen_shims_seeed_python_dht-0.1.0.dev2-py3-none-any.whl

Download URL telegen_shims_seeed_python_dht-0.1.0.dev2-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5778747e45eee9a2aa0340faed48a54f1b42b4da448fb8c5e189d3d0c92af3d3
BLAKE2b-256 checksum
How to use checksums
7c9c314b80af578c7bad33e01f5072385d56906ec0f5842d5638424e16d83292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0.dev2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page