From 7cf49d6968ad39e6f4d7ecc9f8610138dc15b58c Mon Sep 17 00:00:00 2001 From: cs151051 Date: Mon, 25 Nov 2019 23:44:41 +0200 Subject: [PATCH] v1.1 --- README.md | 2 +- {iNode => gatewayNode}/Makefile | 0 {iNode => gatewayNode}/data.json | 0 {iNode => gatewayNode}/parking.py | 2 +- sensorNode/{sensor => }/sensor.ino | 6 ++---- 5 files changed, 4 insertions(+), 6 deletions(-) rename {iNode => gatewayNode}/Makefile (100%) rename {iNode => gatewayNode}/data.json (100%) rename {iNode => gatewayNode}/parking.py (97%) rename sensorNode/{sensor => }/sensor.ino (91%) diff --git a/README.md b/README.md index cd44668..e66601b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # smartParking -#Authors: Oulis Evangelos, Oulis Nikolaos, Drosos Katsibras +#Authors: Oulis Evangelos, Oulis Nikolaos, Katsibras Drosos #=================================================================== Smart and Autonomous parking. diff --git a/iNode/Makefile b/gatewayNode/Makefile similarity index 100% rename from iNode/Makefile rename to gatewayNode/Makefile diff --git a/iNode/data.json b/gatewayNode/data.json similarity index 100% rename from iNode/data.json rename to gatewayNode/data.json diff --git a/iNode/parking.py b/gatewayNode/parking.py similarity index 97% rename from iNode/parking.py rename to gatewayNode/parking.py index 65981d1..2e24e06 100644 --- a/iNode/parking.py +++ b/gatewayNode/parking.py @@ -8,7 +8,7 @@ import requests import json # Open file to configure communication with server. -with open('data.json', 'r') as json_file: +with open('/home/pi/project/data.json', 'r') as json_file: json_data = json_file.read() if json_data != "" and json_data != None: diff --git a/sensorNode/sensor/sensor.ino b/sensorNode/sensor.ino similarity index 91% rename from sensorNode/sensor/sensor.ino rename to sensorNode/sensor.ino index 854363e..487bc13 100644 --- a/sensorNode/sensor/sensor.ino +++ b/sensorNode/sensor.ino @@ -1,8 +1,6 @@ /* -* Ultrasonic Sensor HC-SR04 and Arduino Tutorial -* -* by Dejan Nedelkovski, -* www.HowToMechatronics.com +* Athors: Oulis Evnagelos, Oulis Nikolaos, Katsibras Drosos +* Ultrasonic Sensor HC-SR04 and Arduino * */