Skip to main content

Shims for the Seeed Grove sensors for the CounterFit virtual IoT device app

Project description

CounterFit Shims - Grove

Grove Shim PyPI

Shims for the Seeed Grove sensors and actuators to use with the CounterFit virtual IoT device app.

See the Grove Py 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-grove
    
  • Import the Grove modules as normal, but using the counterfit_shims_grove package instead of the grove package, as well as importing the TeleGenConnection from the counterfit_shims_grove.counterfit_connection module:

    from counterfit_connection import TeleGenConnection
    from counterfit_shims_grove.grove_light_sensor_v1_2 import GroveLightSensor
    from counterfit_shims_grove.grove_led import GroveLed
    
  • 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:

    light_sensor = GroveLightSensor(2)
    sensor_value = light_sensor.light
    

Implemented shims

Not all the Grove sensor and actuators are currently implemented:

Sensor/Actuator
grove_led
grove_light_sensor_v1_2

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

telegen_shims_grove-0.1.4.dev6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

telegen_shims_grove-0.1.4.dev6-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file telegen_shims_grove-0.1.4.dev6.tar.gz.

File metadata

File hashes

Hashes for telegen_shims_grove-0.1.4.dev6.tar.gz
Algorithm Hash digest
SHA256 57f0e4ef14f90945209b58032061772d01cdb685d33ebe36e83fdbde57563c34
MD5 60ed4204c278e06fdff750905e070eda
BLAKE2b-256 83c76d0410ebc51bfb30b7c87e553340bbcf93afb27174cdb9bf8b2e5132822e

See more details on using hashes here.

File details

Details for the file telegen_shims_grove-0.1.4.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for telegen_shims_grove-0.1.4.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 028c9782da5b3359aeea0b40dfc49f3ece2aa224300c13b287c2cf7d16d2a5d5
MD5 24a73284ecdeb32a39f6e4dd6c3bb01c
BLAKE2b-256 cf97c14cf618b79d49ebd73afca8f7178bab50c6e2d448b923b9b55a0a850eb7

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