ktooi / pyam232x Goto Github PK
View Code? Open in Web Editor NEWMeasure and show temperature, humidity and discomfort from AM2321/AM2322.
Home Page: https://pypi.org/project/pyam232x/
License: MIT License
Measure and show temperature, humidity and discomfort from AM2321/AM2322.
Home Page: https://pypi.org/project/pyam232x/
License: MIT License
doctest を通す方法を模索する。
現状、 workflow で実行される doctest が fail してしまう。
UNEXPECTED EXCEPTION: FileNotFoundError(2, 'No such file or directory')
が出ているので、恐らく /dev/i2c-1
が存在していないのではないかと推察する。
実行環境に因るところだと思われるが、対応を検討する。
■ FYI
失敗した job のログは下記。
============================= test session starts ==============================
platform linux -- Python 3.7.9, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/runner/work/pyam232x/pyam232x
plugins: cov-2.11.1
collected 1 item
am232x/am232x.py F [100%]
=================================== FAILURES ===================================
________________________ [doctest] am232x.am232x.AM232x ________________________
016
017 Examples:
018
019 次のようにシンプルに使うことができます。
020
021 Simple usage is as follows.
022
023 >>> from am232x import AM232x
024 >>>
025 >>> am232x = AM232x(name="am2322")
UNEXPECTED EXCEPTION: FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/doctest.py", line 1337, in __run
compileflags, 1), test.globs)
File "<doctest am232x.am232x.AM232x[1]>", line 1, in <module>
File "/home/runner/work/pyam232x/pyam232x/am232x/am232x.py", line 61, in __init__
self._i2c = smbus.SMBus(bus)
FileNotFoundError: [Errno 2] No such file or directory
/home/runner/work/pyam232x/pyam232x/am232x/am232x.py:25: UnexpectedException
- generated xml file: /home/runner/work/pyam232x/pyam232x/junit/test-results-3.7.xml -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.