1.0.1 • Published 5 years ago

react-weather-station-data v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

react-weather-station-data

This package is for my personal project, you probably won't find it useful

Usage

  render(
    <ReactWeatherStationData
      stationUrl={ <URL> }
      ticking
    />
  )

Renders

Fragment of two divs

<>
  <div> /* empty when loading || rainIcon || snowIcon */ </div>
  <div> /* loadingContent || temperature + degreeCharacter */ </div>
</>

Props

propdefaultdescription
stationUrlundefined (required)Url to station data
tickingfalseShould the station data update. Updates every 30 mins
degreeCharacter'°'Degree character
loadingContent'Loading'Content when loading. Accepts component
rainIcon'Raining'Icon when raining. Accepts component
snowIcon'Snowing'Icon when snowing. Accepts component