pyam232x
pyam232x は、 AM2321/AM2322 という温湿度センサーを制御する為のコマンドと API 一式です。
Overview
このモジュールは、 AM2321/AM2322 から値を読み取って画面に出力するコマンドと、 AM2321/AM2322 を制御する為の API を提供します。
Getting Started
Prerequisites
本モジュールは AM2322 を実装済みの下記環境で動作確認を行っています。
-
Raspberry Pi 4 Model B (4GB)
-
OS:
$ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster -
Python: 2.7.16, 3.7.3
Installing
-
pyam232x をインストールします。
pip install pyam232x
以上。
Usage
-
気温を取得する。
$ am232x temperature 17.9 -
湿度を取得する。
$ am232x humidity 35.1 -
不快指数を取得する。
$ am232x discomfort 66.282484 -
JSON 形式で気温、湿度、不快指数を取得する。
$ am232x json {"discomfort": 66.282484, "temperature": 21.6, "humidity": 35.1}
Configuration
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details
Metadata
Release files for pyam232x 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyam232x-1.0.1.tar.gz | 10.1 kB | Without provenance | Details for pyam232x-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyam232x-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyam232x-1.0.1-py2.py3-none-any.whl |
Total release size: 20.3 kB
Release files / pyam232x-1.0.1.tar.gz
| Download URL | pyam232x-1.0.1.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3926ccc1bbec71f71dbaad225e26a9c97db6bcc1217095e8ab2854eb85a6aad
|
|
BLAKE2b-256 checksum How to use checksums |
7e7fcf78dff39603cd5957e22708946afe6afc85ca7669cbd65b466668542af7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / pyam232x-1.0.1-py2.py3-none-any.whl
| Download URL | pyam232x-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a1e370aacdac45778ce0b1583fe91f54c9ab95be65b7c80e9fb0be6e5ec7ca0b
|
|
BLAKE2b-256 checksum How to use checksums |
9bc8b84cdfee9f996edc80ad2d4b26c3d1dfd1d09a839d3ceca6ad1fc3303239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for pyam232x 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.