Scootercam

Scootercam Weather Verbose Plugin

WordPress plugin for parsing and displaying NOAA weather forecasts with automatic alert detection.

Features

  • Automated NOAA Parsing: Downloads and parses weather forecasts hourly
  • Alert Detection: Automatically extracts warnings, watches, and advisories
  • Three Forecast Types:
    • Standard Forecast (miz071.txt)
    • Marine Forecast (lmz845.txt)
    • Extended Forecast
  • Smart Caching: Efficient file-based caching system
  • Flexible Display: Multiple shortcodes with different formats
  • Emoji Support: Visual indicators for weather conditions and alert severity

Installation

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The plugin will automatically create /wp-content/wx/ directory for cache files
  4. Forecasts will be downloaded automatically every hour

Alert System

The plugin automatically detects and categorizes weather alerts:

Alert Types

WARNING (🔴 Severe)

  • Highest severity
  • Requires immediate action
  • Examples: Gale Warning, Tornado Warning, Flood Warning
  • Emoji indicators: 🌬️💨 (Gale), ⛈️ (Storm), 🌪️ (Tornado), ❄️ (Winter)

WATCH (🟠 High)

  • Conditions are favorable for severe weather
  • Be prepared to take action
  • Examples: Tornado Watch, Flood Watch, Winter Storm Watch
  • Emoji indicators: 👀⚠️ (Generic), ⛈️👀 (Storm), 🌪️👀 (Tornado)

ADVISORY (🟡 Moderate)

  • Less severe but still important
  • Examples: Small Craft Advisory, Wind Advisory, Fog Advisory
  • Emoji indicators: ⛵⚠️ (Small Craft), 💨 (Wind), 🌫️ (Fog)

Shortcodes

Alert Shortcodes

Display weather alerts and warnings:

No active alerts

⛵⚠️
ADVISORY: SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

No active alerts

Marine Alerts

⛵⚠️
ADVISORY: SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

[weather_alerts]          - Standard forecast alerts
[marine_alerts]           - Marine forecast alerts (e.g., Gale Warnings)
[extended_alerts]         - Extended forecast alerts
[all_weather_alerts]      - All alerts from all forecast types

Format Options:

⛵⚠️
ADVISORY: SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

⛵⚠️ SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

[marine_alerts format="banner"]  - Large banner style (default)
[marine_alerts format="list"]    - Compact list style

Individual Forecast Periods

Display a specific forecast period:

REST OF TODAY 🌧️ ❄️

A chance of snow showers late in the morning, then snow showers likely in the afternoon. New snow accumulation 1 to 2 inches. Highs in the upper 30s. North winds 5 to 15 mph. Gusts up to 20 mph increasing to 30 mph in the afternoon. Chance of snow 70 percent.
– Standard forecast, first period

REST OF TODAY ⛈️ ❄️ 💨 🌊

North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.
– Marine forecast, first period

REST OF TODAY 🌧️ ❄️

A chance of snow showers late in the morning, then snow showers likely in the afternoon. New snow accumulation 1 to 2 inches. Highs in the upper 30s. North winds 5 to 15 mph. Gusts up to 20 mph increasing to 30 mph in the afternoon. Chance of snow 70 percent.
– Extended forecast, first period

[weather_verbose index="0"]    - Standard forecast, first period
[weather_marine index="0"]     - Marine forecast, first period
[weather_extended index="0"]   - Extended forecast, first period

Index values:

  • 0 = First period (e.g., “REST OF TODAY”)
  • 1 = Second period (e.g., “TONIGHT”)
  • 2 = Third period, etc.

All Forecasts

Display all forecast periods:

REST OF TODAY

🌧️ ❄️
A chance of snow showers late in the morning, then snow showers likely in the afternoon. New snow accumulation 1 to 2 inches. Highs in the upper 30s. North winds 5 to 15 mph. Gusts up to 20 mph increasing to 30 mph in the afternoon. Chance of snow 70 percent.

TONIGHT

🌧️ ❄️
Snow showers in the evening, then a chance of snow showers after midnight. Snow accumulation 1 to 4 inches. Lows around 20. North winds 5 to 10 mph with gusts to around 30 mph. Chance of snow 100 percent.

MONDAY

🌧️ ❄️ ☀️
Mostly sunny with a slight chance of snow showers in the morning, then snow showers in the afternoon. Snow accumulation 1 to 2 inches. Highs in the mid 30s. North winds 5 to 10 mph with gusts to around 20 mph becoming northwest 5 to 15 mph with gusts to around 30 mph in the afternoon. Chance of snow 90 percent.

