Node.js app that allows a guest and homeowner to share keys. This is just a sample project, not meant for production or real usage.
Also includes sketch for Bluz and Core/Photon to lock/unlock the door. As Bluz is not released yet, this should work on the Core, though it hasn't been tested
Code is not fully tested. Code is not production quality. It is just an example for a demo project
- Clone the repository
- Create file credentials.txt in the created directory, add your Spark username and password as json
- Run
$ node sesame_server.js
- Open localhost:8080/admin and localhost:8080/access in your browser
- In /access, enter your name (no spaces or special characters) and click Request Key
- In /admin, click Grant on the requested key. This will create an access token in the Spark Cloud on your account
- In /access, you can now use the Lock/Unlock buttons to trigger the function on Bluz