<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Atharva Dhamal</title>
    <description>The latest articles on DEV Community by Atharva Dhamal (@atharva_dhamal_b29e3d639f).</description>
    <link>https://dev.to/atharva_dhamal_b29e3d639f</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4231283%2Ffca638d7-2f58-49eb-9a74-c1aaad6c8a95.png</url>
      <title>DEV Community: Atharva Dhamal</title>
      <link>https://dev.to/atharva_dhamal_b29e3d639f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/atharva_dhamal_b29e3d639f"/>
    <language>en</language>
    <item>
      <title>SmokeDiver: Your Real Breath Is the Air Supply</title>
      <dc:creator>Atharva Dhamal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:47:44 +0000</pubDate>
      <link>https://dev.to/atharva_dhamal_b29e3d639f/smokediver-your-real-breath-is-the-air-supply-1e47</link>
      <guid>https://dev.to/atharva_dhamal_b29e3d639f/smokediver-your-real-breath-is-the-air-supply-1e47</guid>
      <description>&lt;p&gt;This is a submission for the Presage SmartSpectra SDK Challenge.&lt;/p&gt;

&lt;p&gt;What I Built&lt;/p&gt;

&lt;p&gt;When firefighters go into smoke, they breathe from a cylinder that runs out. Panicked breathing empties it fast. Slow, controlled breathing buys you minutes. Learning to control your breathing under stress is one of the hardest skills to practice outside a live drill.&lt;/p&gt;

&lt;p&gt;In SmokeDiver you search a smoke-filled warehouse for a missing worker:&lt;/p&gt;

&lt;p&gt;• Your live breathing drains a simulated 300 bar cylinder. Faster or deeper breathing burns air faster, and the low-pressure whistle sounds at 55 bar.&lt;br&gt;
• Your pulse sets the heartbeat you hear, and the screen throbs with it.&lt;br&gt;
• Entry control calls you on the radio and you answer out loud. The SDK's talking detection confirms you spoke. No microphone is ever used.&lt;br&gt;
• Each breath is detected live. The demand valve hisses when you breathe in, your mask fogs when you breathe out, and the chest trace runs on the HUD.&lt;br&gt;
• A debrief after each run charts your cylinder pressure, breathing rate and breath-control score over time, alongside the radio log and coaching tips.&lt;/p&gt;

&lt;p&gt;I work in fire protection (IoT and edge-AI fire detection), so I built this for the people at the other end of the alarm.&lt;/p&gt;

&lt;p&gt;SmokeDiver is a training game. It is not a medical device or a fitness-for-duty test, and the cylinder is a simulation, not a measurement of real air use.&lt;/p&gt;

&lt;p&gt;Demo&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/zed3e4CvgPU" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This demo uses SmokeDiver's built-in simulator (keyboard-driven signals, labelled on screen). The live SmartSpectra integration is in src/renderer/signals/live.js; npm start with an API key runs the same game from a webcam.&lt;/p&gt;

&lt;p&gt;Code&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Atharva05111" rel="noopener noreferrer"&gt;
        Atharva05111
      &lt;/a&gt; / &lt;a href="https://github.com/Atharva05111/smokediver" rel="noopener noreferrer"&gt;
        smokediver
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;SmokeDiver&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A breathing-apparatus air-management trainer driven by your real breath, read from a webcam with the &lt;strong&gt;Presage SmartSpectra SDK&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Firefighters entering smoke breathe from a cylinder that runs out. Panicked breathing empties it fast; slow, controlled breathing buys minutes. In SmokeDiver you search a smoke-filled warehouse for a missing worker while your live breathing drains a simulated cylinder, your pulse sets the heartbeat you hear, and entry control calls you on the radio — you answer out loud, and the SDK's talking detection confirms you spoke (no microphone is used).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A training game. Not a medical device, not a fitness-for-duty test, and the cylinder is a simulation, not a measurement of real air use.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How SmartSpectra signals drive the game&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;SmartSpectra signal&lt;/th&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;What it does in SmokeDiver&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Breathing rate&lt;/td&gt;
&lt;td&gt;&lt;code&gt;BREATHING_RATE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Main driver of air use. Faster breathing drains the cylinder faster.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Breathing amplitude&lt;/td&gt;
&lt;td&gt;&lt;code&gt;BREATHING_AMPLITUDE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deeper breaths than your&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Atharva05111/smokediver" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;It's an Electron app using @smartspectra/node-sdk. It runs on Windows, macOS (Apple Silicon) and Linux x64. To set it up: npm install, put your Presage key in .env, then npm start. Full instructions are in the README.&lt;/p&gt;

