Install
openclaw skills install @laigen/hormuz-strait-monitorTrack shipping transit data through the Strait of Hormuz. Monitors transits, daily throughput, and non-Iranian vessel counts from hormuzstraitmonitor.com and shipxy.com. Alerts when traffic recovery thresholds are met including vessel count recovery, throughput percentage recovery, and non-Iranian vessel exit counts. Use for monitoring Middle East shipping disruption and oil flow recovery.
openclaw skills install @laigen/hormuz-strait-monitorTrack shipping transit data through the Strait of Hormuz - a critical chokepoint for global oil supply.
# 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
| Source | Field | Format | Example |
|---|---|---|---|
| hormuzstraitmonitor.com | Transits (24h) | Number of ships | 6 ships |
| Day Normal | Daily average | 60/day | |
| Daily Throughput | DWT (Deadweight Tonnage) | 500K DWT | |
| Avg Throughput | Average DWT | 10.3M | |
| shipxy.com | Non-Iranian Vessels | Count from vessel list | 4 vessels |
| Source | URL | Data Collected |
|---|---|---|
| hormuzstraitmonitor.com | https://hormuzstraitmonitor.com/ | Transits (24h), Daily Throughput, Day Normal, Avg Throughput |
| shipxy.com | https://www.shipxy.com/special/hormuz | Non-Iranian vessels exiting strait in 12h |
Both sites require JavaScript rendering - static HTTP fetch will not work.
Alert triggers when any condition is met:
| Condition | Threshold | Meaning |
|---|---|---|
| Transits Recovery | >= 10 vessels | Absolute recovery threshold |
| Transits Recovery | >= 20% of day normal | Relative recovery threshold |
| Throughput Recovery | >= 20% of avg | Oil flow returning |
| Non-Iranian Vessels | >= 10 exiting in 12h | Western/Asian shipping activity |
Data is appended to CSV: ~/.openclaw/workspace/memory/hormuz-transit-data.csv
Columns:
timestamp - Collection timetransits_24h - Vessels transited in last 24hdaily_throughput - Current daily oil flowday_normal - Normal daily transit countavg_throughput - Average daily throughputnon_iranian_vessels - Non-Iranian vessels exiting in 12halerts - Alert messages (if any)See references/config.json for threshold customization.
To enable notifications:
references/config.json"channel": "wecom" or other supported channel--channel flag at runtimeRequired:
/usr/bin/google-chrome)Install dependencies:
pip install selenium webdriver-manager
Chrome version: This skill uses Chrome 147+ (headless mode).
Fetch hormuzstraitmonitor.com
Fetch shipxy.com
Record Data
Check Alerts
Notify (if configured)
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:
~/.openclaw/workspace/memory/hormuzstraitmonitor_debug.png--debug to see browser contentTimeout errors:
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"}'