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 = '