MONDAY NIGHT

🌧️ ❄️
Snow showers in the evening, then a chance of snow showers after midnight. Snow accumulation 1 to 4 inches. Lows in the mid 20s. Northwest winds around 10 mph. Gusts up to 30 mph decreasing to 20 mph after midnight. Chance of snow 90 percent.

VETERANS DAY

🌧️ ❄️ ☁️
Mostly cloudy with a 40 percent chance of snow showers. Highs in the mid 40s near Lake Michigan and around 40 inland. Southwest winds 5 to 15 mph with gusts to around 30 mph.

TUESDAY NIGHT

🌧️ ❄️ 🌙⛅
Partly cloudy with a 20 percent chance of snow showers. Lows around 30.

WEDNESDAY

🌧️ ☀️
Partly sunny with a 20 percent chance of rain showers. Highs in the upper 40s.

WEDNESDAY NIGHT

🌙⛅
Partly cloudy. Lows in the lower 30s.

THURSDAY

☀️
Sunny. Highs in the upper 40s.

THURSDAY NIGHT

🌙⛅
Partly cloudy. Lows in the lower 30s.

FRIDAY

☀️
Mostly sunny. Highs in the lower 50s.

FRIDAY NIGHT

🌙⛅
Partly cloudy. Lows in the mid 30s.

SATURDAY

🌧️ ☁️
Mostly cloudy with a 20 percent chance of rain showers. Highs in the upper 50s.
– All standard forecasts

REST OF TODAY

⛈️ ❄️ 💨 🌊
North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.

TONIGHT

🌧️ ❄️ 💨 🌊
North winds to 30 knots. Snow showers likely. Waves 7 to 11 feet subsiding to 5 to 7 feet after midnight.

MONDAY

🌧️ ❄️ 💨 🌊
North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. Snow showers. Waves 3 to 5 feet building to 8 to 12 feet early in the afternoon.

MONDAY NIGHT

🌧️ ❄️ 🌬️💨 🌊
Northwest gales to 35 knots decreasing to 30 knots in the late evening and overnight. Rain and snow showers. Waves 9 to 13 feet.

VETERANS DAY

🌧️ ❄️ ☁️ 🌬️💨 🌊
Southwest winds to 30 knots increasing to gales to 40 knots early in the afternoon. Mostly cloudy with a chance of rain and snow showers. Waves 7 to 11 feet building to 9 to 13 feet early in the afternoon.

WEDNESDAY

☀️ 🌬️💨 🌊
West gales to 40 knots. Partly sunny. Waves 10 to 14 feet.

THURSDAY

☀️ 💨 🌊
West winds to 30 knots. Sunny. Waves 7 to 10 feet.
– All marine forecasts

REST OF TODAY

🌧️ ❄️
A chance of snow showers late in the morning, then snow showers likely in the afternoon. New snow accumulation 1 to 2 inches. Highs in the upper 30s. North winds 5 to 15 mph. Gusts up to 20 mph increasing to 30 mph in the afternoon. Chance of snow 70 percent.

TONIGHT

🌧️ ❄️
Snow showers in the evening, then a chance of snow showers after midnight. Snow accumulation 1 to 4 inches. Lows around 20. North winds 5 to 10 mph with gusts to around 30 mph. Chance of snow 100 percent.

MONDAY

🌧️ ❄️ ☀️
Mostly sunny with a slight chance of snow showers in the morning, then snow showers in the afternoon. Snow accumulation 1 to 2 inches. Highs in the mid 30s. North winds 5 to 10 mph with gusts to around 20 mph becoming northwest 5 to 15 mph with gusts to around 30 mph in the afternoon. Chance of snow 90 percent.

MONDAY NIGHT

🌧️ ❄️
Snow showers in the evening, then a chance of snow showers after midnight. Snow accumulation 1 to 4 inches. Lows in the mid 20s. Northwest winds around 10 mph. Gusts up to 30 mph decreasing to 20 mph after midnight. Chance of snow 90 percent.

VETERANS DAY

🌧️ ❄️ ☁️
Mostly cloudy with a 40 percent chance of snow showers. Highs in the mid 40s near Lake Michigan and around 40 inland. Southwest winds 5 to 15 mph with gusts to around 30 mph.

TUESDAY NIGHT

🌧️ ❄️ 🌙⛅
Partly cloudy with a 20 percent chance of snow showers. Lows around 30.

WEDNESDAY

🌧️ ☀️
Partly sunny with a 20 percent chance of rain showers. Highs in the upper 40s.

WEDNESDAY NIGHT

