Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcblw/rfidmail
demo of using sendgrid send out a email only on certain rfid keys
https://github.com/jcblw/rfidmail
Last synced: 16 days ago
JSON representation
demo of using sendgrid send out a email only on certain rfid keys
- Host: GitHub
- URL: https://github.com/jcblw/rfidmail
- Owner: jcblw
- Created: 2014-01-26T17:14:29.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T14:14:46.000Z (over 7 years ago)
- Last Synced: 2024-10-11T14:38:56.046Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RFIDMail
send an email with the swipe of an rfid card, only authed ones.
### Install
```
git clone https://github.com/jacoblwe20/rfidmail.git
cd rfidmail
npm install
```Then youll need to do some additional setup. Go to [Sendgrid](https://sendgrid.com/user/signup) to signup for an account. Then in your directory create a file named `.env` and file out your information. Here is an example.
```
SENDGRIDUSERNAME=bigballer22
SENDGRIDPASSWORD=playa4lyfe
ACCESSKEY=5300661E9BBA
[email protected]
[email protected]
```Onces you have those two things setup you can run the app.
```
[sudo] node index.js
```### RFID Issues
The path `/dev/ttyUSB0` with not be the right path for everyone, please findout what path you RFID card reader is on. You can do this by looking in `/dev`
```
cd /dev
#unplug device
ls
#plug in device
ls
# look for changes
```or you can add this to your `index.js`
```
serialport.list( function ( err, res ) {
if ( err ) return console.log( 'Error: ', err );
console.log( res );
})
```The compName will be the location, and then add that where '/dev/ttyUSB0' is.