Onboarding Api with OAuth and physical button
npm install nodejs-api-serverOnboarding Api with OAuth and physical button
1. First you need to locate the IP of your gateway using either your router or scan using avahi-browse
#> avahi-browse -ar | grep gw2-.* -A3
This will list all mDNS records that have gw2-
Look for the ipv4.
2. Transfer the code to target GW
First check that you can access the gateway with ssh.
#> ssh root@
There is no password set for root.
#> cd
#> scp -r nodeJS root@
3. Now all files in the folder nodeJS are located on the gateway filesystem under /usr/local/nodeJS
4. Start the server
#> ssh root@
root@gw2-0ac3d654c2b4:~# cd /usr/local/nodeJS
root@gw2-0ac3d654c2b4:~# npm install
root@gw2-0ac3d654c2b4:~# npm start
1. Install postman on the host and start it
3. Then create a GET request with this link:
http://
4. Send it and check the return payload. It Should look like this:
{
"auth_code": "
}