BHANUSHALI MEETKUMAR VASANTBHAI
Published © GPL3+

Home Monitoring and Control Using Bolt WiFi Module

In this project I have used bolt WiFi module and bubble. io service to make a user interface which can control the home appliances.

IntermediateFull instructions provided3 hours3
Home Monitoring and Control Using Bolt WiFi Module

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
as a wifi module
×1
Buzzer
Buzzer
for alarm system
×1
LED (generic)
LED (generic)
for indicator
×1
PTS 645 Series Switch
C&K Switches PTS 645 Series Switch
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Grove - Ultrasonic Ranger
Seeed Grove - Ultrasonic Ranger
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Bolt Cloud
Bolt IoT Bolt Cloud
Digispark DigitalOcean cloud
Arduino IDE
Arduino IDE
BlueApp.io bubble.io
SMS Messaging API
Twilio SMS Messaging API

Hand tools and fabrication machines

Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

Story

Read more

Schematics

user interface

circuit diagram

final UI

Code

code for linux server

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

mybolt = Bolt(conf6.API_KEY, conf6.DEVICE_ID)
sms = Sms(conf6.sender, conf6.receiver, conf6.token, conf6.id)
while True:
    response = mybolt.analogRead('A0')
    data = json.loads(response)
    if data['success'] != 1:
        print("There was an error while retriving the data.")
        print("This is the error:"+data['value'])
        time.sleep(10)
        continue

    print ("This is the value "+data['value'])
    sensor_value=0
    try:
        sensor_value = int(data['value'])
    except e:
        print("There was an error while parsing the response: ",e)
        continue

    time.sleep(10) 
    continue

    try:
        if sensor_value > 375 :
            print ("The temp. level increased suddenly. Sending an SMS.")
            response_text = json.loads(response.text)
            print("Response received from twillio is: " + str(response_text['message']))
        elif sensor_value < 325:
            print ("The temprature level decreased suddenly. Sending an SMS.")
            response_text = json.loads(response.text)
            print("Response received from Mailgun is: " + str(response_text['message']))
        history_data.append(sensor_value);
    except Exception as e:
        print ("Error",e)
    time.sleep(10)

data file

Python
id = '59c1f3a568a54ec0b07d83d75660cead-c50f4a19-5f25305e' 
authtaken = 'sandbox862677e2420a4cc79ea1dbaefa386ff7.mailgun.org' 
sender_number = '@sandbox862677e2420a4cc79ea1dbaefa386ff7.mailgun.org'
receiver_number =
API_KEY = '1ce7a209-6c5a-4dca-ac6f-7e3dab0bf224'
DEVICE_ID = 'BOLT3847475'

Credits

BHANUSHALI MEETKUMAR VASANTBHAI

BHANUSHALI MEETKUMAR VASANTBHAI

0 projects • 0 followers

Comments

Add projectSign up / Login