Giter VIP home page Giter VIP logo

thesurf.in's Introduction

A console oriented surf forecast.

Notice: When Surfline acquired MSW, they shut down their API. This site is no longer functional. I've left a demo of an old forecast, at least until the domain expires.

2023-01-19-190036_990x769_scrot

usage

You can view the content in your browser, but it's intended for the terminal.

Operation Command
Demo Forecast curl -L thesurf.in/demo
Spot Forecast curl -L thesurf.in/<spot-name>
List available spots curl -L thesurf.in/spots
Find spot by name curl -L thesurf.in/spots?search_substring

examples

# get forecast for fire island
curl https://thesurf.in/fire-island

# find MSW's annoying name for mavericks
curl https://thesurf.in/spots?mavericks

# get the forecast for mavericks
curl https://thesurf.in/mavericks-half-moon-bay

# or with the MSW ID found from searching
curl https://thesurf.in/162

units

You can append the query param ?units={uk,us,eu} to the forecast endpoint, where

  • us: uses ft, mph, f
  • uk: uses ft, mph, c
  • eu: uses m, kph, c

These are passed directly to MSW (docs).

limitations

The MSW forecast data does not convey the relationship of the wind relative to the shore (e.g. on/off/cross shore). The red/blue/green ratings in the interface are instead a simple function of MSW's faded stars. This function is not perfect, and could probably be improved.

dev deps

  1. rust
  2. 1pw cli
  3. just
  4. An MSW API key, which they are not currently offering to the general public.

thesurf.in's People

Contributors

samtay avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.