This is some javascript I used to get Google Assistant working with my Owlet smart sock back in 2018. I'm not sure if this still works, but people still keep asking for it in 2021 so I have decided to open source it.
https://www.youtube.com/watch?v=jOx2ZX8LafA
My memory is a bit foggy since I'm writing this tutorial 3 years after setting up my own project, but I'll do my best.
-
Enter your Owlet username and password at the top of fulfillment.js.
-
Replace "Olivia" with your baby's name in
dialogflow/intents/*.json
. Feel free to skip this step if your baby's name is in fact Olivia. -
Create a dialogflow project.
-
Upload
fulfillments.js
to dialogflow. You can use the inline editor. -
Replace xxxx with your project name in
dialogflow/agent.json
. -
Zip the
dialogflow
directory and import it. -
fulfillments.js
uses a few npm modules. I don't remember how I installed those, but I'm guessing there is a package.json you can edit somewhere.
-
Test and see if this actually works in current year
-
A detailed getting started tutorial
-
No card-coded baby name (search for Olivia in diaglogflow/)
-
No hard-coded username/password in fulfilment.js. Maybe even support multiple accounts so each user doesn't have to have their own dialogflow instance?
My kids are too old for the Owlet sock now so I don't have much interest in this project anymore. Let me know if you'd like to maintain the project.