Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

github.com/alokgarg-dev/weather-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alokgarg-dev/weather-api


Version published
Created
Source

weather-api

WeatherService

How it works!

Weather API uses Data recevied from OpenWeatherAPI to generate intelligent responses. To use the repo, add your personal API_KEY generated via OpenWeather Website into config.yml file against API_KEY environment variable.

Request format

It accepts requests as /weather?lat={lat}&lon={lon} and accepts floating points values for latitude and longitude for which current weather conditions are sought. The default units queried are in metrics system.

Response format

  • If the temperature feels to be less than 15C, it shows cold weather.
  • If the temperature feels to be between 15C and 30C, it returns moderate as response.
  • If the temperature feels to be more than 30C, weather is deemed to be hot .

FAQs

Package last updated on 20 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc