From a4d7fa9b3b1d6320d9e9bb7acae25683d786918c Mon Sep 17 00:00:00 2001
From: SanderGi <97496861+SanderGi@users.noreply.github.com>
Date: Sun, 13 Feb 2022 21:30:16 -0800
Subject: [PATCH] Source v1.0.1
---
Source/README.MD | 3 +++
Source/app.py | 2 +-
Source/app.spec | 44 +++++++++++++++++++++++++++++++++++++++++++
Source/web/index.html | 11 +++++++----
Source/web/sketch.js | 25 ++++++++++++++++++++----
Source/web/style.css | 19 +++++++++++++++----
6 files changed, 91 insertions(+), 13 deletions(-)
create mode 100644 Source/app.spec
diff --git a/Source/README.MD b/Source/README.MD
index 7188a24..d4d8116 100644
--- a/Source/README.MD
+++ b/Source/README.MD
@@ -5,3 +5,6 @@ pip install PyInstaller
# Compile to exe:
python -m eel app.py web --onefile --noconsole
+
+# Compile to folder:
+python -m eel app.py web --noconsole
\ No newline at end of file
diff --git a/Source/app.py b/Source/app.py
index cbbda4b..1c078e0 100644
--- a/Source/app.py
+++ b/Source/app.py
@@ -10,4 +10,4 @@ def collectWifiData(times, waittime):
eel.sleep(waittime)
eel.displayWifiData(i, str(get_BSSI()))
-eel.start('index.html', size=(1024, 768), position=(0,0))
\ No newline at end of file
+eel.start('index.html', port=8080, size=(1024, 768), position=(0,0))
\ No newline at end of file
diff --git a/Source/app.spec b/Source/app.spec
new file mode 100644
index 0000000..7c15d1a
--- /dev/null
+++ b/Source/app.spec
@@ -0,0 +1,44 @@
+# -*- mode: python ; coding: utf-8 -*-
+
+
+block_cipher = None
+
+
+a = Analysis(['app.py'],
+ pathex=[],
+ binaries=[],
+ datas=[('C:\\Users\\alexa\\Desktop\\Project Scioly\\WiFi\\WiFiStrengthTester\\env\\lib\\site-packages\\eel\\eel.js', 'eel'), ('web', 'web')],
+ hiddenimports=['bottle_websocket'],
+ hookspath=[],
+ hooksconfig={},
+ runtime_hooks=[],
+ excludes=[],
+ win_no_prefer_redirects=False,
+ win_private_assemblies=False,
+ cipher=block_cipher,
+ noarchive=False)
+pyz = PYZ(a.pure, a.zipped_data,
+ cipher=block_cipher)
+
+exe = EXE(pyz,
+ a.scripts,
+ [],
+ exclude_binaries=True,
+ name='app',
+ debug=False,
+ bootloader_ignore_signals=False,
+ strip=False,
+ upx=True,
+ console=False,
+ disable_windowed_traceback=False,
+ target_arch=None,
+ codesign_identity=None,
+ entitlements_file=None )
+coll = COLLECT(exe,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ strip=False,
+ upx=True,
+ upx_exclude=[],
+ name='app')
diff --git a/Source/web/index.html b/Source/web/index.html
index 9451b17..57c5766 100644
--- a/Source/web/index.html
+++ b/Source/web/index.html
@@ -15,19 +15,22 @@
Control Panel
-
+
-
+
-
+
+
-
+
Mean RSS: not calculated
RSS range: not calculated
Complete Scans: not calculated
diff --git a/Source/web/sketch.js b/Source/web/sketch.js
index baccaf1..8416d96 100644
--- a/Source/web/sketch.js
+++ b/Source/web/sketch.js
@@ -20,9 +20,12 @@ function displayWifiData(trial, string) {
}
// format data in table
+ document.getElementById('ssids').innerHTML = '