Skip to content

general token for prototyping? #17

Open

Description

@rgcoe

I'm prototyping and debuging some code that I'd like to run later this season when my buoy gets redeployed. In the meantime, is there a way for me to point my requests at an open-access buoy that is deployed?

Activity

  1. tcj commented on Mar 28, 2022

    @tcj
    Collaborator

    Hi @ryancoe —

    Indeed! Signing up for a Trial API account would grant you access to SPOT-0222. You can log in to weather.sofarocean.com, click "Get Your API Token," and start a trial. The instructions are also written up here.

    Hope that helps.

  2. rgcoe commented on Mar 29, 2022

    @rgcoe
    Author

    Thans @tcj!

  3. rgcoe commented on Mar 15, 2023

    @rgcoe
    Author

    @tcj - We tried to query SPOT-0222 again recently for development/prototyping, but that didn't seem to work. I'm guessing this is because, as you mention above, access to SPOT-0222 was related to some sort of trial period. Is the best course of action to sign up for a new trial, or is there a public buoy that we can always query (this would be helpful, as we'd like to release our code open-source).

    Python code
    from pysofar.sofar import SofarApi
    from pysofar import get_token
    sofar_token = my_token # replace with token
    get_token()
    sofar = SofarApi(sofar_token)
    sofar
    spotter_grid = sofar.get_spotters()
    [spotter.id for spotter in spotter_grid]
    ['SPOT-0589']
    

    CC @andermi @hamilton8415

  4. reopened this on Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions