-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
29 changed files
with
9,651 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cmake_minimum_required(VERSION 3.16.0) | ||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(oscquery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Puara | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"device": "Puara", | ||
"id": 1, | ||
"author": "Edu Meneses", | ||
"institution": "SAT/IDMIL (2022-2024)", | ||
"APpasswd": "mappings", | ||
"wifiSSID": "some", | ||
"wifiPSK": "wifi", | ||
"persistentAP": 1, | ||
"oscIP1": "192.168.4.2", | ||
"oscPORT1": 8000, | ||
"oscIP2": "192.168.0.100", | ||
"oscPORT2": 8000, | ||
"localPORT": 8000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<p><a href="/">Config</a> <a href="/scan.html">Scan</a> <a href="/settings.html">Settings</a> | ||
|
||
<h1>%DEVICENAME%<h1> | ||
<p>%STATUS%</p> | ||
<h2>Settings:</h2> | ||
<div class="container"> | ||
|
||
<form action="" method="post"> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="ID">ID (serial #)</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="text" id="ID" name="ID" value="%GUITARAMIID%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="firmware">Firmware version</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="text" id="firmware" name="firmware" value="%GUITARAMIVER%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="firmware">Touch Sensitivity</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="text" id="touch" name="touch" value="%TOUCH%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<input type="submit" onclick="alert('Sending settings to GuitarAMI module')" value="Save"> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
|
||
<br><br> | ||
<form action="" method="post"> | ||
<input type="submit" float="center" name="reboot" value="Close and reboot"> | ||
</form> | ||
<!-- <button type="button" onclick="alert('Rebooting. Please close this window.')">Close and reboot</button> --> | ||
|
||
<br><br> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<p><a href="/">Config</a> <a href="/scan.html">Scan</a> <a href="/settings.html">Settings</a> | ||
|
||
<h1>%DMINAME%<h1> | ||
<p>%STATUS%</p> | ||
<h2>Config:</h2> | ||
<div class="container"> | ||
|
||
<form method="post" action="/#"> | ||
<div class="row"> | ||
<h3>Network: </h3> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="SSID">SSID</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="text" id="SSID" name="SSID" placeholder="Network SSID..." | ||
value="%CURRENTSSID%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="password">SSID Password</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="password" id="password" name="password" placeholder="Network password..." value="%CURRENTPSK%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<h3>%DEVICENAME% password:</h3> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="APpasswd">New password</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="password" id="APpasswd" name="APpasswd" | ||
placeholder="(leave empty to keep current password)"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="APpasswdValidate">Retype new password</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="password" id="APpasswdValidate" name="APpasswdValidate" | ||
placeholder="(leave empty to keep current password)"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
</div> | ||
<div class="col-75"> | ||
<input type="checkbox" id="persistentAP" name="persistentAP" value="true" %CURRENTPERSISTENT%> | ||
<label for="PersistentAP"> Persistent AP mode</label><br> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<h3>OSC send settings:</h3> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="oscIP1">Primary IP</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="text" id="oscIP1" name="oscIP1" pattern="\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b" placeholder="0.0.0.0" value="%CURRENTOSC1%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="oscPORT1">Primary port</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="number" id="oscPORT1" name="oscPORT1" placeholder="0000" min="0" max="99999" value="%CURRENTPORT1%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="oscIP2">Secondary IP</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="text" id="oscIP2" name="oscIP2" pattern="\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\b" placeholder="0.0.0.0" value="%CURRENTOSC2%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="oscPORT2">Secondary port</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="number" id="oscPORT2" name="oscPORT2" placeholder="0000" min="0" max="99999" value="%CURRENTPORT2%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-25"> | ||
<label for="localPORT">Local port</label> | ||
</div> | ||
<div class="col-75"> | ||
<input type="number" id="localPORT" name="localPORT" placeholder="0000" min="0" max="99999" value="%CURRENTLOCALPORT%"> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<input type="submit" value="Save" action="/"> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
|
||
<h2>Network info:</h2> | ||
<div class="container"> | ||
<div> | ||
<table> | ||
<tr> | ||
<td>Current stored SSID:</td> | ||
<td>%CURRENTSSID2%</td> | ||
</tr> | ||
<tr> | ||
<td>Current IP address (STA):</td> | ||
<td>%CURRENTIP%</td> | ||
</tr> | ||
<tr> | ||
<td>Access Point IP:</td> | ||
<td>%CURRENTAPIP%</td> | ||
</tr> | ||
<tr> | ||
<td>Station (STA) MAC:</td> | ||
<td>%CURRENTSTAMAC%</td> | ||
</tr> | ||
<tr> | ||
<td>Access Point MAC:</td> | ||
<td>%CURRENTAPMAC%</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<p><a href="/scan.html"><button class="button">scan for networks</button></a></p> | ||
|
||
<h2>Instrument info:</h2> | ||
<div class="container"> | ||
<table> | ||
<tr> | ||
<td>ID (serial #):</td> | ||
<td>%MODULEID%</td> | ||
</tr> | ||
<tr> | ||
<td>Device author:</td> | ||
<td>%MODULEAUTH%</td> | ||
</tr> | ||
<tr> | ||
<td>Institution:</td> | ||
<td>%MODULEINST%</td> | ||
</tr> | ||
<tr> | ||
<td>Firmware version: </td> | ||
<td>%MODULEVER%</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
<br><br> | ||
<form action="" method="post"> | ||
<input type="submit" float="center" name="reboot" value="Close and reboot"> | ||
</form> | ||
|
||
<br><br> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<p><a href="/">Config</a> <a href="/scan.html">Scan</a> <a href="/settings.html">Settings</a> | ||
|
||
<h1>Rebooting. Please close this window.<h1> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<p><a href="/">Config</a> <a href="/scan.html">Scan</a> <a href="/settings.html">Settings</a> | ||
|
||
<h1>Information saved successfully. Use the link above to return to the main config page.<h1> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<p><a href="/">Config</a> <a href="/scan.html">Scan</a> <a href="/settings.html">Settings</a> | ||
|
||
<h1>Scanning for networks</h1> | ||
<p>To use one of the SSIDs below, copy the network name and paste it at the <a href="/">config page</a> | ||
</p> | ||
|
||
<div class="scanbox"> | ||
%SSIDS% | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<p><a href="/">Config</a> <a href="/scan.html">Scan</a> <a href="/settings.html">Settings</a> | ||
|
||
<h1>Module custom settings</h1> | ||
<div class="container"> | ||
<form method="post" action="/settings.html"> | ||
|
||
%DATAFROMMODULE% | ||
|
||
<div class="row"> | ||
<input type="submit" value="Save" action="/settings.html"> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"settings": [ | ||
{ | ||
"name": "Hitchhiker", | ||
"value": "Ford" | ||
}, | ||
{ | ||
"name": "answer_to_everything", | ||
"value": 42 | ||
}, | ||
{ | ||
"name": "variable3", | ||
"value": 12.345 | ||
} | ||
], | ||
"oscquery_namespace":{"some":{"thing":"here"}}, | ||
"oscquery_host_info":{"some":{"thing":"there"}} | ||
} |
Oops, something went wrong.