← 返回
未分类 中文

Hormuz Strait Monitor

Track shipping transit data through the Strait of Hormuz. Monitors transits, daily throughput, and non-Iranian vessel counts from hormuzstraitmonitor.com and...
追踪霍尔木兹海峡航运数据。监控通行量、日吞吐量及非伊朗籍船舶数量,数据来源于hormuzstraitmonitor.com。
laigen laigen 来源
未分类 clawhub v1.0.0 1 版本 99756.1 Key: 无需
★ 1
Stars
📥 389
下载
💾 0
安装
1
版本
#latest

概述

Hormuz Strait Transit Monitor

Track shipping transit data through the Strait of Hormuz - a critical chokepoint for global oil supply.

Quick Start

# Run the monitor
python ~/.openclaw/workspace/skills/hormuz-strait-monitor/scripts/hormuz_monitor.py

# With notification channel
python ~/.openclaw/workspace/skills/hormuz-strait-monitor/scripts/hormuz_monitor.py --channel wecom

# Debug mode (keep browser visible)
python ~/.openclaw/workspace/skills/hormuz-strait-monitor/scripts/hormuz_monitor.py --debug

Data Collected

SourceFieldFormatExample
--------------------------------
hormuzstraitmonitor.comTransits (24h)Number of ships6 ships
Day NormalDaily average60/day
Daily ThroughputDWT (Deadweight Tonnage)500K DWT
Avg ThroughputAverage DWT10.3M
shipxy.comNon-Iranian VesselsCount from vessel list4 vessels

Data Sources

SourceURLData Collected
-----------------------------
hormuzstraitmonitor.comhttps://hormuzstraitmonitor.com/Transits (24h), Daily Throughput, Day Normal, Avg Throughput
shipxy.comhttps://www.shipxy.com/special/hormuzNon-Iranian vessels exiting strait in 12h

Both sites require JavaScript rendering - static HTTP fetch will not work.

Alert Conditions

Alert triggers when any condition is met:

ConditionThresholdMeaning
-------------------------------
Transits Recovery>= 10 vesselsAbsolute recovery threshold
Transits Recovery>= 20% of day normalRelative recovery threshold
Throughput Recovery>= 20% of avgOil flow returning
Non-Iranian Vessels>= 10 exiting in 12hWestern/Asian shipping activity

Output

Data is appended to CSV: ~/.openclaw/workspace/memory/hormuz-transit-data.csv

Columns:

  • timestamp - Collection time
  • transits_24h - Vessels transited in last 24h
  • daily_throughput - Current daily oil flow
  • day_normal - Normal daily transit count
  • avg_throughput - Average daily throughput
  • non_iranian_vessels - Non-Iranian vessels exiting in 12h
  • alerts - Alert messages (if any)

Configuration

See references/config.json for threshold customization.

To enable notifications:

  1. Edit references/config.json
  2. Set "channel": "wecom" or other supported channel
  3. Or use --channel flag at runtime

Environment Requirements

Required:

  • Google Chrome (installed at /usr/bin/google-chrome)
  • Python 3.x
  • selenium + webdriver-manager

Install dependencies:

pip install selenium webdriver-manager

Chrome version: This skill uses Chrome 147+ (headless mode).

Workflow

  1. Fetch hormuzstraitmonitor.com
    • Launch headless Chrome
    • Wait for JavaScript rendering (~10s)
    • Parse Transits (24h), Daily Throughput, Day Normal, Avg
    • Use regex patterns for data extraction
  1. Fetch shipxy.com
    • Navigate to Chinese shipping portal
    • Wait for rendering (~15s)
    • Parse Non-Iranian vessel count (Chinese text patterns)
  1. Record Data
    • Append to CSV file
    • Include timestamp and all collected values
  1. Check Alerts
    • Compare current vs previous data
    • Evaluate threshold conditions
    • Generate alert messages
  1. Notify (if configured)
    • If alerts triggered OR channel configured
    • Send summary via specified channel

Troubleshooting

Chrome not found:

ERROR: Chrome binary not found at /usr/bin/google-chrome

Solution: Install Google Chrome or update binary path in script.

Selenium not installed:

ERROR: selenium and webdriver-manager not installed

Solution: pip install selenium webdriver-manager

Data not parsed:

  • Check debug screenshots: ~/.openclaw/workspace/memory/hormuzstraitmonitor_debug.png
  • Run with --debug to see browser content
  • Website structure may have changed - update regex patterns

Timeout errors:

  • Increase wait time in script (JavaScript-heavy pages)
  • Check network connectivity to both sites

Cron Integration

To monitor regularly, add to heartbeat or cron:

Heartbeat (HEARTBEAT.md):

- Check Hormuz Strait transit data (every 4h)

Cron job:

# Every 4 hours
openclaw cron add --schedule "0 */4 * * *" --name hormuz-monitor \
  --payload '{"kind": "agentTurn", "message": "Run Hormuz Strait monitor skill"}'

Notes

  • The Strait of Hormuz handles ~20% of global oil consumption
  • During Iran-West tensions, transits may drop significantly
  • Recovery signals indicate de-escalation or alternative routing
  • Non-Iranian vessel count is key indicator of Western/Asian shipping confidence

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 05:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 296 📥 139,005
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 208 📥 67,266
professional

技术分析-缠论

laigen
基于缠中说禅理论自动识别A股技术要素,生成包含分型、笔、线段、中枢、背驰的技术分析图表与报告
★ 1 📥 780