Monday, November 6, 2017

Google Apps not working with Mobile Data [Solved]

Some mobile may have experienced a problem with Google App's not opening in mobile data. This problem might be due to having fixed Proxy and Port in our Mobile data setting. To resolve this Problem please follow the following steps.

1. Go to Setting
2. Go to Cellular Network
3. Go to Access Point
4. Now click on the Access point you already have.
5. In the access point please clear the values in Proxy, Port, MMS, Username and password if there is any values on those field.
6. Save the setting

The required configuration has been shown in side image as well.

Now, restart your cell and this should solve the issue with Google App's not being opened from Mobile data. We have tested the issue with above solution and found to be working. but If you still experienced the issue please do comment below and we will provide you other possible alternative solution.

- Thank You

How to Open Multiple URL In Selenium Automation Using Python


Today we are going to show you, how we can open multiple URL from CSV file using Python. First we have to create new python file. After creating the python file we need to import following libraries in python
 
import csv
from selenium import webdriver
 



Now,  We have to create main function to for CSV url reader.

if __name__ == "__main__":
    with open("URL.csv") as url_obj:
        csv_url_reader(url_obj)
 
The structure of CSV file is as below, we can give our own type here.

SN,Site Name,URL
1,Amazon,https://amazon.com
2,Yahoo,https://yahoo.com
3,Google,https://google.com
SN
Site Name
URL
1
Amazon
https://amazon.com
2
Yahoo
https://yahoo.com
3
Google
https://google.com

 
Then, we can read CSV file using csv_url_reader function as below function
def csv_url_reader(url_obj):
    reader = csv.DictReader(url_obj, delimiter=',')
    for line in reader:
        print(line["SN"],line["Site Name"],line["URL"]),
        URL = line["URL"]
        site = line["Site Name"]
        chromedriver = "D:\Automation\Python\chromedriver"        driver = webdriver.Chrome(chromedriver)
        driver.get(URL)
        try:
            assert site in driver.title
        except AssertionError:
            print("Title don't match")
        else:
            print("Title Matched")
        driver.quit()

Here, we are reading csv line by line and driver.get(URL) is opening each URL from CSV file in the loop. The chrome driver location may varies as it is the location of chromedriver we have kept in our machine. The assert function is performing assertion test with the Site name and Title matched will be shown if assert pass.

Complete Code:
import csv
from selenium import webdriver
def csv_url_reader(url_obj):
    reader = csv.DictReader(url_obj, delimiter=',')
    for line in reader:
        print(line["SN"],line["Site Name"],line["URL"]),
        URL = line["URL"]
        site = line["Site Name"]
        chromedriver = "D:\Automation\Python\chromedriver"        driver = webdriver.Chrome(chromedriver)
        driver.get(URL)
        try:
            assert site in driver.title
        except AssertionError:
            print("Title don't match")
        else:
            print("Title Matched")
        driver.quit()
# ----------------------------------------------------------------------if __name__ == "__main__":
    with open("URL.csv") as url_obj:
        csv_url_reader(url_obj)

Sunday, January 19, 2014

GSM Based Smart Home System System using MICROCONTROLLER


This project aims to develop and to design a smart home system by sending short message service (SMS) via global system for mobile communication (GSM modem) to invent the security system for home owners. The concept of smart home is an emerging issue to the modern technology dependent society. Remote control technologies are widely used to control household electronic appliances without walking up to them. Controlling household appliances through computer can also be a possible solution. However, it cannot fulfill the current demand which is to control them from remote places. The advantages of cellular communications like GSM technology is a potential solution for such remote controlling activities. GSM and SMS technology can be used to control household appliances from remote places. GSM modem was used for receiving SMS from user’s mobile phone that automatically enable the controller to take any further action such as to switch ON and OFF the home appliances such as light, air- conditioner, and fan. The objective of this project is to enable users to remotely control their home appliances and systems using a cell phone-based interface.  To access the control unit, the user should send an authentication code along with the required/desired function/action to his/her home control system via GSM.  Upon being properly authenticated, the cell phone-based interface at home (control unit) would relay the commands to a microcontroller that would perform the required function/action, and return a function completion code that would be sent to the source of the original command (user’s cell phone). There is also some feature which send the sms to the user when there ocur abnormal event in house like firing and theif..
GSM Based Smart Home System
for detail coding and circuit diagram please send us mail. You can find our mail from contact us tab.
Thank You...

Photometer With Light Automation Using Microcontroller

Today’s   world is rapidly switching into the automatic world. Human man power should be replaced by machine. The street and others light we use today should be switched by man.  If it has not switched timely it may lead to the some serious problem and also cause great loss of power. Light intensity takes the great role in this field. In chemical lab and in the study of photometry light intensity should be measured timely. Our project “Photometer with light automation” will be the building block to overcome this issue. This project will be helpful for determining the current time intensity value through which the lighting system will be controlled. We can switch the light at the any desire value of light intensity through microcontroller.
Photometer with light automation-Block diagram


For code, circuit diagram and further detail comment below or contact us...