Temperature monitoring is important for various industries like health care, pharmaceutical, food, laboratories, and many more. The temperature parameter has to be maintained strictly in such industries in order to produce products that are as per the standards of local and international law. Unfortunately, if something goes wrong, it can cause a lot of financial damage to such industries. This IoT enabled project helps to alert via SMS/eMail if the temperature is not as per the user set standards. It also helps in predicting the temperature using already recorded data. hhh
1. Download VirtualBox for your system from https://www.virtualbox.org/wiki/Downloads.
2. Install VirtualBox on your system.
3. Download Ubuntu Server from https://ubuntu.com/download/server.
4. Open VirtualBox.
5. Click on New.
6. Complete the following steps by clicking on the Next button using default settings.
7. Now select the newly created OS and click on Start.
8. Select the start-up disk i.e. enter the path where the ubuntu server iso file which we downloaded earlier is stored.
9. Follow the instructions for installation.
10. Connect the components as shown in the images below.
11. The final connections should look like this:
12. Download the Bolt IoT app on your phone and follow the instructions to set up your bolt IoT module to your wifi and Bolt Cloud.
13. Log in to your Bolt Cloud Account.
14. Go to the Products tab and click on add product.
15. Follow the setup instructions
16. Type the following code in the Code tab
17. Click on Save your Configuration and then click Exit.
18. Click on link device to this product and select your Bolt IoT device.
19. Once linked click on Deploy Configuration.
To send SMS we will use Twilio and for eMail, we will use mailgun.
20. Create your account on Twilio and mailgun by visiting their respective websites.
Now for the coding part!
21. Open your VirtualBox and login to your Ubuntu Server.
22. Create two configuration files one having details of Twilio and other having details of Mailgun as follows
23. Now create a temp_sms.py file and type the following code.
24. Now repeat the same for temp_email.py file.
25. That's it! Now execute the code and if the temperature is not in the given range you will receive the SMS and eMail.
Now for the prediction part, make sure that the device has been kept ON for some time for the data to be collected in the cloud.
26. After some time log in to your Bolt Cloud account and click on the View this Device button.
27. It will take you to the device page and the graph of collected data will be displayed.
28. Now click on the Predict button.
29. It displays the predicted graph.
Comments