Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login
    1. Home
    2. SY GRACE
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    SY GRACE

    @SY GRACE

    1
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Website SailingAmazingGrace.com

    SY GRACE Unfollow Follow

    Best posts made by SY GRACE

    • RE: PWS API v2 - updating position (lat/lon)

      @Rolandoz said in PWS API v2 - updating position (lat/lon):

      What if you ONLY include the lat / lon fields in the json and omits all the other?

      Appreciate you thinking through the possible angles. I tried that approach previously. Because the station update via API v2 is done with a PUT, if any fields are missing they are overwritten as blanks.

      @Rolandoz said in PWS API v2 - updating position (lat/lon):

      And I assume your plugin can save the previous reported position and if it has not changed significant the simply omit the position update at all?

      The code already has a configurable distance calculation (default: 300m) so that when a boat is at anchor or dock the station update is skipped.

      posted in Developers
      SY GRACES
      SY GRACE

    Latest posts made by SY GRACE

    • RE: PWS API v2 - updating position (lat/lon)

      @Rolandoz said in PWS API v2 - updating position (lat/lon):

      What if you ONLY include the lat / lon fields in the json and omits all the other?

      Appreciate you thinking through the possible angles. I tried that approach previously. Because the station update via API v2 is done with a PUT, if any fields are missing they are overwritten as blanks.

      @Rolandoz said in PWS API v2 - updating position (lat/lon):

      And I assume your plugin can save the previous reported position and if it has not changed significant the simply omit the position update at all?

      The code already has a configurable distance calculation (default: 300m) so that when a boat is at anchor or dock the station update is skipped.

      posted in Developers
      SY GRACES
      SY GRACE
    • PWS API v2 - updating position (lat/lon)

      I am the author of the recently released plugin that updates PWS observations from Signal K.

      As this use case is targeted towards boaters, which are often moving vessels, there is a frequent need to update position (lat/lon).

      With the exception of position (lat/lon), the remaining data in the PUT payload to /api/v2/pws/{id} is seldom updated. Considering that for a moving vessel it would be appropriate to update the position with every observation GET update to /api/v2/observation/update, it doesn't appear efficient to be resending the remaining static information, including possibly the operator_logo, with every transmission.

      Is there any interest to adapt/extend the new API v2 to make position updates for a station more efficient?

      Thank you for the consideration.

      posted in Developers
      SY GRACES
      SY GRACE