Giter Site home page Giter Site logo

gosurf's People

Contributors

aboraks avatar mhelmetag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aboraks

gosurf's Issues

Units should be from the "associated" part of returned data

From Mexico, it seems like Surfline is inferring that I want to see height in meters (for surf and tide height).

gosurf f -r 58581a836630e24c44878fe5 -d 6
Fetching 6 day(s) of forecasts for Cabo...
+-----------+-------------+--------------+-----------+-------------------+
|   DATE    | TIME OF DAY |    RATING    |   RANGE   |     FORECAST      |
+-----------+-------------+--------------+-----------+-------------------+
| 7/9/2022  | AM          | Fair         | 0.9-1.5ft | Waist to head     |
|           | PM          | Poor to Fair | 0.9-1.5ft | Waist to head     |
| 7/10/2022 | AM          | Fair         | 0.9-1.4ft | Waist to shoulder |
|           | PM          | Poor to Fair | 0.9-1.4ft | Waist to head     |
| 7/11/2022 | AM          | Fair         | 0.9-1.2ft | Waist to chest    |
|           | PM          | Poor to Fair | 0.9-1.2ft | Waist to chest    |
| 7/12/2022 | AM          | Fair         | 0.6-1.1ft | Thigh to stomach  |
|           | PM          | Poor to Fair | 0.6-1.1ft | Thigh to stomach  |
| 7/13/2022 | AM          | Fair         | 0.6-1.1ft | Thigh to stomach  |
|           | PM          | Poor to Fair | 0.6-1.1ft | Waist to chest    |
| 7/14/2022 | AM          | Fair         | 0.9-1.5ft | Waist to head     |
|           | PM          | Poor to Fair | 0.9-1.5ft | Chest to head     |
+-----------+-------------+--------------+-----------+-------------------+

I believe this could be fixed by using the associated object returned in the conditions response. It contains the "units" associated to the data.

The Surfline API package this project is using, https://github.com/mhelmetag/surflinef, already supports that here: https://github.com/mhelmetag/surflinef/blob/957d7ec4177276c2b2719522b47cbeb42705b26f/v2/conditions.go#L26

Typo in readme

Sorry if this is not the correct spot or appropriate method. I'm very new to Git

Typo in readme

"To search for regions in Central America, specify regions as the place type (--pt regions) and then provide the area ID (--a 4710)"

(--pt regions)
should read
(--t regions)

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.