# Weather forecast OG image template

Today's temperature with a drawn weather icon, and the next days as columns with a temperature range bar each.

- Slug: `weather-forecast`
- Preview (real render): https://shareglint.com/storage/template-previews/weather-forecast.jpg
- Page: https://shareglint.com/en/templates/weather-forecast

For local media, travel sites, event organisers and outdoor businesses. The sky tint follows today's `condition`, every icon is drawn in CSS, and the range bars share one scale so warm and cold days compare at a glance. Up to seven days are shown and unknown conditions fall back to a cloud. Wide frames put today on the left and the days on a glass panel to the right; square and vertical frames put today on top and the days below it.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `location` | text | City or place, the headline. (default: Your city) | Lisbon |
| `date` | text | Date line above the place, e.g. Sunday, Oct 26. | Sunday, Oct 26 |
| `current_temp` | text | Current temperature as a number, e.g. 24. | 24 |
| `unit` | text | C or F, shown after the temperature. (default: C) | C |
| `condition` | text | Today's weather: sun, cloud, rain, snow, storm, fog or wind. (default: sun) | sun |
| `summary` | text | Short description under the temperature, e.g. Sunny spells and a light sea breeze. | Sunny spells and a light sea breeze |
| `days` | text | Days separated by `;`, each as day\|condition\|high\|low, e.g. Mon\|sun\|25\|16;Tue\|rain\|19\|14. Conditions as above, up to seven days. | Mon\|sun\|25\|16;Tue\|cloud\|22\|15;Wed\|rain\|19\|14;Thu\|storm\|18\|13;Fri\|wind\|21\|14 |
| `source` | text | Weather source or brand, at the bottom. | Northwind Weather |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #f97316) | #f97316 |
| `theme` | dark | light | Colour scheme: dark or light. (default: light) | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "weather-forecast",
    "modifications": {
        "location": "Lisbon",
        "date": "Sunday, Oct 26",
        "current_temp": "24",
        "unit": "C",
        "condition": "sun",
        "summary": "Sunny spells and a light sea breeze",
        "days": "Mon|sun|25|16;Tue|cloud|22|15;Wed|rain|19|14;Thu|storm|18|13;Fri|wind|21|14",
        "source": "Northwind Weather"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/weather-forecast/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