🌙⛅
Partly cloudy. Lows in the lower 30s.

THURSDAY

☀️
Sunny. Highs in the upper 40s.

THURSDAY NIGHT

🌙⛅
Partly cloudy. Lows in the lower 30s.

FRIDAY

☀️
Mostly sunny. Highs in the lower 50s.

FRIDAY NIGHT

🌙⛅
Partly cloudy. Lows in the mid 30s.

SATURDAY

🌧️ ☁️
Mostly cloudy with a 20 percent chance of rain showers. Highs in the upper 50s.
– All extended forecasts

[weather_verbose_all]          - All standard forecasts
[weather_marine_all]           - All marine forecasts
[weather_extended_all]         - All extended forecasts

Format Options:

REST OF TODAY

⛈️ ❄️ 💨 🌊
North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.

TONIGHT

🌧️ ❄️ 💨 🌊
North winds to 30 knots. Snow showers likely. Waves 7 to 11 feet subsiding to 5 to 7 feet after midnight.

MONDAY

🌧️ ❄️ 💨 🌊
North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. Snow showers. Waves 3 to 5 feet building to 8 to 12 feet early in the afternoon.

MONDAY NIGHT

🌧️ ❄️ 🌬️💨 🌊
Northwest gales to 35 knots decreasing to 30 knots in the late evening and overnight. Rain and snow showers. Waves 9 to 13 feet.

VETERANS DAY

🌧️ ❄️ ☁️ 🌬️💨 🌊
Southwest winds to 30 knots increasing to gales to 40 knots early in the afternoon. Mostly cloudy with a chance of rain and snow showers. Waves 7 to 11 feet building to 9 to 13 feet early in the afternoon.

WEDNESDAY

☀️ 🌬️💨 🌊
West gales to 40 knots. Partly sunny. Waves 10 to 14 feet.

THURSDAY

☀️ 💨 🌊
West winds to 30 knots. Sunny. Waves 7 to 10 feet.

PeriodForecast
REST OF TODAY ⛈️ ❄️ 💨 🌊North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.
TONIGHT 🌧️ ❄️ 💨 🌊North winds to 30 knots. Snow showers likely. Waves 7 to 11 feet subsiding to 5 to 7 feet after midnight.
MONDAY 🌧️ ❄️ 💨 🌊North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. Snow showers. Waves 3 to 5 feet building to 8 to 12 feet early in the afternoon.
MONDAY NIGHT 🌧️ ❄️ 🌬️💨 🌊Northwest gales to 35 knots decreasing to 30 knots in the late evening and overnight. Rain and snow showers. Waves 9 to 13 feet.
VETERANS DAY 🌧️ ❄️ ☁️ 🌬️💨 🌊Southwest winds to 30 knots increasing to gales to 40 knots early in the afternoon. Mostly cloudy with a chance of rain and snow showers. Waves 7 to 11 feet building to 9 to 13 feet early in the afternoon.
WEDNESDAY ☀️ 🌬️💨 🌊West gales to 40 knots. Partly sunny. Waves 10 to 14 feet.
THURSDAY ☀️ 💨 🌊West winds to 30 knots. Sunny. Waves 7 to 10 feet.

REST OF TODAY ⛈️ ❄️ 💨 🌊: North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.
TONIGHT 🌧️ ❄️ 💨 🌊: North winds to 30 knots. Snow showers likely. Waves 7 to 11 feet subsiding to 5 to 7 feet after midnight.
MONDAY 🌧️ ❄️ 💨 🌊: North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. Snow showers. Waves 3 to 5 feet building to 8 to 12 feet early in the afternoon.
MONDAY NIGHT 🌧️ ❄️ 🌬️💨 🌊: Northwest gales to 35 knots decreasing to 30 knots in the late evening and overnight. Rain and snow showers. Waves 9 to 13 feet.
VETERANS DAY 🌧️ ❄️ ☁️ 🌬️💨 🌊: Southwest winds to 30 knots increasing to gales to 40 knots early in the afternoon. Mostly cloudy with a chance of rain and snow showers. Waves 7 to 11 feet building to 9 to 13 feet early in the afternoon.
WEDNESDAY ☀️ 🌬️💨 🌊: West gales to 40 knots. Partly sunny. Waves 10 to 14 feet.
THURSDAY ☀️ 💨 🌊: West winds to 30 knots. Sunny. Waves 7 to 10 feet.

  1. Cards Format (default)
[weather_marine_all format="cards"]
  • Grid layout with styled cards
  • Best for visual appeal
  • Each period in its own card
  1. Table Format
