A Tessel powered RFID doorlock for the space, interfacing with Cobot
Go to file
2018-03-04 09:17:30 -08:00
__mocks__ A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.vscode A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
src Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
.editorconfig A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.env.example Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
.env.test Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
.eslintignore A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.eslintrc.yml A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.gitignore Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
.npmrc A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.nvmrc A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.prettierignore A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.prettierrc A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
.tesselinclude Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
jest.config.js A happy beginning 🚪🔒 2018-03-03 13:28:55 -08:00
package-lock.json Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
package.json Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00
readme.md Add Cobot card fetching, cleanup config setup. 2018-03-04 09:17:30 -08:00

Chimera Doorlock

A Tessel powered RFID doorlock for the space, interfacing with Cobot

Powered by a Tessel

Development

Follow the start guide on Tessel.io.

Install the correct version of node using nvm:

nvm install
nvm use
npm install

Now install t2-cli globally:

npm install -g t2-cli

Plug your Tessel in.

Now you can deploy to your connected Tessel device:

npm start

Testing

We use Jest to do testing of the core code in the library. Make sure to write tests for new code or update tests on existing code as needed. Test files are next to their source file named with a .test.js extension.

Run tests once: npm test

Run tests watching for changes: npm run watch-test

RFID Cards

Read cards from Cobot:

https://www.cobot.me/api-docs/check-ins#list-check-in-tokens

Useful Commands

# Connect to WiFi
t2 wifi -n network-name -p "some password"

# List devices
t2 list

# Update Tessel
t2 update

# Deploy code
t2 push index.js

# Clear code
t2 erase

# Create access point and server
t2 ap -n doorlock

Networking

To find the IP address of your Tessel, download the iOS app Fing and look for a device on your network called doorlock.

USB Storage

  • Make sure to format USB to be FAT32!