{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-other-co2-tank-monitor-0b1b1f294909","title":"CO2 Tank Depletion Prediction and Weekend Risk Detection","summary":"Predict CO2 cylinder depletion and detect weekend risk for cell culture facilities. Calculates remaining days, depletion time, and provides risk status based on current pressure and consumption rate.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-co2-tank-monitor-0b1b1f294909","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-co2-tank-monitor-0b1b1f294909","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-co2-tank-monitor-0b1b1f294909.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-co2-tank-monitor-0b1b1f294909\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Required parameter `--pressure` not provided. Please supply current cylinder pressure in MPa. Use `--simulate` to generate a training scenario without real data. If pressure is provided in PSI or Bar, the tool will auto-convert to MPa and explicitly state the unit assumption in the output.","instructions":"---\nname: co-tank-monitor\ndescription: \"IoT monitoring simulation to predict CO2 tank depletion and prevent weekend gas outages in cell culture facilities. Monitors cylinder pressure, calculates consumption rates, provides early warnings, and supports automated scheduling via cron.\"\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# CO2 Tank Monitor\n\nMonitor CO2 cylinder pressure and predict depletion times to prevent gas outages in cell culture incubators, particularly during weekends when laboratories are unmanned.\n\n**Key Capabilities:**\n- **Pressure-Based Depletion Prediction**: Calculate remaining cylinder life\n- **Weekend Risk Detection**: Identify depletion during unmanned periods\n- **Multi-Cylinder Support**: Handle 10L and 40L cylinder sizes\n- **Automated Alert System**: Color-coded status with actionable recommendations\n- **Simulation Mode**: Test monitoring scenarios for staff training\n\n---\n\n## Input Validation\n\nThis skill accepts: current cylinder pressure (MPa), daily consumption rate (MPa\/day), cylinder capacity (10 or 40 L), and optional alert threshold (days).\n\nIf the request does not involve monitoring CO2 cylinder pressure or predicting depletion \u2014 for example, asking to monitor other gases, control incubator temperature, or manage lab inventory \u2014 do not proceed. Instead respond:\n> \"CO2 Tank Monitor is designed to predict CO2 cylinder depletion and detect weekend risk for cell culture facilities. Please provide current pressure and daily consumption rate. For other lab monitoring tasks, use a more appropriate tool.\"\n\n---\n\n## Quick Check\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\n## Workflow\n\n1. Confirm current pressure, daily consumption rate, cylinder capacity, and alert threshold.\n2. **Unit detection:** If pressure > 15 and < 220, assume PSI and auto-convert (MPa = PSI \u00d7 0.0069). If pressure > 15 and < 150, assume Bar and auto-convert (MPa = Bar \u00d7 0.1). State the unit assumption explicitly in the output.\n3. Validate that inputs are within plausible ranges (pressure 0\u201315 MPa after conversion, consumption 0.1\u20135 MPa\/day).\n4. Run the script or apply the documented calculation path with only the inputs available.\n5. Return a structured result separating assumptions, deliverables, risks, and unresolved items.\n6. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n**Fallback:** If pressure is not provided, respond: \"Required parameter `--pressure` not provided. Please supply current cylinder pressure in MPa. Use `--simulate` to generate a training scenario without real data.\"\n\n---\n\n## Core Capabilities\n\n### 1. Depletion Prediction\n\n```python\nfrom scripts.main import calculate_remaining_days, calculate_depletion_time\nremaining_days = calculate_remaining_days(pressure=8.0, daily_consumption=1.5)\ndepletion_time = calculate_depletion_time(remaining_days)\n# Formula: remaining_days = pressure \/ daily_consumption\n```\n\n### 2. Weekend Risk Detection\n\n```python\nfrom scripts.main import is_weekend, will_deplete_on_weekend\nweekend_risk = will_deplete_on_weekend(depletion_time, alert_days=2)\n```\n\n**Weekend Risk Scenarios:**\n\n| Scenario | Risk Level | Action Required |\n|----------|------------|-----------------|\n| Depletion Saturday\/Sunday | \ud83d\udd34 High | Immediate replacement or weekend duty |\n| Depletion Monday morning | \ud83d\udfe1 Medium | Replace Friday afternoon |\n| Depletion mid-week | \ud83d\udfe2 Low | Schedule routine replacement |\n\n### 3. Status Levels\n\n| Code | Status | Condition | Action |\n|------|--------|-----------|--------|\n| **0** | \ud83d\udfe2 Normal | Days > alert_days + 2 | No action needed |\n| **1** | \ud83d\udfe1 Caution | Days within alert_days + 2 | Monitor closely |\n| **2** | \ud83d\udd34 Danger | Days \u2264 alert_days or weekend risk | Replace immediately |\n\n### 4. Cylinder Specifications\n\n| Capacity | Full Pressure | Duration (@1.5 MPa\/day) |\n|----------|---------------|------------------------|\n| **10L** | ~15 MPa | ~10 days |\n| **40L** | ~15 MPa | ~40 days |\n\n### 5. Automated Scheduling\n\n```bash\n# Daily check at 9:00 AM (cron)\n0 9 * * * cd \/lab\/scripts && python scripts\/main.py --pressure $(cat sensor.log | tail -1) --quiet\n\n# Pre-weekend check (Friday 5 PM)\n0 17 * * 5 cd \/lab\/scripts && python scripts\/main.py --pressure $(cat sensor.log | tail -1)\n```\n\n---\n\n## CLI Usage\n\n```text\n# Manual morning check\npython scripts\/main.py --pressure 8.5 --daily-consumption 1.2\n\n# Pre-weekend check with extended alert\npython scripts\/main.py --pressure 5.5 --alert-days 3\n\n# Simulation for training\npython scripts\/main.py --simulate\n```\n\n---\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `--pressure` | float | No | Current cylinder pressure in MPa |\n| `--capacity` | int | No | Cylinder capacity (10 or 40 L) |\n| `--daily-consumption` | float | No | Average daily consumption (MPa\/day) |\n| `--alert-days` | int | No | Alert threshold in days (default 2) |\n| `--simulate` | flag | No | Generate random training scenario |\n| `--quiet` | flag | No | Suppress verbose output (for cron) |\n\n---\n\n## Output Requirements\n\nEvery final response must make these explicit:\n\n- Objective or requested deliverable\n- Inputs used (pressure, consumption, capacity) and assumptions introduced (including unit conversion if applied)\n- Calculation method applied\n- Core result: remaining days, depletion datetime, weekend risk status, recommendations\n- **Constraints:** Prediction assumes constant consumption rate. Actual depletion may vary with temperature, usage patterns, and weekend vs. weekday consumption.\n- Unresolved items and next-step checks\n\n---\n\n## Error Handling\n\n- If pressure is not provided, offer simulation mode or request the value explicitly.\n- If values are outside plausible ranges (pressure >15 MPa or <0), flag as implausible.\n- If `scripts\/main.py` fails, report the failure point and provide manual calculation fallback using the formula above.\n- Do not fabricate pressure readings or depletion predictions.\n\n---\n\n## Common Pitfalls\n\n- **Inconsistent reading times**: Take readings at same time daily (e.g., 9:00 AM \u00b1 30 min)\n- **Wrong consumption estimates**: Calculate from actual usage over 2+ weeks\n- **Pressure unit confusion**: Standardize on MPa; convert if gauge shows PSI or Bar\n- **Alert fatigue**: Batch daily reports; only escalate urgent alerts immediately\n- **Wrong cylinder capacity**: 10L vs 40L confusion causes 4\u00d7 prediction error\n\n---\n\n## Pressure Conversion Reference\n\n| Unit | MPa | PSI | Bar |\n|------|-----|-----|-----|\n| **MPa** | 1.0 | 145.0 | 10.0 |\n| **PSI** | 0.0069 | 1.0 | 0.069 |\n| **Bar** | 0.1 | 14.5 | 1.0 |\n\n**Typical Cylinder Pressures:** Full ~15 MPa | Working 8\u201310 MPa | Replace threshold 3\u20135 MPa | Empty <1 MPa\n\n---\n\n## References\n\n- Cell Culture CO2 Guidelines: https:\/\/www.thermofisher.com\/cellculture\n- Gas Cylinder Safety: https:\/\/www.osha.gov\/gascylinders\n\n","use_cases":["Predict CO2 tank depletion for cell culture incubators","Detect weekend gas outage risk in unmanned laboratories","Calculate remaining days and depletion time for 10L and 40L cylinders"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Other\/co2-tank-monitor\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T14:33:24.000000Z","updated_at":"2026-11-26T09:24:51.000000Z","seo_title":"CO2 Tank Depletion Prediction Tool","seo_description":"Predict CO2 cylinder depletion and detect weekend risk for cell culture facilities. Calculates remaining days and provides risk status based on current pressure and usage","seo_keywords":["CO2 tank depletion prediction","weekend gas outage detection","cell culture incubator monitoring","cylinder pressure calculation","lab gas management"]}}