diff --git a/testing/.DS_Store b/.DS_Store similarity index 87% rename from testing/.DS_Store rename to .DS_Store index 06a99a2..5008ddf 100644 Binary files a/testing/.DS_Store and b/.DS_Store differ diff --git a/testing/Screenshot 2024-06-11 081958.png b/testing/Screenshot 2024-06-11 081958.png deleted file mode 100644 index 887b4d4..0000000 Binary files a/testing/Screenshot 2024-06-11 081958.png and /dev/null differ diff --git a/testing/Screenshot 2024-06-11 082211.png b/testing/Screenshot 2024-06-11 082211.png deleted file mode 100644 index 9cfb51e..0000000 Binary files a/testing/Screenshot 2024-06-11 082211.png and /dev/null differ diff --git a/testing/api-test/index.html b/testing/api-test/index.html deleted file mode 100644 index 366626d..0000000 --- a/testing/api-test/index.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - JavaScript API Test - - - -
-

JavaScript AJAX API Testing Page

-

For Blackmagic Camera Control, by Dylan Speiser

- YAML Documentation - Web Media Manager -
- -
- - -
- - - - - - - - - - - - -
- -
- - -
-

Iris Control: 8.0

- 0.0 - - 100.0 -
- -

Response should show up here

- - - - \ No newline at end of file diff --git a/testing/api-test/script.js b/testing/api-test/script.js deleted file mode 100644 index 58ec3e7..0000000 --- a/testing/api-test/script.js +++ /dev/null @@ -1,108 +0,0 @@ -var CameraAddress = "http://Studio-Camera-6K-Pro.local" -var CameraAPIAddress = CameraAddress+"/control/api/v1" - -var Camera = { - "maximumAperture": 100.0, - "minimumAperture": 0.0 -} - -function sleep(ms) { - return new Promise(resolve => setTimeout(resolve, ms)); -} - -function getIrisBounds() { - // First we get the maximum aperture of the lens - var requestBody = {"apertureStop": 100.0}; - sendRequest("PUT",CameraAPIAddress+"/lens/iris",JSON.stringify(requestBody)); - sleep(1000).then(() => - sendRequest("GET",CameraAPIAddress+"/lens/iris").then(function(value) { - Camera.maximumAperture = parseFloat(value.apertureStop); - }) - ); - - // Then we get the minimum aperture of the lens - requestBody = {"apertureStop": 0.0}; - sleep(1500).then(() => - sendRequest("PUT",CameraAPIAddress+"/lens/iris",JSON.stringify(requestBody)) - ); - sleep(2500).then(() => - sendRequest("GET",CameraAPIAddress+"/lens/iris").then(function(value) { - Camera.minimumAperture = parseFloat(value.apertureStop); - }) - ); - - sleep(3000).then(() => { - var irisRangeSlider = document.getElementById("irisRange"); - irisRangeSlider.value = 0.0; - - upadteIrisTextLabels(); - }); -} - -function sendButtonPressed() { - const requestRadioGET = document.getElementById("requestTypeGET"); - - const requestEndpointText = document.getElementById("queryName").value; - - const requestMethod = (requestRadioGET.checked ? "GET" : "PUT"); - const requestURL = CameraAPIAddress+requestEndpointText; - const requestData = document.getElementById("queryBody").value; - - console.log("Method: ",requestMethod); - console.log("URL: ",requestURL); - console.log("Data: ",requestData); - - sendRequest(requestMethod,requestURL,requestData); -}; - -async function sendRequest(method, url, data) { - const xhttp = new XMLHttpRequest(); - var responseObject; - - xhttp.onload = function() { - if (this.responseText) { - document.getElementById("responseTextParagraph").innerHTML = this.responseText; - responseObject = JSON.parse(this.responseText); - } else { - document.getElementById("responseTextParagraph").innerHTML = this.statusText; - responseObject = {"status": this.statusText}; - } - } - - xhttp.open(method, url, false); - xhttp.send(data); - - return responseObject; -} - -function onBodyLoad() { - document.getElementById("documentationLink").href = CameraAddress+"/control/documentation.html"; - document.getElementById("mediaManagerLink").href = CameraAddress; - - getIrisBounds(); -} - -function irisInputHandler() { - // Get HTML Elements - var irisSliderValue = parseFloat(document.getElementById("irisRange").value); - - // Set up request body - var requestBody = {"normalised": irisSliderValue}; - - // Update text labels - upadteIrisTextLabels(); - - // Send request - sendRequest("PUT",CameraAPIAddress+"/lens/iris",JSON.stringify(requestBody)); -} - -function upadteIrisTextLabels() { - var irisDisplayText = document.getElementById("currentIrisNumber"); - var irisSliderValue = parseFloat(document.getElementById("irisRange").value); - - var apertureStop = irisSliderValue; - irisDisplayText.innerHTML = parseFloat(Camera.minimumAperture + (apertureStop*(Camera.maximumAperture-Camera.minimumAperture))).toFixed(1); - - document.getElementById("irisRangeMinLabel").innerHTML = Camera.minimumAperture.toFixed(1); - document.getElementById("irisRangeMaxLabel").innerHTML = Camera.maximumAperture.toFixed(1); -} \ No newline at end of file diff --git a/testing/ping-test/index.html b/testing/ping-test/index.html deleted file mode 100644 index 5bf22a9..0000000 --- a/testing/ping-test/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - JS Ping Widget Test - - - - - - -

JS Ping Widget Test

- -
- - hostname - XX -   ms -
- -
- - - - - \ No newline at end of file diff --git a/testing/ping-test/style.css b/testing/ping-test/style.css deleted file mode 100644 index 05db896..0000000 --- a/testing/ping-test/style.css +++ /dev/null @@ -1,34 +0,0 @@ -html { - height: 100%; - margin: 0; - font-family: "Noto Sans Display", sans-serif; - font-optical-sizing: auto; - font-weight: 300; - font-style: normal; - font-variation-settings: "wdth" 100; - background-color: rgb(36, 36, 36); - color: white; -} - -body { - margin: 2em; -} - -h1 { - display: inline-flex; - margin: 0px; -} - -#pingWidget { - display: inline-flex; - margin: 0px 0px 15px 0px; - float: right; -} - -#pingWidget #hostname { - padding: 0px 1em; -} - -#pingWidget .pingTime { - color: grey; -} \ No newline at end of file diff --git a/testing/tab-ui-test/index.html b/testing/tab-ui-test/index.html deleted file mode 100644 index 989573d..0000000 --- a/testing/tab-ui-test/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - -
-

Home

-

Home is where the heart is..

-
- -
-

News

-

Some news this fine day!

-
- -
-

Contact

-

Get in touch, or swing by for a cup of coffee.

-
- -
-

About

-

Who we are and what we do.

-
- - - - - - \ No newline at end of file