Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoirint/harmonica_sensor_node
Harmonica node for Arduino environment sensor (HomeSensorIno): Arduino環境センサ読み取り記録クライアント
https://github.com/aoirint/harmonica_sensor_node
Last synced: about 1 month ago
JSON representation
Harmonica node for Arduino environment sensor (HomeSensorIno): Arduino環境センサ読み取り記録クライアント
- Host: GitHub
- URL: https://github.com/aoirint/harmonica_sensor_node
- Owner: aoirint
- License: mit
- Created: 2022-03-17T22:57:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T04:18:41.000Z (6 months ago)
- Last Synced: 2024-07-10T06:41:48.451Z (6 months ago)
- Language: Python
- Homepage:
- Size: 252 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Harmonica Sensor Node
## Links
- GitHub:
- Docker Hub:## Supported sensor device
-
## Development guide
- Python 3.11
ライブラリ管理に[Poetry](https://python-poetry.org/docs/#installation)を使っています。
```shell
poetry installpoetry run python -m harmonica_sensor_node --help
poetry run pysen run lint
poetry run pysen run format
```## Environment variables
Create `.env`.
```env
HOST_PORT=/dev/ttyUSB0
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_DIALOUT_GID| `getent group dialout \| cut -d: -f3` |
|INTERVAL|Interval by the second|
|API_URL|Hasura GraphQL API endpoint|
|ADMIN_SECRET|Hasura admin secret|