diff --git a/traffic_analyzer/master_app/src/main/java/me/yigitcolakoglu/master_app/fan.png b/MyCity/classes/production/main/me/yigitcolakoglu/master_app/fan.png similarity index 100% rename from traffic_analyzer/master_app/src/main/java/me/yigitcolakoglu/master_app/fan.png rename to MyCity/classes/production/main/me/yigitcolakoglu/master_app/fan.png diff --git a/MyCity/classes/production/main/me/yigitcolakoglu/master_app/ips.json b/MyCity/classes/production/main/me/yigitcolakoglu/master_app/ips.json new file mode 100644 index 0000000..be4ac40 --- /dev/null +++ b/MyCity/classes/production/main/me/yigitcolakoglu/master_app/ips.json @@ -0,0 +1,5 @@ +{ + "qr": "127.0.0.3", + "intersection": "127.0.0.1", + "ambulance": "127.0.0.1" +} \ No newline at end of file diff --git a/MyCity/classes/production/main/me/yigitcolakoglu/master_app/userinfo.json b/MyCity/classes/production/main/me/yigitcolakoglu/master_app/userinfo.json new file mode 100644 index 0000000..19c4e71 --- /dev/null +++ b/MyCity/classes/production/main/me/yigitcolakoglu/master_app/userinfo.json @@ -0,0 +1,12 @@ +{ + "usernames": { + "qr": "admin", + "ambulance": "yigit", + "intersection": "admin" + }, + "passwords": { + "qr": "admin", + "ambulance": "Ygtclksbl1", + "intersection": "admin" + } +} \ No newline at end of file diff --git a/MyCity/ips.json b/MyCity/ips.json new file mode 100644 index 0000000..af65ec2 --- /dev/null +++ b/MyCity/ips.json @@ -0,0 +1,5 @@ +{ + "qr": "127.0.0.1", + "intersection": "127.0.0.1", + "ambulance": "127.0.0.1" +} \ No newline at end of file diff --git a/bus_stop/control_card/control_card.ino b/bus_stop/control_card/control_card.ino deleted file mode 100644 index 7761f9d..0000000 --- a/bus_stop/control_card/control_card.ino +++ /dev/null @@ -1,54 +0,0 @@ -int pins[] = {13,8,9,10,11,12}; -int light_pin = 0; - -void setup() { - - for(int i = 0; i<6; i++){ - pinMode(pins[i],OUTPUT); - } - -} - -void loop() { - while(Serial.read() != '/'){ - continue; - } - char prev = '!'; - char cur = '!'; - String data = ""; - while(Serial.read() != '/'){ - if(cur == '!' || prev != cur){ - prev = cur; - data += cur; - } - cur = Serial.read() - } - - for(int i = 0; i<2;i++){ - switch(data[i]){ - - case "g": - digitalWrite(pins[i*3],HIGH); - digitalWrite(pins[(i*2)+1],LOW); - digitalWrite(pins[(i*2)+2],LOW); - break; - - case "y": - digitalWrite(pins[i*3],LOW); - digitalWrite(pins[(i*2)+1],HIGH); - digitalWrite(pins[(i*2)+1],LOW); - break; - - case "r": - digitalWrite(pins[i*3],LOW); - digitalWrite(pins[(i*2)+1],LOW); - digitalWrite(pins[(i*2)+1],HIGH); - break; - - - } - } - - - -} diff --git a/bus_stop/qr_reader/starter.php b/bus_stop/qr_reader/starter.php new file mode 100644 index 0000000..f4577aa --- /dev/null +++ b/bus_stop/qr_reader/starter.php @@ -0,0 +1,17 @@ + /dev/null 2>&1 &"); +}else{ + echo " + + + + + + "; +} +?> \ No newline at end of file diff --git a/master_app/.idea/compiler.xml b/master_app/.idea/compiler.xml new file mode 100644 index 0000000..6232026 --- /dev/null +++ b/master_app/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/encodings.xml b/master_app/.idea/encodings.xml new file mode 100644 index 0000000..b26911b --- /dev/null +++ b/master_app/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__com_hierynomus_sshj_0_27_0.xml b/master_app/.idea/libraries/Maven__com_hierynomus_sshj_0_27_0.xml new file mode 100644 index 0000000..1d5aa46 --- /dev/null +++ b/master_app/.idea/libraries/Maven__com_hierynomus_sshj_0_27_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__com_jcraft_jzlib_1_1_3.xml b/master_app/.idea/libraries/Maven__com_jcraft_jzlib_1_1_3.xml new file mode 100644 index 0000000..897f365 --- /dev/null +++ b/master_app/.idea/libraries/Maven__com_jcraft_jzlib_1_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__net_i2p_crypto_eddsa_0_2_0.xml b/master_app/.idea/libraries/Maven__net_i2p_crypto_eddsa_0_2_0.xml new file mode 100644 index 0000000..2c74515 --- /dev/null +++ b/master_app/.idea/libraries/Maven__net_i2p_crypto_eddsa_0_2_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_60.xml b/master_app/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_60.xml new file mode 100644 index 0000000..3cc1493 --- /dev/null +++ b/master_app/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_60.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_60.xml b/master_app/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_60.xml new file mode 100644 index 0000000..f6ca3ad --- /dev/null +++ b/master_app/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_60.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__org_json_json_20180813.xml b/master_app/.idea/libraries/Maven__org_json_json_20180813.xml new file mode 100644 index 0000000..01c0a2e --- /dev/null +++ b/master_app/.idea/libraries/Maven__org_json_json_20180813.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_7.xml b/master_app/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_7.xml new file mode 100644 index 0000000..1e67260 --- /dev/null +++ b/master_app/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/misc.xml b/master_app/.idea/misc.xml new file mode 100644 index 0000000..2545dc7 --- /dev/null +++ b/master_app/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/modules.xml b/master_app/.idea/modules.xml new file mode 100644 index 0000000..397eb52 --- /dev/null +++ b/master_app/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/uiDesigner.xml b/master_app/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/master_app/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/master_app/.idea/vcs.xml b/master_app/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/master_app/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/master_app/.idea/workspace.xml b/master_app/.idea/workspace.xml new file mode 100644 index 0000000..f9b9589 --- /dev/null +++ b/master_app/.idea/workspace.xml @@ -0,0 +1,396 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1558953924923 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/traffic_analyzer/light_control/.idea/.name b/traffic_analyzer/light_control/.idea/.name new file mode 100644 index 0000000..e998e5e --- /dev/null +++ b/traffic_analyzer/light_control/.idea/.name @@ -0,0 +1 @@ +untitled_0 \ No newline at end of file diff --git a/traffic_analyzer/light_control/.idea/misc.xml b/traffic_analyzer/light_control/.idea/misc.xml new file mode 100644 index 0000000..8822db8 --- /dev/null +++ b/traffic_analyzer/light_control/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/traffic_analyzer/light_control/.idea/modules.xml b/traffic_analyzer/light_control/.idea/modules.xml new file mode 100644 index 0000000..00a4dc4 --- /dev/null +++ b/traffic_analyzer/light_control/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/traffic_analyzer/light_control/.idea/serialmonitor_settings.xml b/traffic_analyzer/light_control/.idea/serialmonitor_settings.xml new file mode 100644 index 0000000..b45564e --- /dev/null +++ b/traffic_analyzer/light_control/.idea/serialmonitor_settings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/traffic_analyzer/light_control/.idea/vcs.xml b/traffic_analyzer/light_control/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/traffic_analyzer/light_control/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/traffic_analyzer/light_control/.idea/workspace.xml b/traffic_analyzer/light_control/.idea/workspace.xml new file mode 100644 index 0000000..b36b37b --- /dev/null +++ b/traffic_analyzer/light_control/.idea/workspace.xml @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +