Nischith Manjunath
Created July 3, 2020

Vault/Safes Monitoring system Using BOLT IOT

It is a device which helps in anti theft application, it monitors you vault through out and also stores the data in cloud.

IntermediateWork in progress3 hours6
Vault/Safes Monitoring system Using BOLT IOT

Things used in this project

Hardware components

PHPoC Bread Board
PHPoC Bread Board
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1
Resistor 10k ohm
Resistor 10k ohm
×1
Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
LDR, 5 Mohm
LDR, 5 Mohm
×1
Android device
Android device
×1
Programmable Wireless
Twilio Programmable Wireless
×1

Software apps and online services

Bolt IoT Android App
Bolt IoT Android App
Bolt Cloud
Bolt IoT Bolt Cloud
SMS Messaging API
Twilio SMS Messaging API

Story

Read more

Schematics

Connection

Connections

screenshot_(30)_F8w2KRlK9J.png

msg_P96txywhiw.PNG

message from twilio

Code

Code for GRAPH

JavaScript
setChartLibrary('google_chart');
setchartType('linegraph');
setChartTitle('locker_monitor');
setAxisname('Time','locker condition');
plotChart('time_stamp','light');
setCrossHair(true);

code for SMS Twilio

Python
SID = 'You can find SID in your Twilio Dashboard' 
AUTH_TOKEN = 'You can find  on your Twilio Dashboard' 
FROM_NUMBER = 'This is the no. generated by Twilio. You can find this on your Twilio Dashboard'
TO_NUMBER = 'This is your number. Make sure you are adding +91 in beginning'
API_KEY = 'This is your Bolt Cloud accout API key'
DEVICE_ID = 'This is the ID of your Bolt device'

Final code for SMS twilio

Python
import conf
from boltiot import Sms, Bolt
import json, time

minimum_limit = 0
maximum_limit = 720 


mybolt = Bolt(conf.API_KEY, conf.DEVICE_ID)
sms = Sms(conf.SID, conf.AUTH_TOKEN, conf.TO_NUMBER, conf.FROM_NUMBER)


while True: 
    response = mybolt.analogRead('A0') 
    data = json.loads(response) 
    print("Sensor value is: " + str(data['value']))
    try: 
        sensor_value = int(data['value']) 
        if sensor_value > maximum_limit or sensor_value < minimum_limit:
            print("Making request to Twilio to send a SMS")
            response = sms.send_sms("Someone opened your locker")
            print("Response received from Twilio is: " + str(response))
            print("Status of SMS at Twilio is :" + str(response.status))
    except Exception as e: 
        print ("Error occured: Below are the details")
        print (e)
    time.sleep(10)

Credits

Nischith Manjunath

Nischith Manjunath

0 projects • 0 followers
Thanks to Nischith Manjunath.

Comments