{"id":20334909,"url":"https://github.com/mdb/seaweed-cli","last_synced_at":"2025-04-11T21:51:36.127Z","repository":{"id":64305963,"uuid":"43605601","full_name":"mdb/seaweed-cli","owner":"mdb","description":"A Golang-based command line tool for fetching surf forecast data from the Magic Seaweed API.","archived":false,"fork":false,"pushed_at":"2023-03-28T00:48:46.000Z","size":46,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T17:49:32.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-03T16:28:18.000Z","updated_at":"2023-03-22T23:10:01.000Z","dependencies_parsed_at":"2024-06-20T14:05:58.514Z","dependency_job_id":"2b1c86eb-a00d-404b-b4b6-d7d926e37544","html_url":"https://github.com/mdb/seaweed-cli","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fseaweed-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/seaweed-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487733,"owners_count":21112188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:38:34.042Z","updated_at":"2025-04-11T21:51:36.101Z","avatar_url":"https://github.com/mdb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mdb/seaweed-cli.svg?branch=master)](https://travis-ci.org/mdb/seaweed-cli)\n\n# seaweed-cli\n\nA Golang-based command line application for fetching surf forecast data from the [Magic Seaweed API](http://magicseaweed.com/developer/forecast-api).\n\n## Installation\n\n1. Download the latest [release](https://github.com/mdb/seaweed-cli/releases) for your operating system.\n2. Untar the download. For example: `tar -xvf seaweed_0.0.5_darwin_x86_64.tgz`\n3. Move the `seaweed` executable to your `$PATH`: `mv seaweed /usr/bin/`\n\nAlternatively, if you chose to install from source:\n\n```\nmake install\n```\n\n## Usage\n\nYou'll need:\n\n* a Magic Seaweed API Key - this can be [requested from magicseaweed.com](http://magicseaweed.com/developer/sign-up)\n* the ID of the spot you'd like to query - this can be retrieved from a spot's forecast URL. For example, Ocean City, NJ's spot ID is `391`, as per its forecast URL: `http://magicseaweed.com/Ocean-City-NJ-Surf-Report/391/`\n\nView all commands and options:\n\n```\n$ seaweed\nNAME:\n   seaweed-cli - Should I go surfing?\n\nUSAGE:\n   seaweed [global options] command [command options] [arguments...]\n\nVERSION:\n   0.0.5\n\nCOMMANDS:\n     forecast   forcast \u003cspotId\u003e\n     today      today \u003cspotId\u003e\n     tomorrow   tomorrow \u003cspotId\u003e\n     weekend    weekend \u003cspotId\u003e\n\nGLOBAL OPTIONS:\n   --apiKey value       Magic Seaweed API key [$MAGIC_SEAWEED_API_KEY]\n   --cacheDir value     Directory to cache API responses [$MAGIC_SEAWEED_CACHE_DIR]\n   --cacheAge value     Duration to cache API responses [$MAGIC_SEAWEED_CACHE_AGE]\n   --debug value        Print debug output [$MAGIC_SEAWEED_DEBUG]\n   --help, -h           show help\n   --version, -v        print the version\n```\n\nExample usage:\n\n```\n$ seaweed today 392\n+--------------------+--------------+--------------+----------------------+------------+\n|        DATE        | SOLID RATING | FADED RATING | PRIMARY SWELL HEIGHT |    WIND    |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 02:00 am |            0 |            1 | 2.50ft               | 12 mph E   |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 05:00 am |            0 |            1 | 2.50ft               | 10 mph E   |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 08:00 am |            0 |            1 | 2.00ft               | 20 mph ENE |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 11:00 am |            0 |            1 | 5.00ft               | 22 mph ENE |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 02:00 pm |            0 |            2 | 6.50ft               | 22 mph NE  |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 05:00 pm |            1 |            1 | 7.00ft               | 19 mph NNE |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 08:00 pm |            1 |            1 | 6.50ft               | 15 mph NNE |\n+--------------------+--------------+--------------+----------------------+------------+\n| Sat 05/21 11:00 pm |            0 |            2 | 5.50ft               | 17 mph NE  |\n+--------------------+--------------+--------------+----------------------+------------+\n```\n\n## Development\n\nRunning lint, tests, etc.:\n\n```\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fseaweed-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fseaweed-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fseaweed-cli/lists"}