1.5.0 • Published 4 years ago

open-weather-lib v1.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

open-weather-lib

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save open-weather-lib

Usage

import React from 'react'

import { OpenWeather } from 'open-weather-lib'
import './node_modules/open-weather-lib/dist/index.css';

const WEATHER_DATA = {
  appId:'YOUR_OPEN_WEATHER_API_ID',
  units:'metric/impercial',
  type:'current',
  "location":{
  	"city":"Guadalajara",
  	"country":"Mx"
  },
  "cord":{
  	"lat":"20.6565116",
  	"lon":"-103.4128702"
  },
};

const App = () => {
  return <OpenWeather 
  			weatherData={WEATHER_DATA}
  		/>
}

export default App

Notes: 

link to OpenWeather 

OpenWeather Example

By now is just the current weather, we will work for have more options

License

MIT ©

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.0

6 years ago