1 open_cli_schema_version: 1.0
4 Place this OCS YAML under $OPEN_CLI_HOME/open-cli-schema folder. Then run the commands
7 It is used to display the temparature and wind speed details from https://openweathermap.org.
8 Try to add new commands to display different weather details by exploring this site.
11 oclip --product tutorial weather-report --host-url http://api.openweathermap.org --zip-code 637301 --country-code in
16 author: Kanagaraj Manickam kanagaraj.manickam@huawei.com
27 description: country-code
30 long_option: country-code
39 default_value: 13cf06b1b379a4b7501c34c2d67a625c
45 description: temperature at city
49 description: wind speed
57 uri: /data/2.5/weather?zip=${zip-code},${country-code}&appid=${api-code}
62 temperature: $b{$.main.temp}
63 wind: $b{$.wind.speed}