# Upgrade to Bayou Radar Skywarn 0.2.0

The installer preserves an existing `/etc/bayouradar-skywarn/config.yaml`.

An older configuration remains operational through the direct NWS fallback, but it will not use Bayou Radar as the primary source until the monitored areas include a Bayou Radar point or bounding box.

Move the old `nws.areas` entries to a top-level `areas` section and add a locator:

```yaml
data_sources:
  primary: bayou_radar
  fallback: nws
  fallback_enabled: true

bayou_radar:
  api_base: https://backend.bayouradar.com
  point_endpoint: /api/alerts
  bbox_endpoint: /api/alerts/active
  timeout_seconds: 12
  retries: 2
  include_zones: true

areas:
  - code: LAC019
    name: Calcasieu Parish
    bbox:
      west: -93.765851
      south: 30.038041
      east: -92.887222
      north: 30.490523
```

Keep the remaining `nws` options because they control the direct fallback, alert timing, and event filters:

```yaml
nws:
  api_base: https://api.weather.gov
  user_agent: "(BayouRadarSkywarn/0.2.0, your-contact@example.com)"
  timeout_seconds: 15
  retries: 2
  time_basis: effective
  include_events: []
  exclude_events: [Test]
```

Validate and restart:

```bash
sudo /opt/bayouradar-skywarn/bin/br-skywarn config-check
sudo systemctl restart bayouradar-skywarn
sudo /opt/bayouradar-skywarn/bin/br-skywarn run-once
sudo /opt/bayouradar-skywarn/bin/br-skywarn status
```

The status output should show `current_source` as `bayou_radar`. A value of `bayou_radar_with_nws_fallback` identifies one or more areas currently using the fallback.
