Google Apps Script to Check on Wally Home Sensors via API
Installation
To use this script:
-
Log on to your Google account
-
Go to http://script.google.com
-
File > New > Project > Blank Project
-
Replace the text you find there with the CheckOnWallyHome.gs file found here
-
Change the Project Name at the top of the page to CheckOnWallyHome
-
Change Code.gs to CheckOnWallyHome
-
Run > CheckOnWallyHome
-
When the Authorization Required dialog box comes up, press Continue
-
When the next dialog box comes up, press Accept.
You are allowing the app to retrieve information from the Wally Home API service and send emails to you. -
Log on to http://my.wallyhome.com
-
Go to Settings
-
Press Generate Token
-
Copy the token to the clipboard
-
Go back to the script editor
-
Replace xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx with the token pasted from the clipboard
-
replace x.gmail.com with your email address
-
File > Save
-
Resources > Current Project's Triggers
-
Click on No triggers set up. Click here to add one now.
-
Run should contain CheckOnWallyHome
-
Events should be Time-driven, hour driven, and every hour. You may want to change Every hour to a longer interval using the drop down.
-
Save
-
File > Save
The script will now run at whatever interval you selected and report on all places and all sensors at all places that are registered in your My Wally Home account.