Weather & Currency
Retrieve live weather conditions and exchange rates. Both are updated from external data sources on each call.
| Verb | Description |
|---|---|
WEATHER "city" SET ?w | Current weather for a city |
CURRENCY "FROM/TO" SET ?rate | Live exchange rate — pair as a slash-delimited string: "USD/ZAR" |
WEATHER
WEATHER "Cape Town" SET ?w
AFTER EMIT ?w(location) & ": " & ?w(temp_c) & "°C, " & ?w(description)
Try it ›
Weather object fields: location, temp_c, temp_f, description, humidity, wind_kph, wind_mph.
CURRENCY
Pass the currency pair as a single slash-delimited string.
CURRENCY "USD/ZAR" SET ?rate
AFTER EMIT "1 USD = " & ?rate(rate) & " ZAR"
Try it ›
Multi-city weather dashboard
WEATHER "Cape Town" SET ?cpt
AND WEATHER "London" SET ?lon
AND WEATHER "New York" SET ?nyc
AFTER EMIT "CT: " & ?cpt(temp_c) & "°C | LDN: " & ?lon(temp_c) & "°C | NYC: " & ?nyc(temp_c) & "°C"
Try it ›
Multi-currency comparison
CURRENCY "USD/ZAR" SET ?zar
AND CURRENCY "USD/EUR" SET ?eur
AND CURRENCY "USD/GBP" SET ?gbp
AFTER EMIT "ZAR: " & ?zar(rate) & " | EUR: " & ?eur(rate) & " | GBP: " & ?gbp(rate)