From f5c1ee6ad2a14822f10ebc809f6ccf98c855fd35 Mon Sep 17 00:00:00 2001 From: tintinmovie <31559358+tintinmovie@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:49:26 +1300 Subject: [PATCH 1/5] Add files via upload --- Drola_Base_Node/api/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Drola_Base_Node/api/requirements.txt diff --git a/Drola_Base_Node/api/requirements.txt b/Drola_Base_Node/api/requirements.txt new file mode 100644 index 0000000..e002f0f --- /dev/null +++ b/Drola_Base_Node/api/requirements.txt @@ -0,0 +1,2 @@ +autobahn>=18.10.1 +Twisted>=18.9.0 \ No newline at end of file From 3ccef1e5b81218e3fb5384437d369d4339cffca4 Mon Sep 17 00:00:00 2001 From: tintinmovie <31559358+tintinmovie@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:51:32 +1300 Subject: [PATCH 2/5] Update index.html --- Drola_Base_Node/web/index.html | 85 +++++++++++++++++----------------- 1 file changed, 42 insertions(+), 43 deletions(-) diff --git a/Drola_Base_Node/web/index.html b/Drola_Base_Node/web/index.html index b36476a..3385afc 100644 --- a/Drola_Base_Node/web/index.html +++ b/Drola_Base_Node/web/index.html @@ -5,7 +5,7 @@ -DroLa Admin Pannel +DroLa Admin Panel @@ -36,6 +36,14 @@ + + + + @@ -53,6 +61,8 @@

DroLa Admin

+ +
@@ -157,9 +167,10 @@

DroLa Admin

-
+
+ + - @@ -178,26 +189,22 @@

DroLa Admin

- + - - -clear +clear From 0bccd754f1de8c609868baa84df61e027c802e87 Mon Sep 17 00:00:00 2001 From: tintinmovie <31559358+tintinmovie@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:57:50 +1300 Subject: [PATCH 4/5] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b16f07..1b966ff 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,18 @@ Setup the units according to the shematics given in the `LoRa_End_Node`. End nod ``` npm start ``` -3) Start the Websocket server and Websocket client to see the the end node locations in the browser application +3) Install neccessary python packages for websocket server and client + ``` + cd Drola_Base_Node/api + pip install -r requirements.txt + ``` +4) Start the Websocket server and Websocket client to see the the end node locations in the browser application ``` cd Drola_Base_Node/api python socket_server.py python read_serial.py ``` -4) Go to http://localhost:3000/ in your browser to see all the locations of the Live End Nodes. +5) Go to http://localhost:3000/ in your browser to see all the locations of the Live End Nodes. **Note:** You can test the api by running `socket_client.py` instead of `read_serial.py`. It will show you some hard-coded locations. Trusted zones are not implemented yet to protect AES keys. The keys are hardcoded in this version. From ebf5fdc79842e92df244b3dcc766e7b1aa8d8c0f Mon Sep 17 00:00:00 2001 From: tintinmovie <31559358+tintinmovie@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:02:22 +1300 Subject: [PATCH 5/5] Update index.html --- Drola_Base_Node/web/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Drola_Base_Node/web/index.html b/Drola_Base_Node/web/index.html index 23afc9c..55b7ccb 100644 --- a/Drola_Base_Node/web/index.html +++ b/Drola_Base_Node/web/index.html @@ -196,7 +196,7 @@

DroLa Admin