mhelmetag / gosurf Goto Github PK
View Code? Open in Web Editor NEWCLI Client for Surfline
License: GNU General Public License v3.0
CLI Client for Surfline
License: GNU General Public License v3.0
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
Line 96 in 8750447
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.