Skip to content

Commit bbdc868

Browse files
Update Notecard API from upstream schema changes (6aadfb18144b023f29f45d838a8b49e24a7a9c03) (#169)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 10b84b8 commit bbdc868

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

notecard/card.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def voltage(card, alert=None, calibration=None, hours=None, mode=None, name=None
863863
alert (bool): When enabled and the `usb` argument is set to `true`, the Notecard will add an entry to the `health.qo` Notefile when USB power is connected or disconnected.
864864
calibration (float): The offset, in volts, to account for the forward voltage drop of the diode used between the battery and Notecard in either Blues- or customer-designed Notecarriers.
865865
hours (int): The number of hours to analyze, up to 720 (30 days).
866-
mode (str): Used to set voltage thresholds based on how the Notecard will be powered, and which can be used to configure voltage-variable Notecard behavior. Each value is shorthand that assigns a battery voltage reading to a given device state like `high`, `normal`, `low`, and `dead`. NOTE: Setting voltage thresholds is not supported on the Notecard XP.
866+
mode (str): Used to set voltage thresholds based on how the Notecard will be powered, and which can be used to configure voltage-variable Notecard behavior. Each value is shorthand that assigns a battery voltage reading to a given device state like `high`, `normal`, `low`, and `dead`. In addition to the named presets below, a custom semicolon-separated shorthand string may be provided using any combination of the `usb`, `high`, `normal`, `low`, and `dead` states (e.g. `"usb:4.6;high:4.2;normal:3.6;low:0"`). NOTE: Setting voltage thresholds is not supported on the Notecard XP.
867867
name (str): Specifies an environment variable to override application default timing values.
868868
off (bool): Disable historic voltage trend calculations.
869869
offset (int): Number of hours to move into the past before starting analysis.
@@ -967,7 +967,7 @@ def wireless(card, apn=None, hours=None, method=None, mode=None):
967967

968968
@validate_card_object
969969
def wifi(card, name=None, org=None, password=None, ssid=None, start=None, text=None):
970-
r"""Set up a Notecard WiFi to connect to a WiFi access point.
970+
r"""Set up a Notecard's connection to a WiFi access point.
971971
972972
Args:
973973
card (Notecard): The current Notecard object.

0 commit comments

Comments
 (0)