This is an example of simple Nwave GraphQL API client. It enables to get the occupancy data on demand or subscribe to occupancy data change notifications.
- Install Python 3 and Pip
- Install
poetry
$ pip install poetry
- Install dependencies
$ poetry install
- Open file
tests/example.py
in an editor - Replace value of variable
AUTH_TOKEN
by your Nwave authorization token - Replace values of variable
ZONE_ID
andFLOOR_NUMBER
by identifiers of your infrastructure objects - Run the example by command
$ PYTHONPATH=src poetry run python3 ./tests/example.py