Temperature monitoring and alerting system which informs if any anomaly is detected such as someone opening the fridge, indicated by a sudden rise in temperature. Its applications are in the industries for monitoring temperature which needs to be constant, for home security systems etc.
I have used the concept of Internet of Things to do this project with help of Bolt Wi-Fi Module.
The final working and the output of this project is shown in the following video.
Step 1:
Login to cloud.boltiot.com and note the ID of your Bolt Wi-Fi Module.
Plug the Bolt module through a USB cable to a power supply.
Link the Bolt device to the cloud.
Circuit connection is done as shown in the figure below.
Go to the Products tab and configure it.
Complete the hardware connections and the code to get the prediction graph.
Go to devices and deploy the product and then click on the view this device button.
Now you are done with setting up the Bolt Module.
Step 2:
Get the API key and the Bolt Device number and store it in a file as it is confidential.
Step 3:
Now you have to create a mailgun account so that email can be sent informing us about the anomaly.
Go to app.mailgun.com and create an account.
Go to the Domain and note down all the credentials, save it in another file.
Step 4:
Using Ubuntu create a file named email_conf.py to store all the API key, secret tokens and Bolt number which you will later use in the code.
Keeping the Bolt module with the circuit connections done in the refrigerator for about 2 hours you can find the minimum and maximum temperature of the fridge. Using this temperature range we get the threshold values for our program. When you click on view the device button a graph is plotted. Save the data in an excel sheet and find the minimum and maximum temperature.
Now write the python code in ubuntu and it is shown in the following figure. In this code we have written 2 functions named computebounds and anomaly. This code will send the email when the temperature crosses the threshold or when there is an anomaly. Z-score analysis is done to find the anomaly.
The output of this code will look as follows.
This email is sent when the temperature crosses the threshold.
This email is sent when an anomaly is detected i.e. when someone opens the fridge.
Comments
Please log in or sign up to comment.