ライブラリ管理にPoetryを使っています。
poetry install
poetry run python scripts/main.py --help
poetry run pysen run lint
poetry run pysen run format
poetry export --without-hashes -o requirements.txt
poetry export --without-hashes --with dev -o requirements-dev.txt
Create .env.
HOST_PORT=/dev/ttyUSB0
HOST_DATA_DIR=./data
HOST_DIALOUT_GID=20
INTERVAL=300
API_URL=http://hasura:8080/v1/graphql
ADMIN_SECRET=myadminsecretkey
| key | value |
|---|---|
| HOST_PORT | Arduino Serial device path (UID:GID = root:dialout) |
| HOST_DATA_DIR | Local data/db path (UID:GID = 2000:2000)(Harmonicaが安定稼働するまでの暫定的なHomeSensorPy相当機能の維持) |
| HOST_DIALOUT_GID | getent group dialout | cut -d: -f3 |
| INTERVAL | Interval by the second |
| API_URL | Hasura GraphQL API endpoint |
| ADMIN_SECRET | Hasura admin secret |
Content type
Image
Digest
sha256:dcf76ba84…
Size
389 MB
Last updated
over 1 year ago
docker pull aoirint/harmonica_sensor_node