An oil container that can automatically order new oil via Amazon DRS when the oil level in the container is low.
Things used in this project
Story
Motivation
Have you ever craved to eat something but need to postponed cooking it just because you run out of oil? Now, this won’t happen again with the DRS Oil Container, an oil container that can automatically order new bottle of oil when you’re running low of it.
Software setup
This project utilize AmazonDRS Library. The library is available on GitHub together with tutorial to setup DRS with push button. Before you start coding, there few setups need to be done in order to enable the Genuino MKR1000 to initiate a purchase via the DRS API.
1. Create Amazon Developer account
3. Create a login with amazon (LWA) security profile
- Please take note of your Client ID and Client Secret as these need to be used in AmazonTokens.h file
4. Create a Dash Replenishment Device
- ASINs are Amazon’s version of unique product identification
- Please take note of the devices Model ID and the respective Slot ID
5. Authorize the device created earlier to make purchases and get authorization code grant
- After you finish editing the AmazonTokens.h file and add your refresh_token, your Genuino is now ready to initiate a purchase
Demo
In this demo, water is used instead of olive oil. The Genuino initiate a purchase when the level is below 5 cm.
Conclusion
The project is not limited to replenishment of oil only but can be extended to any type of liquid container.