{"id":32,"date":"2024-11-06T00:52:01","date_gmt":"2024-11-06T00:52:01","guid":{"rendered":"http:\/\/beewisersoftware.com\/?page_id=32"},"modified":"2025-01-15T03:18:49","modified_gmt":"2025-01-15T03:18:49","slug":"beewiser-camera-settings","status":"publish","type":"page","link":"https:\/\/beewisersoftware.com\/index.php\/beewiser-camera-settings\/","title":{"rendered":"Beewiser Camera Settings"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<style>\n    body {\n      font-family: Arial, sans-serif;\n      margin: 20px;\n      max-width: 400px;\n    }\n    label, input, select, button {\n      display: block;\n      margin-top: 10px;\n    }\n    button {\n      padding: 8px 12px;\n      background-color: #007BFF;\n      color: white;\n      border: none;\n      border-radius: 4px;\n      cursor: pointer;\n    }\n    button:hover {\n      background-color: #0056b3;\n    }\n    .results {\n      margin-top: 20px;\n    }\n  <\/style>\n<label for=\"lux\">Lux Value:<\/label>\n  <input type=\"number\" id=\"lux\" placeholder=\"Enter lux value\" required>\n\n  <label for=\"iso\">ISO Value:<\/label>\n  <select id=\"iso\">\n    <option value=\"100\">100<\/option>\n    <option value=\"200\">200<\/option>\n    <option value=\"400\">400<\/option>\n    <option value=\"800\">800<\/option>\n  <option value=\"1600\">1600<\/option>\n  <option value=\"3200\">3200<\/option>\n  <option value=\"6400\">6400<\/option>\n  <option value=\"12800\">12800<\/option>\n  <option value=\"25600\">25600<\/option>\n  <\/select>\n\n  <label for=\"aperture\">Aperture (f-stop):<\/label>\n  <select id=\"aperture\">\n    <option value=\"1.2\">f\/1.2<\/option>\n    <option value=\"1.4\">f\/1.4<\/option>\n    <option value=\"1.8\">f\/1.8<\/option>\n    <option value=\"2\">f\/2<\/option>\n    <option value=\"2.8\">f\/2.8<\/option>\n    <option value=\"4\">f\/4<\/option>\n    <option value=\"5.6\">f\/5.6<\/option>\n    <option value=\"6.3\">f\/6.3<\/option>\n    <option value=\"8\">f\/8<\/option>\n    <option value=\"11\">f\/11<\/option>\n    <option value=\"16\">f\/16<\/option>\n    <option value=\"22\">f\/22<\/option>\n  <\/select>\n\n  <button onclick=\"calculateShutterSpeed()\">Calculate Shutter Speed<\/button>\n\n  <div class=\"results\" id=\"results\"><\/div>\n\n  <script>\n    function calculateShutterSpeed() {\n      const lux = parseFloat(document.getElementById('lux').value);\n      const iso = parseInt(document.getElementById('iso').value);\n      const apertureValue = parseFloat(document.getElementById('aperture').value);\n\n      if (isNaN(lux) || lux <= 0) {\n        alert(\"Please enter a valid lux value.\");\n        return;\n      }\n\n      \/\/ Calculate EV at ISO 100\n      const ev100 = Math.log2(lux \/ 2.5);\n      \n      \/\/ Adjust EV for the selected ISO\n      const evISO = ev100 + Math.log2(iso \/ 100);\n\n      \/\/ Calculate the EV contribution of the selected aperture\n      const apertureEV = Math.log2(Math.pow(apertureValue, 2));\n\n      \/\/ Calculate the required EV for the shutter speed alone\n      const requiredShutterEV = evISO - apertureEV;\n\n      \/\/ Calculate the shutter speed from EV\n      const shutterSpeed = Math.pow(2, -requiredShutterEV);\n      \n      \/\/ Format the shutter speed for display\n      let shutterSpeedDisplay;\n      if (shutterSpeed >= 1) {\n        shutterSpeedDisplay = `${Math.round(shutterSpeed)}s`;\n      } else {\n        shutterSpeedDisplay = `1\/${Math.round(1 \/ shutterSpeed)}s`;\n      }\n\n      \/\/ Display the result\n      document.getElementById(\"results\").innerHTML = `\n        <h3>Calculated Camera Settings<\/h3>\n        <p><strong>ISO:<\/strong> ${iso}<\/p>\n        <p><strong>Aperture (f-stop):<\/strong> f\/${apertureValue}<\/p>\n        <p><strong>Shutter Speed:<\/strong> ${shutterSpeedDisplay}<\/p>\n      `;\n    }\n  <\/script>\n","protected":false},"excerpt":{"rendered":"<p>Lux Value: ISO Value: 1002004008001600320064001280025600 Aperture (f-stop): f\/1.2f\/1.4f\/1.8f\/2f\/2.8f\/4f\/5.6f\/6.3f\/8f\/11f\/16f\/22 Calculate Shutter Speed<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-32","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/pages\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":3,"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/pages\/32\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/pages\/32\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/beewisersoftware.com\/index.php\/wp-json\/wp\/v2\/media?parent=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}