npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/stormglass

v4.0.0

Published

DataFire integration for Storm Glass Marine Weather

Downloads

12

Readme

@datafire/stormglass

Client library for Storm Glass Marine Weather

Installation and Usage

npm install --save @datafire/stormglass
let stormglass = require('@datafire/stormglass').create({
  authenticationToken: ""
});

.then(data => {
  console.log(data);
});

Description

Global marine weather data from multiple sources in one single API with hourly resolution. Get your API key by visiting the Storm Glass web site.

Actions

getForecast

Get forecast info for the given coordinates. For every hour and property, you will get a list of weather sources and their values.

stormglass.getForecast({
  "lat": 0,
  "lng": 0
}, context)

Input

  • input object
    • lat required number: The latitude for a location. Valid input is a number between -90 and 90.
    • lng required number: The longitude for a location. Valid input is a number between -180 and 180.

Output

Definitions

Forecast

  • Forecast object
    • hours array: Every hour with forecast data is represented with an object in this array
      • items object: Hourly forecast information
        • airTemperature array
          • items object: Air temperature given in celsius
            • source string
            • value string
        • swellDirection array
          • items object: Direction given in degrees where 0 goes from North to South
            • source string
            • value string
        • swellHeight array
          • items object: Swell height given in meters
            • source string
            • value string
        • swellPeriod array
          • items object: Swell period given in seconds
            • source string
            • value string
        • time string: Timestamp in utc for the hour represented
        • waterTemperature array
          • items object: Water temperature given in celsius
            • source string
            • value string
        • waveDirection array
          • items object: Direction given in degrees where 0 goes from North to South
            • source string
            • value number
        • waveHeight array
          • items object: Wave height given in metres
            • source string
            • value string
        • wavePeriod array
          • items object
            • source string
            • value string
        • windDirection array
          • items object: Wind direction given in degrees where 0 goes from North to South
            • source string
            • value string
        • windSpeed array
          • items object: Wind speed given in meters per second
            • source string
            • value string
    • meta object
      • dailyQuota integer: The number of successful requests you can do on one day
      • lat number: The latitude the response is showing forecast data for
      • lng number: The longitude the response is showing forecast data for
      • requestCount integer: The number of successful requests made this day.