Skip to main content

An API interface to the internal sensors of the Blues Wireless Notecard

Project description

NotecardPseudoSensor

NotecardPseudoSensor provides an API interface to the internal sensors of the Blues Wireless Notecard. The goal of this abstraction is to offer a sensor to use with more advanced tutorials, which enables focus on basic Notecard transactions for those new to the platform.

Installation

With pip via PyPi:

pip install notecard-pseudo-sensor

or

pip3 install notecard-pseudo-sensor

Usage

import notecard
import notecard_pseudo_sensor

# How you connect to the Notecard varies based on your platform.
# See the note below.
from periphery import I2C
port = I2C("/dev/i2c-1")
card = notecard.OpenI2C(port, 0, 0)

sensor = notecard_pseudo_sensor.NotecardPseudoSensor(card)
print(sensor.temp())
print(sensor.humidity())

NOTE: The way you create the port and card differs based on platform. For details, check out the note-python usage documentation, which contains examples.

To learn more about Blues Wireless, the Notecard and Notehub, see:

License

Copyright (c) 2021 Blues, Inc. Released under the MIT license. See LICENSE for details.

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

notecard-pseudo-sensor-2.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

notecard_pseudo_sensor-2.0.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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