weather-forecast

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.

Weather forecast Open Graph image template rendered by Shareglint
Weather forecast template at square size (1080×1080)
Weather forecast template at portrait size (1080×1350)
Weather forecast template at story size (1080×1920)
Weather forecast template at pinterest size (1000×1500)
Weather forecast template at youtube size (1280×720)

These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.

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. one of: C | F default: C C
condition text Today's weather: sun, cloud, rain, snow, storm, fog or wind. one of: sun | cloud | rain | snow | storm | fog | 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

Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.

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"
    }
}'

Or paste a signed URL into og:image

For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.

<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/weather-forecast.png?condition=sun&current_temp=24&date=Sunday%2C%20Oct%2026&days=Mon%7Csun%7C25%7C16%3BTue%7Ccloud%7C22%7C15%3BWed%7Crain%7C19%7C14%3BThu%7Cstorm%7C18%7C13%3BFri%7Cwind%7C21%7C14&location=Lisbon&source=Northwind%20Weather&summary=Sunny%20spells%20and%20a%20light%20sea%20breeze&unit=C&s=YOUR_SIGNATURE">

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.

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

More News, sports & finance templates

All 6 News, sports & finance templates →  ·  All templates →