From 5ff8b17b635114d85eb17918a51f18bb4cd9995d Mon Sep 17 00:00:00 2001 From: "blues-hub-automation[bot]" <271024864+blues-hub-automation[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 18:45:58 +0000 Subject: [PATCH] Update Notecard API from upstream schema changes (146e0e45e3f99c08b91ee17f68697c73be6291c5) --- notecard/ntn.py | 2 +- notecard/web.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notecard/ntn.py b/notecard/ntn.py index 5b937a0..5cba5b1 100644 --- a/notecard/ntn.py +++ b/notecard/ntn.py @@ -28,7 +28,7 @@ def config(card): @validate_card_object def gps(card, off=None, on=None): - """On a Notecard paired with a Starnote, this controls whether the Notecard supplies a location it already knows to the Starnote for satellite use. It does not, by default. On Notecard for Skylo, the satellite radio and the GPS/GNSS are part of the same module. This request controls whether the Notecard uses a known location (typically a fixed location set with `card.location.mode`), instead of acquiring a new location for NTN use. + """On a Notecard paired with a Starnote, this controls whether the Notecard supplies a location it already knows to the Starnote for satellite use. It does not, by default. On Notecard for Skylo, the satellite radio and the GPS/GNSS are part of the same module, and by default that module gets its own GPS/GNSS fix while it registers. This request controls whether the Notecard instead passes the module a location it already knows (typically a fixed location set with `card.location.mode`), which lets the module skip its own fix and register faster. Args: card (Notecard): The current Notecard object. diff --git a/notecard/web.py b/notecard/web.py index 479fa33..9da7c40 100644 --- a/notecard/web.py +++ b/notecard/web.py @@ -57,10 +57,10 @@ def get(card, binary=None, body=None, content=None, file=None, max=None, name=No body (dict): The JSON body to send with the request. content (str): The MIME type of the body or payload of the response. Default is `application/json`. file (str): The name of a local-only Database Notefile (.dbx) where the response will be stored when the web request is executed as a queued web transaction (e.g. if the request is made when Notecard is not in continuous mode and not online). If `file` is not specified, queued web transaction responses are discarded. This argument is not used when the Notecard is in `continuous` mode and online, as responses in that case are returned directly to the host. - max (int): Used along with `binary:true` and `offset`, sent as a URL parameter to the remote endpoint. Represents the number of bytes to retrieve from the binary payload segment. + max (int): Used along with `binary:true` and `offset`. Represents the number of bytes to retrieve from the binary payload segment. Notehub requests this byte range from the remote endpoint with an HTTP `Range` header (`Range: bytes=-`), so the endpoint must support range requests. name (str): A web URL endpoint relative to the host configured in the Proxy Route. URL parameters may be added to this argument as well (e.g. `/getLatest?id=1`). note (str): The unique Note ID within the local-only Database Notefile (.dbx) specified by the `file` argument (see above). Used with queued web transactions to identify a specific Note where the response will be stored. - offset (int): Used along with `binary:true` and `max`, sent as a URL parameter to the remote endpoint. Represents the number of bytes to offset the binary payload from 0 when retrieving binary data from the remote endpoint. + offset (int): Used along with `binary:true` and `max`. Represents the number of bytes to offset the binary payload from 0 when retrieving binary data from the remote endpoint. Notehub sends `offset` and `max` to the endpoint as an HTTP `Range` header, not as URL parameters. route (str): Alias for a Proxy Route in Notehub. seconds (int): If specified, overrides the default 90 second timeout.