&lt;p&gt;How It Responds to Human Signals&lt;/p&gt;

&lt;p&gt;SmartSpectra signal&lt;br&gt;
What it does in SmokeDiver&lt;br&gt;
BREATHING_RATE&lt;br&gt;
Main driver of air use. Faster breathing drains the cylinder faster.&lt;br&gt;
BREATHING_AMPLITUDE&lt;br&gt;
Breaths deeper than your 30-second baseline use more air.&lt;br&gt;
INHALE_EXHALE_RATIO&lt;br&gt;
Feeds the live breath control score (a long exhale is good technique).&lt;br&gt;
CHEST_BREATHING&lt;br&gt;
Inhale/exhale detection: demand-valve hiss, mask fog, live HUD trace.&lt;br&gt;
PULSE_RATE&lt;br&gt;
Heartbeat audio and screen throb at your live pulse.&lt;br&gt;
TALKING&lt;br&gt;
Confirms your spoken radio reports to entry control.&lt;br&gt;
validationStatus&lt;br&gt;
Mask-check guidance. The mission pauses, with air and clock frozen, if your face leaves the frame.&lt;/p&gt;

&lt;p&gt;The air model: ventilation = breathing rate × depth relative to your baseline × a talking factor (talking in a mask costs air). That figure drains a training cylinder scaled so a mission lasts a few minutes:&lt;/p&gt;

&lt;p&gt;• calm breathing (about 10 breaths/min) gets you roughly 3.5–4 minutes to the whistle&lt;br&gt;
• rushed, deep breathing gets you under 2&lt;/p&gt;

&lt;p&gt;Staying calm is literally how you win.&lt;/p&gt;

&lt;p&gt;The game uses a reading only when the SDK reports a valid status. Before the mission starts, a mask check gives plain-language fixes like "Too bright", "Face the camera directly" or "More than one face in view".&lt;/p&gt;

&lt;p&gt;Prize Categories&lt;/p&gt;

&lt;p&gt;Most Creative or Delightful Use: your own breath is the game's main resource. Every inhale hisses through the demand valve, every exhale fogs your mask, and you talk to entry control out loud without a microphone, because the SDK sees you speak.&lt;/p&gt;

&lt;p&gt;Best Thoughtful Real-World Use: SmokeDiver lets you practice real SCBA air-management habits (controlled breathing, watching the gauge, reacting to the low-pressure whistle, giving radio reports) at a desk with just a webcam, with no live-fire drill needed.&lt;/p&gt;

&lt;p&gt;Consent and Data Handling&lt;/p&gt;

&lt;p&gt;• Consent first. The camera turns on only after an explicit consent screen. It runs only during the mask check, the breathing baseline and the mission, and the SDK stops the moment a mission ends.&lt;br&gt;
• On-device processing. Video frames are processed by the SmartSpectra SDK on your computer. SmokeDiver never records or stores video, images or face landmarks.&lt;br&gt;
• Camera only. Electron grants the app camera permission only. The microphone is never requested, and talking is detected visually.&lt;br&gt;
• Telemetry off. The SDK's aggregate telemetry is disabled (enableTelemetry: false).&lt;br&gt;
• Automatic SDK insights (disclosed). While a session runs, the SDK itself sends Presage's insights service snapshots of derived pulse rate, HRV and breathing rate about once a minute (never video or images), per Presage's LLM Insights docs. SmokeDiver never requests or displays insights. Breathing-only mode on the consent screen skips the cardio metrics entirely. Presage's privacy policy governs retention and deletion of these snapshots.&lt;br&gt;
• Network. Apart from the above, the SDK contacts Presage only to validate the API key, check usage and load models. SmokeDiver itself sends nothing anywhere.&lt;br&gt;
• Local storage. Each finished run's summary (pressure, breathing rate, pulse and score over time, with no imagery) is saved to runs.json in the app data folder, capped at 50 runs. Past runs → Delete all runs removes it.&lt;br&gt;
• Not medical. No diagnosis, treatment or fitness-for-duty claims. The breath-control score rates a breathing technique for the game.&lt;br&gt;
• One person, with consent. Only the player should be on camera, and the SDK warns if more than one face is in view.&lt;br&gt;
• No AI services are used by SmokeDiver.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>gamedev</category>
      <category>softwaredevelopment</category>
      <category>presagechallenge</category>
    </item>
  </channel>
</rss>
