Measure and show temperature, humidity and discomfort from AM2321/AM2322.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyam232x-1.0.0.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file pyam232x-1.0.0.tar.gz
.
File metadata
- Download URL: pyam232x-1.0.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481588bc4c6d2b1d33bfefdfb3ec7d8fdf783b5c6c8807bc4afd80407401a873 |
|
MD5 | 72ee4d53abbe859680894d2a615fdd6f |
|
BLAKE2b-256 | b74056448ca47f48fd665886d9d50ff571f04cc37aa46b28d2416aeb6995cf78 |
File details
Details for the file pyam232x-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyam232x-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a8698a6d11378e953f7b57618200819c0fc93e34eb4bd28419c6704a01eb72 |
|
MD5 | 6b774c966618b791b00daed82c97fc04 |
|
BLAKE2b-256 | 7b8c25e024837a6b10c1cd4e267140de4ac5f7e0399f9d2b29567574d687dab4 |