@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.