In the Firebase data store, we store the item ID, the timestamp of storing the item inside a kitchen cabinet, and the latest timestamp when it was taken out. The ID of the cabinet is also recorded to keep track of the location of storage. As soon as an event of storing or taking out an item occurs, a quick data analysis is performed, and an SMS is sent to alert the user if the inventory needs attention.
For the purposes of this project, the SMS can be sent using third-party service providers that work over the Internet. Twilio (https://www.twilio.com) provides a REST API using which our Photon can send SMS to users. The integration of Twilio with the Photon is done using webhooks, and the webhook event is triggered by the Photon using Particle.publish()
.
The following is a list of some use cases which can be implemented by modifying the code in the previous sections:
Send an SMS notification to the user whenever a new item is placed on the shelf.
Send...