[weather_marine_all format="table"]
  • Structured table layout
  • Good for comparing periods
  • Compact view
  1. Simple Format
[weather_marine_all format="simple"]
  • Plain text with minimal styling
  • Fastest to load
  • Good for sidebar widgets

Example Usage

Display Marine Alerts and Today’s Forecast

<!-- Show any marine warnings prominently -->
⛵⚠️
ADVISORY: SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

<!– Show current marine conditions –> <h3>Current Marine Conditions</h3>

REST OF TODAY ⛈️ ❄️ 💨 🌊

North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.

Complete Weather Page

<!-- All active alerts -->
<div class="weather-alerts-section">
    <h2>Active Weather Alerts</h2>

Marine Alerts

⛵⚠️
ADVISORY: SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

</div> <!– Standard forecast –> <div class=”standard-forecast”> <h2>Local Forecast</h2>

REST OF TODAY

🌧️ ❄️
A chance of snow showers late in the morning, then snow showers likely in the afternoon. New snow accumulation 1 to 2 inches. Highs in the upper 30s. North winds 5 to 15 mph. Gusts up to 20 mph increasing to 30 mph in the afternoon. Chance of snow 70 percent.

TONIGHT

🌧️ ❄️
Snow showers in the evening, then a chance of snow showers after midnight. Snow accumulation 1 to 4 inches. Lows around 20. North winds 5 to 10 mph with gusts to around 30 mph. Chance of snow 100 percent.

MONDAY

🌧️ ❄️ ☀️
Mostly sunny with a slight chance of snow showers in the morning, then snow showers in the afternoon. Snow accumulation 1 to 2 inches. Highs in the mid 30s. North winds 5 to 10 mph with gusts to around 20 mph becoming northwest 5 to 15 mph with gusts to around 30 mph in the afternoon. Chance of snow 90 percent.

MONDAY NIGHT

🌧️ ❄️
Snow showers in the evening, then a chance of snow showers after midnight. Snow accumulation 1 to 4 inches. Lows in the mid 20s. Northwest winds around 10 mph. Gusts up to 30 mph decreasing to 20 mph after midnight. Chance of snow 90 percent.

VETERANS DAY

🌧️ ❄️ ☁️
Mostly cloudy with a 40 percent chance of snow showers. Highs in the mid 40s near Lake Michigan and around 40 inland. Southwest winds 5 to 15 mph with gusts to around 30 mph.

TUESDAY NIGHT

🌧️ ❄️ 🌙⛅
Partly cloudy with a 20 percent chance of snow showers. Lows around 30.

WEDNESDAY

🌧️ ☀️
Partly sunny with a 20 percent chance of rain showers. Highs in the upper 40s.

WEDNESDAY NIGHT

🌙⛅
Partly cloudy. Lows in the lower 30s.

THURSDAY

☀️
Sunny. Highs in the upper 40s.

THURSDAY NIGHT

🌙⛅
Partly cloudy. Lows in the lower 30s.

FRIDAY

☀️
Mostly sunny. Highs in the lower 50s.

FRIDAY NIGHT

🌙⛅
Partly cloudy. Lows in the mid 30s.

SATURDAY

🌧️ ☁️
Mostly cloudy with a 20 percent chance of rain showers. Highs in the upper 50s.

</div> <!– Marine forecast –> <div class=”marine-forecast”> <h2>Marine Forecast</h2>

REST OF TODAY

⛈️ ❄️ 💨 🌊
North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. A chance of snow showers late in the morning, then snow showers, rain showers likely and a slight chance of thunderstorms in the afternoon. Waves 5 to 7 feet building to 7 to 11 feet early in the afternoon.

TONIGHT

🌧️ ❄️ 💨 🌊
North winds to 30 knots. Snow showers likely. Waves 7 to 11 feet subsiding to 5 to 7 feet after midnight.

MONDAY

🌧️ ❄️ 💨 🌊
North winds 15 to 25 knots backing northwest to 30 knots early in the afternoon. Snow showers. Waves 3 to 5 feet building to 8 to 12 feet early in the afternoon.

MONDAY NIGHT

🌧️ ❄️ 🌬️💨 🌊
Northwest gales to 35 knots decreasing to 30 knots in the late evening and overnight. Rain and snow showers. Waves 9 to 13 feet.

VETERANS DAY

🌧️ ❄️ ☁️ 🌬️💨 🌊
Southwest winds to 30 knots increasing to gales to 40 knots early in the afternoon. Mostly cloudy with a chance of rain and snow showers. Waves 7 to 11 feet building to 9 to 13 feet early in the afternoon.

