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

iso-openweathermap

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-openweathermap

Isomorphic OpenWeatherMap API

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

iso-openweathermap NPM version Build Status Dependency Status Coverage percentage

Isomorphic OpenWeatherMap API

Installation

$ npm install --save iso-openweathermap

Usage

$(document).ready(() => {

  const config = {
    API_ENDPOINT: 'http://api.openweathermap.org/data/2.5/weather', 
    API_KEY: 'Your API Key',
    UNITS: 'imperial', 
    MODE: 'json', 
    LAT: null, 
    LON: null,
    ACCURACY: 'high', 
    CALLBACK: null, 
    LANGUAGE: 'en',
  };

  let weather = new OpenWeatherMap(config);
  
  setInterval(() => {
    $('.country').text(weather.getCountry())
    $('.city').text(weather.getCity())
    $('.weather').html(weather.getWeatherDescription() + '<img src="' + weather.getWeatherIcon() + '" \/>');
    $('.temp').text(weather.getTemp() + weather.getUnitSymbol())
    $('.pressure').text(weather.getPressure())
    $('.humidity').text(weather.getHumidity())
    $('.windspeed').text(weather.getWindspeed())
  }, 3000);
});

License

MIT © Jay Looney <jay.m.looney@gmail.com>

Keywords

FAQs

Package last updated on 18 Mar 2016

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