Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.13 KB

README.md

File metadata and controls

55 lines (44 loc) · 1.13 KB

where-is-my-wife

A Node module to interact with iCloud/Alexa

Installation

 npm install
 zip -r ../where.zip *
 load where.zip in Amazon lambda
 create an Alexa skill and point to your lambda endpoint

Summary

Using the find-my-phone library and AWS lambda, we can ask Alexa the location/distance of an apple device.

So you should be able to go, 'Alexa, ask <your skill app name> where is my wife?' and 'Alexa, ask <your skill app name> how far is she from me?'

Links

https://console.aws.amazon.com/lambda - setup your lambda function here https://developer.amazon.com/edw/home.html#/ - setup your alexa skill here

Environment Variables in Lambda

Env Variable Description
name icloud username
pass icloud password
device_name mobile device
my_latitude your location
my_longtitude your location

Alexa Settings

Intent Schema

"intents": [
{
"intent": "WhereIntent"
},
{
"intent": "HowFarIntent"
},
{
"intent": "AMAZON.HelpIntent"
}
]
}

Sample Utterances

WhereIntent Where
HowFarIntent How far