Inspiration
On average, according to the Natural Resources Defense Council, "America throws out more than 400 pounds of food per person per year. And when that food is wasted, so are the resources that go into producing it, including 21 percent of freshwater. Wasted food also generates climate change pollution equivalent to 37 million cars per year." Xpiri is a webapp connected to your Google Assistant built with the intent to reduce food waste.
What it does
Xpiri connected to Google Assistant to monitor how much food you have left your fridge. User enter in the food they buy and Xpiri will automatically remember when the food was put in fridge and track its progress after each day. It can also make you a recipe.
How I built it
The webapp is generated using AngularJS and Firebase. The data for expiration date is collected by using BeautifulSoup, a Python library for web scraping. The recipe autogeneration is done using Angular HTTP service to make a HTTP get request to a Mashape API. The Google Assistant SDK is integrated by using Dialogflow and deployed using Google Cloud Functions to connect with the database of the webapp.
Challenges I ran into
It takes a long time to integrate the Google Assistant SDK using Dialogflow as I have never messed around with this framework before. And since Most of the JavaScript for it is in ES6 syntax, and I could not deploy due to the errors from the strict linter.
Accomplishments that I'm proud of
Finally makes everything work together. The Assistant actually was able to deploy and test on my own mobile app, so I can communicate to my food tracker through my phone.
What's next for Xpiry
The recipe generation function right now is very bare, and haven't been able to take input from user yet. I hope to deploy the Google Assistant SDK to Google Home someday since talking with an IoT device is awesome!
Built With
- angular.js
- beautiful-soup
- dialogflow
- firebase
- google-cloud
- mashape-api
Log in or sign up for Devpost to join the conversation.