Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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環境センサ読み取り記録クライアント

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 install

poetry 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|