diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c3a504b Binary files /dev/null and b/.DS_Store differ diff --git a/AP.yaml b/AP.yaml new file mode 100644 index 0000000..7b708dd --- /dev/null +++ b/AP.yaml @@ -0,0 +1,20 @@ +{\rtf1\ansi\ansicpg1252\cocoartf2709 +\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0 +\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 + +\f0\fs24 \cf0 # Random YAML File\ +name: John Doe\ +age: 25\ +email: johndoe@example.com\ +address:\ + street: 123 Random Street\ + city: Randomville\ + country: Randomland\ +interests:\ + - Sports\ + - Music\ + - Travel\ +} \ No newline at end of file diff --git a/Frontend/src/lib/components/AddAp.svelte b/Frontend/src/lib/components/AddAp.svelte index 9a521aa..eb08668 100644 --- a/Frontend/src/lib/components/AddAp.svelte +++ b/Frontend/src/lib/components/AddAp.svelte @@ -28,7 +28,14 @@
Location:
- +
+
Yaml:
+ +
+ diff --git a/Frontend/src/routes/+page.svelte b/Frontend/src/routes/+page.svelte index 509ee87..c216847 100644 --- a/Frontend/src/routes/+page.svelte +++ b/Frontend/src/routes/+page.svelte @@ -1,16 +1,16 @@
-
Dashboard
-
+
Dashboard
+
Access point amount :
{numberOfAccessPoints}
-
+
Access points up :
{numberOfAccessPointsUp}
diff --git a/Frontend/src/routes/about/+page.svelte b/Frontend/src/routes/about/+page.svelte index bde5c16..5762a02 100644 --- a/Frontend/src/routes/about/+page.svelte +++ b/Frontend/src/routes/about/+page.svelte @@ -1,10 +1,10 @@
-
About
-
+
About
+
This project was made by the Pátek team during the 2023 Junior AT&T Hackathon.
-
+
It’s an open-source management tool for access points with
diff --git a/Frontend/src/routes/contact/+page.svelte b/Frontend/src/routes/contact/+page.svelte index f2f53f9..489bc66 100644 --- a/Frontend/src/routes/contact/+page.svelte +++ b/Frontend/src/routes/contact/+page.svelte @@ -1,7 +1,11 @@
-
Contact
-
patek@gbl.cz
+
Contact
+
Email: patek@gbl.cz
+
Phone: +420 774 824 424
+
+ Address: Královická 668/23, 250 01 Brandýs nad Labem-Stará Boleslav +
diff --git a/Frontend/src/routes/docs/+page.svelte b/Frontend/src/routes/docs/+page.svelte index c58fec1..6b18a06 100644 --- a/Frontend/src/routes/docs/+page.svelte +++ b/Frontend/src/routes/docs/+page.svelte @@ -1,13 +1,19 @@
Docs
-
- dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy - text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text - dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy - text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text - dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy text dummy - text dummy text +
+ Project PWC2 is a comprehensive solution designed for the multivendor management of Access + Point (AP) devices. It aims to provide a centralized platform for efficiently managing APs + from various vendors, streamlining operations, and enhancing network performance. This + documentation serves as a guide for understanding and implementing the features and + functionalities of the PWC2 project. +
+
+ System Overview The PWC2 system consists of the following key components: Management Console: + The central user interface where administrators can configure, monitor, and manage AP devices. + AP Vendor Adapters: These are vendor-specific modules responsible for communicating with AP + devices, gathering information, and executing configuration commands. Database: Stores device + information, configurations, and operational data for efficient retrieval and analysis.
diff --git a/Frontend/src/routes/settings/+page.svelte b/Frontend/src/routes/settings/+page.svelte index 9c2d6a5..44f06c6 100644 --- a/Frontend/src/routes/settings/+page.svelte +++ b/Frontend/src/routes/settings/+page.svelte @@ -2,27 +2,59 @@ import AddAp from '$lib/components/AddAp.svelte'; import { onMount } from 'svelte'; - onMount(async () => { - const res = await fetch('http://10.10.1.4:8080/api/v1/aps'); - table = await res.json(); - console.log(table); - }); + function createAP() { + showAddApp = false; + //add to table new AP + table = [ + ...table, + { Name: 'Cisák', Type: 'Cisco', Location: 'Serverovna', ID: 0, IP: '172.27.69.70' } + ]; + } - var table = []; + var table = [ + { + Name: 'Mikrouš', + Type: 'Mikrotik', + Location: 'Recepce', + ID: 0, + IP: '172.27.69.66' + }, + { + Name: 'Turrísek', + Type: 'Turris', + Location: 'Kancelář', + ID: 0, + IP: '172.27.69.67' + }, + { + Name: 'T-Pod', + Type: 'TP-Link', + Location: 'Jídelna', + ID: 0, + IP: '172.27.69.68' + }, + { + Name: 'Asusáč', + Type: 'Asus', + Location: 'Zasedačka', + ID: 0, + IP: '172.27.69.69' + } + ]; let showAddApp = false; {#if showAddApp} - (showAddApp = false)} /> + (showAddApp = false)} on:create={() => createAP()} /> {/if}
-
Settings
- +
Settings
+
@@ -49,7 +81,7 @@
Add access point
diff --git a/Wifi Analyzer/.DS_Store b/Wifi Analyzer/.DS_Store new file mode 100644 index 0000000..15cb965 Binary files /dev/null and b/Wifi Analyzer/.DS_Store differ diff --git a/Wifi Analyzer/platformio.ini b/Wifi Analyzer/platformio.ini index e7da0eb..a3af69b 100644 --- a/Wifi Analyzer/platformio.ini +++ b/Wifi Analyzer/platformio.ini @@ -16,4 +16,3 @@ monitor_speed = 115200 lib_deps = WiFi ArduinoJson - WebSocketsClient diff --git a/Wifi Analyzer/src/main.cpp b/Wifi Analyzer/src/main.cpp index 0876f48..f230cf4 100644 --- a/Wifi Analyzer/src/main.cpp +++ b/Wifi Analyzer/src/main.cpp @@ -3,7 +3,7 @@ #include const int scanIterations = 5; -const int maxChannel = 14; // Maximum number of Wi-Fi channels in the 2.4 GHz band +const int maxChannel = 14; int channelUsage[maxChannel] = {0}; void setup() { @@ -31,14 +31,14 @@ void loop() { delay(1000); } - // Create a JSON object to store channel usage data + StaticJsonDocument<256> jsonDocument; JsonObject channelUsageJson = jsonDocument.to(); for (int channelIndex = 0; channelIndex < maxChannel; channelIndex++) { String channel = String(channelIndex + 1); channelUsageJson[channel] = channelUsage[channelIndex]; - channelUsage[channelIndex] = 0; // Reset channel usage counter for the next analysis + channelUsage[channelIndex] = 0; } // Serialize and print the JSON object
ID Name