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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file notecard-pseudo-sensor-2.0.0.tar.gz.

File metadata

  • Download URL: notecard-pseudo-sensor-2.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for notecard-pseudo-sensor-2.0.0.tar.gz
Algorithm Hash digest
SHA256 777828217f9a2afbb5c4c040c387c9aa319ea045d661fc29bc3fb3da86f4de5c
MD5 e713db37cbe1ca9031a421f0c109dbe6
BLAKE2b-256 519ba5a67b8f65416eddd094649bf37112dfdc48d612c837933d73461b613ee1

See more details on using hashes here.

File details

Details for the file notecard_pseudo_sensor-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: notecard_pseudo_sensor-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for notecard_pseudo_sensor-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5394c30066e1fde47f855650aa257743a32e1a28a9d0a1628bb3cc077071a78
MD5 9e8defa84a2b87f9bf0cd9c08faf1856
BLAKE2b-256 0b61ead74725f7d7d8140ef6f9629725f7ab9b0ba8d185ebb873be535647b3b8

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