A Node module to interact with iCloud/Alexa
npm install
zip -r ../where.zip *
load where.zip in Amazon lambda
create an Alexa skill and point to your lambda endpoint
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?'
https://console.aws.amazon.com/lambda - setup your lambda function here https://developer.amazon.com/edw/home.html#/ - setup your alexa skill here
Env Variable | Description |
---|---|
name | icloud username |
pass | icloud password |
device_name | mobile device |
my_latitude | your location |
my_longtitude | your location |
"intents": [
{
"intent": "WhereIntent"
},
{
"intent": "HowFarIntent"
},
{
"intent": "AMAZON.HelpIntent"
}
]
}
WhereIntent Where
HowFarIntent How far