Skip to content

Commit 24d1875

Browse files
committed
Create README.md
1 parent 4363a39 commit 24d1875

File tree

7 files changed

+36
-4
lines changed

7 files changed

+36
-4
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Automata
2+
“Automata (IIITA - IoT) , A Smart Campus Initiative To Save Electricity”
3+
## User Interface
4+
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/0.png" height="350px" align="left" />
5+
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/1.png" height="350px" align="left" />
6+
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/2.png" height="350px" align="left" />
7+
<img src="https://github.com/anonymous-ME/Automata/blob/master/UI_art/3.png" height="350px" align="left" />
8+
9+
### Android app is available on Google Play:
10+
11+
[<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)
12+
13+
## About
14+
15+
<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>
16+
17+
* <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>
18+
19+
* <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>
20+
21+
<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>
22+
23+
* <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>
24+
25+
<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>
26+
27+
* <font color="#000000"><font face="Times New Roman"><font style="font-size: 14pt" size="4">**<span style="background: transparent">Monitor</span>**</font></font></font>
28+
29+
<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>

UI_art/0.png

1.73 MB
Loading

UI_art/1.png

1.87 MB
Loading

UI_art/2.png

1.68 MB
Loading

UI_art/3.png

1.7 MB
Loading

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "anonymous.automata"
88
minSdkVersion 15
99
targetSdkVersion 25
10-
versionCode 1
11-
versionName "1.0"
10+
versionCode 3
11+
versionName "1.6"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1313
}
1414
buildTypes {

app/src/main/java/anonymous/automata/Automata.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import android.app.Application;
44
import android.content.SharedPreferences;
5+
import android.webkit.URLUtil;
6+
import android.widget.Toast;
57

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

4547
//Set Default Settings Values
46-
if (value_mode == null) {
48+
if (!(value_mode.equals("0")|value_mode.equals("1"))) {
4749
SharedPreferences.Editor editor = settings.edit();
4850
editor.putString("auto_mode", "0");
4951
editor.commit();
5052
}
51-
if ( value_ip == null ) {
53+
54+
if ( !(URLUtil.isValidUrl(value_ip) & (value_ip.length()>=10 )) ) {
5255
SharedPreferences.Editor editor = settings.edit();
5356
editor.putString("server_ip", "http://192.168.1.2");
5457
value_ip = "http://192.168.1.2";

0 commit comments

Comments
 (0)