Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous-ME committed Nov 9, 2017
1 parent 4363a39 commit 24d1875
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 4 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Automata
“Automata (IIITA - IoT) , A Smart Campus Initiative To Save Electricity”
## User Interface
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/0.png" height="350px" align="left" />
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/1.png" height="350px" align="left" />
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/2.png" height="350px" align="left" />
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/3.png" height="350px" align="left" />

### Android app is available on Google Play:

[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" alt="Get it on Google Play" height="60">](https://play.google.com/store/apps/details?id=anonymous.automata)

## About

<a name="docs-internal-guid-a8090881-a246-522d-9993-e252ff542a97"></a><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><span style="background: transparent">“</span></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4">_<span style="font-weight: normal"><span style="background: transparent">Automata (IIITA - IoT) , A Smart Campus Initiative To Save Electricity</span></span>_</font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><span style="background: transparent">”</span> </span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal"><span style="font-weight: normal"><span style="background: transparent">is an IoT solution to save electricity in our campus buildings . We aim to provide an easy to use interface to control the lights and fans in our campus . We shall have three major components in our project namely</span> </span></span></font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal">**<span style="background: transparent">The Server</span>**</span></font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"> <span style="background: transparent"></span> </span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal"><span style="font-weight: normal"><span style="background: transparent">,</span> </span></span></font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal">**<span style="background: transparent">Android Mobile Application</span>**</span></font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"> <span style="background: transparent"></span> </span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal"><span style="font-weight: normal"><span style="background: transparent">and</span> </span></span></font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal">**<span style="background: transparent">Hardware</span>**</span></font></font></span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"> <span style="background: transparent"></span> </span></font></span><span style="font-variant: normal"><font color="#000000"><span style="text-decoration: none"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="font-style: normal"><span style="font-weight: normal"><span style="background: transparent">. There are two modes in which our IoT model will operate :</span></span></span></font></font></span></font></span>

* <font color="#000000"><font face="Arial"><font style="font-size: 12pt" size="3">**<span style="background: transparent">Automatic Mode :</span>** <span style="background: transparent">The IoT will work purely based on the percept sequence it receives from its sensors .</span></font></font></font>

* <font color="#000000"><font face="Arial"><font style="font-size: 12pt" size="3">**<span style="background: transparent">Manual Control Mode :</span>** <span style="background: transparent">The operator will have to control the lights and fans manually from the app’s control panel .</span></font></font></font>

<font color="#000000"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="background: transparent">We have used ESP8266 and raspberry pi to build a complete sensor network. The raspberry pi runs an API server which connects it to our android mobile application.The android mobile application presents user with a user friendly UI and provides full control over their appliances . The user can view the current state of the room . In Our mobile application we have two major sections namely:</span></font></font></font>

* <font color="#000000"><font face="Times New Roman"><font style="font-size: 14pt" size="4">**<span style="background: transparent">Control Center</span>**</font></font></font>

<font color="#000000"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="background: transparent">In this section of the app we will provided the manual control to the operator to turn on / off the lights and fans .</span></font></font></font>

* <font color="#000000"><font face="Times New Roman"><font style="font-size: 14pt" size="4">**<span style="background: transparent">Monitor</span>**</font></font></font>

<font color="#000000"><font face="Times New Roman"><font style="font-size: 14pt" size="4"><span style="background: transparent">In this section of the app we will display the data collected from the sensors in readable format to our operator / user .</span></font></font></font>
Binary file added UI_art/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UI_art/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UI_art/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UI_art/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "anonymous.automata"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionCode 3
versionName "1.6"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
7 changes: 5 additions & 2 deletions app/src/main/java/anonymous/automata/Automata.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import android.app.Application;
import android.content.SharedPreferences;
import android.webkit.URLUtil;
import android.widget.Toast;

import com.google.firebase.messaging.FirebaseMessaging;
import com.loopj.android.http.AsyncHttpClient;
Expand Down Expand Up @@ -43,12 +45,13 @@ public void onCreate() {
String value_ip = settings.getString("server_ip", "");

//Set Default Settings Values
if (value_mode == null) {
if (!(value_mode.equals("0")|value_mode.equals("1"))) {
SharedPreferences.Editor editor = settings.edit();
editor.putString("auto_mode", "0");
editor.commit();
}
if ( value_ip == null ) {

if ( !(URLUtil.isValidUrl(value_ip) & (value_ip.length()>=10 )) ) {
SharedPreferences.Editor editor = settings.edit();
editor.putString("server_ip", "http://192.168.1.2");
value_ip = "http://192.168.1.2";
Expand Down

0 comments on commit 24d1875

Please sign in to comment.