Weather Forecast For City

Version: 1.0.0
weather/forecast-city
superface

Get weather forecast for the city

Get Weather Forecast For City

Get weather forecast for the city in chosen units

City
Units
AverageTemperature
Date
MaxTemperature
MinTemperature

1. Install

npx @superfaceai/cli install weather/forecast-city

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('weather/forecast-city');

  // Use the profile
  const result = await profile
    .getUseCase('GetWeatherForecastInCity')
    .perform({
      city: 'Prague,CZ'
    });

  return result.unwrap();
}

run();

3. Add providers