weather_forecast_logic_devishree
v1.0.2
Published
Trial on how to publish a npm package
Readme
Exposed APIs S.No | API Name | Description | | Parameters to Pass
1 | [setInputFilePath] | Sets the [inputFilePath] variable to get ninput JSON| [JSON_file_path]
2 | [allTimeZones] | Returns weather information for all the cities | -
3 | [timeForOneCity] | Returns current date and time of a city | [city_name]
4 | [nextNhoursWeather] | Returns weather forecast for next N number of hours | [result_of_timeForOneCity_API]
| [number_of_hours]
| [latest_result_of_allTimeZones_API]
Input JSON file format [ { name: 'Nome', timeZone: 'America/Nome', minTemperature: -19, maxTemperature: 10 },...... ]
Note It is mandatory to set the [inpuFilePath] property's value before calling any of the exposed APIs for computations.
