New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@skyra/weather-helpers

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyra/weather-helpers

Very basic weather helper functions used across several ArchId bots

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
decreased by-70.07%
Maintainers
2
Weekly downloads
 
Created
Source

@skyra/weather-helpers

Very basic weather helper functions for several ArchId bots to ensure we do not duplicate code.

Features

  • Powered by the @skyra/safe-fetch package

Usage

You can use the functions exported from this package to interact with the Weather API.

import { getWeatherData } from '@skyra/weather-helpers';

const result = await getWeatherData('Amsterdam', 'en-us');
console.log(result);
Here is an example request
{
	"current_condition": [
		{
			"FeelsLikeC": "-2",
			"FeelsLikeF": "28",
			"cloudcover": "75",
			"humidity": "80",
			"localObsDateTime": "2024-01-06 11:21 PM",
			"observation_time": "10:21 PM",
			"precipInches": "0.0",
			"precipMM": "0.0",
			"pressure": "1017",
			"pressureInches": "30",
			"temp_C": "2",
			"temp_F": "36",
			"uvIndex": "1",
			"visibility": "10",
			"visibilityMiles": "6",
			"weatherCode": "116",
			"weatherDesc": [
				{
					"value": "Partly cloudy"
				}
			],
			"weatherIconUrl": [
				{
					"value": ""
				}
			],
			"winddir16Point": "NNE",
			"winddirDegree": "30",
			"windspeedKmph": "22",
			"windspeedMiles": "14"
		}
	],
	"nearest_area": [
		{
			"areaName": [
				{
					"value": "Amsterdam"
				}
			],
			"country": [
				{
					"value": "Netherlands"
				}
			],
			"latitude": "52.374",
			"longitude": "4.890",
			"population": "741636",
			"region": [
				{
					"value": "North Holland"
				}
			],
			"weatherUrl": [
				{
					"value": ""
				}
			]
		}
	],
	"request": [
		{
			"query": "Lat 52.37 and Lon 4.90",
			"type": "LatLon"
		}
	],
	"weather": []
}

Keywords

FAQs

Package last updated on 07 Jan 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