# fyi.wed.event

> Published by [wed.fyi](https://lexicon.garden/identity/did:plc:jw2rjf3xwlxrrcg4i7rfozgc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jw2rjf3xwlxrrcg4i7rfozgc/fyi.wed.event)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jw2rjf3xwlxrrcg4i7rfozgc/fyi.wed.event/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jw2rjf3xwlxrrcg4i7rfozgc/fyi.wed.event/examples)

## Definitions

### `fyi.wed.event`

**Type**: `record`

A saved event with its weather forecast window.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | No | Optional human-readable name for the event (e.g. 'O Maior São João do Mundo!'). |
| `when` | `string` | Yes | When the event happens. This is a naive datetime string representing the local wall-clock time at the event location (e.g. '2024-10-10 09:00:00'). |
| `after` | `integer` | No | Optional hours after the event to include in the forecast window. |
| `before` | `integer` | No | Optional hours before the event to include in the forecast window. |
| `latitude` | `integer` | Yes | Latitude in microdegrees (degrees × 1e7). Positive for North, negative for South. Example: -72240065 for 7.2240065°S (Parque do Povo, Campina Grande). |
| `location` | `string` | No | Optional free-text location description (e.g. 'Campina Grande, PB, Brazil'). This is used for a human-readable display and, more importantly, to try to find the geolocation (latitude and longitude). |
| `longitude` | `integer` | Yes | Longitude in microdegrees (degrees × 1e7). Positive for East, negative for West. Example: -358875068 for 35.8875068°W (Parque do Povo, Campina Grande). |

## Raw Schema

```json
{
  "id": "fyi.wed.event",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "when",
          "latitude",
          "longitude"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "description": "Optional human-readable name for the event (e.g. 'O Maior São João do Mundo!').",
            "maxGraphemes": 128
          },
          "when": {
            "type": "string",
            "maxLength": 19,
            "description": "When the event happens. This is a naive datetime string representing the local wall-clock time at the event location (e.g. '2024-10-10 09:00:00')."
          },
          "after": {
            "type": "integer",
            "maximum": 36,
            "minimum": 0,
            "description": "Optional hours after the event to include in the forecast window."
          },
          "before": {
            "type": "integer",
            "maximum": 12,
            "minimum": 0,
            "description": "Optional hours before the event to include in the forecast window."
          },
          "latitude": {
            "type": "integer",
            "description": "Latitude in microdegrees (degrees × 1e7). Positive for North, negative for South. Example: -72240065 for 7.2240065°S (Parque do Povo, Campina Grande)."
          },
          "location": {
            "type": "string",
            "maxLength": 512,
            "description": "Optional free-text location description (e.g. 'Campina Grande, PB, Brazil'). This is used for a human-readable display and, more importantly, to try to find the geolocation (latitude and longitude).",
            "maxGraphemes": 256
          },
          "longitude": {
            "type": "integer",
            "description": "Longitude in microdegrees (degrees × 1e7). Positive for East, negative for West. Example: -358875068 for 35.8875068°W (Parque do Povo, Campina Grande)."
          }
        }
      },
      "description": "A saved event with its weather forecast window."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
