This program checks your gmail for messagess of a particular type and turns on your smartthings connected device. After x number of minutes the device is turned off.
Install nodejs https://nodejs.org/
!!! Note
All json files from the steps below are placed in the smartthings/config directory
** Follow Step 1 and 2 **
https://developers.google.com/gmail/api/quickstart/nodejs This is to allow access from this project to your gmail account
** Use the following to a gain access to your smart devices **
https://github.com/dpjanes/iotdb-smartthings#log-into-smartthings
Clone this project into a local directory
git clone https://github.com/MichaelATang/SmartthingsDlink.git
Run the npm install command to install the necessary node modules
npm install
Edit the smartthings/settings.json as required
Test using the following
node dlinksmartthings.js
Make a cron job to execute script as desired