WEDNESDAY

☀️ 🌬️💨 🌊
West gales to 40 knots. Partly sunny. Waves 10 to 14 feet.

THURSDAY

☀️ 💨 🌊
West winds to 30 knots. Sunny. Waves 7 to 10 feet.

</div>

Sidebar Widget

<!-- Compact alert display -->
⛵⚠️ SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING

<!– Today’s weather only –>

REST OF TODAY 🌧️ ❄️

A chance of snow showers late in the morning, then snow showers likely in the afternoon. New snow accumulation 1 to 2 inches. Highs in the upper 30s. North winds 5 to 15 mph. Gusts up to 20 mph increasing to 30 mph in the afternoon. Chance of snow 70 percent.

Real-World Alert Examples

Gale Warning (Marine)

🌬️💨 WARNING: GALE WARNING IN EFFECT THROUGH LATE TONIGHT

Small Craft Advisory

⛵⚠️ ADVISORY: SMALL CRAFT ADVISORY IN EFFECT UNTIL 8 PM

Winter Storm Watch

❄️👀 WATCH: WINTER STORM WATCH FROM FRIDAY EVENING THROUGH SATURDAY

Styling

The plugin includes comprehensive CSS classes for customization:

Alert Styling

  • .weather-alert-banner – Banner format alerts
  • .alert-severe – Red styling for warnings
  • .alert-high – Orange styling for watches
  • .alert-moderate – Yellow styling for advisories

Forecast Styling

  • .weather-card – Individual forecast cards
  • .weather-table – Table format styling
  • .weather-type-marine – Marine-specific colors
  • .weather-type-extended – Extended forecast colors

Custom CSS Example

/* Make marine warnings more prominent */
.weather-type-marine .alert-severe {
    border-left-width: 8px;
    font-size: 1.2em;
}

/* Change card colors */
.weather-type-marine .weather-card-header {
    background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
}

Data Files

The plugin creates these files in /wp-content/wx/:

Forecast Files

  • extracted_verbose.php – Parsed standard forecasts
  • extracted_marine.php – Parsed marine forecasts
  • extracted_extended.php – Parsed extended forecasts

Alert Files

  • alerts_verbose.php – Standard forecast alerts
  • alerts_marine.php – Marine forecast alerts (warnings, advisories)
  • alerts_extended.php – Extended forecast alerts

Raw Files

  • miz071.txt – Raw standard forecast from NOAA
  • lmz845.txt – Raw marine forecast from NOAA
  • extended.txt – Raw extended forecast from NOAA

Manual Updates

Use the admin page to manually trigger forecast updates:

  1. Go to Weather Verbose in WordPress admin
  2. Click Download & Parse Forecasts Now
  3. Check the status section to verify updates

Troubleshooting

Alerts Not Appearing

  1. Check if alerts exist: View the raw forecast files in /wp-content/wx/
  2. Verify parsing: Check that alerts_marine.php contains data
  3. Manual update: Trigger a manual forecast download
  4. Check shortcode: Ensure using correct shortcode (e.g.,
    ⛵⚠️
    ADVISORY: SMALL CRAFT ADVISORY IN EFFECT THROUGH MONDAY EVENING
    not
    No active alerts
    for marine warnings)

Example Alert Detection

The parser looks for lines like:

...GALE WARNING IN EFFECT THROUGH LATE TONIGHT...
...SMALL CRAFT ADVISORY UNTIL 8 PM EST...
...WINTER STORM WATCH FROM FRIDAY EVENING...

Cache Issues

If forecasts seem outdated:

  1. Delete files in /wp-content/wx/
  2. Trigger manual update from admin page
  3. Check file timestamps in admin page

Technical Details

Update Schedule

  • Automatic: Every hour via WordPress cron
  • Manual: Admin page button
  • Cron job: Can be triggered via wp-cron.php

Alert Detection Logic

The parser:

  1. Identifies alert lines (starting with ...)
  2. Extracts alert text
  3. Categorizes by type (WARNING, WATCH, ADVISORY)
  4. Assigns severity level
  5. Adds appropriate emoji
  6. Stores separately from forecasts

Performance

  • File-based caching: No database queries
  • Efficient parsing: Regex-based extraction
  • Smart updates: Only downloads when scheduled
  • Minimal overhead: Cached PHP arrays

Support

For issues or questions:

  • Check /wp-content/debug.log for errors
  • Verify NOAA URLs are accessible
  • Ensure /wp-content/wx/ is writable

Version

Current version: 1.0.0

Author

Rick Xaver, genius

Scootercam