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.pyin an editor - Replace value of variable
AUTH_TOKENby your Nwave authorization token - Replace values of variable
ZONE_IDandFLOOR_NUMBERby identifiers of your infrastructure objects - Run the example by command
$ PYTHONPATH=src poetry run python3 ./tests/example.py