This is a collection of helpful scripts for Nuki Web.
To use these scripts, you need a Nuki Web API token, which can be generated at https://web.nuki.io/de/#/admin/web-api. Required permissions are:
- View and edit devices
- Operate devices
- View and manage authorizations
This script merges orphan authorizations in Nuki Web back to their respective users, based on name alone.
yarn install- Set the API token into the
API_KEYenv variable and runyarn run merge.
This script triggers a sync command for all locks (you can confirm one by one).
yarn install- Set the API token into the
API_KEYenv variable and runyarn run syncAll.
This script bulk imports user from a JSON file.
yarn install- Put a file named
users.jsoninto the root directory, including an array of objects withfullNameandemailproperties. - Set the API token into the
API_KEYenv variable and runyarn run import.
This script shows all users that have authorizations to lock/unlock at least one lock remotely.
yarn install- Set the API token into the
API_KEYenv variable and runyarn run findRemote.