You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Use `card.power` API is used to configure a connected Mojo device or to manually request power consumption readings in firmware.
591
591
592
592
Args:
593
593
card (Notecard): The current Notecard object.
594
-
minutes (int): How often, in minutes, Notecard should log power consumption in a `_log.qo` Note. The default value is `720` (12 hours).
594
+
hours (int): How often, in hours, Notecard should log power consumption in a `_log.qo` Note. Provided as a convenience alternative to `minutes`. If both `hours` and `minutes` are provided, the resulting cadence is the sum of the two.
595
+
minutes (int): How often, in minutes, Notecard should log power consumption in a `_log.qo` Note. The default value is `720` (12 hours). May be combined with `hours`, in which case the two values are added together.
595
596
reset (bool): Set to `true` to reset the power consumption counters back to 0.
"""Specify the connectivity protocol to prioritize on the Notecard Cell+WiFi, or when using NTN mode with Starnote and a compatible Notecard.
742
745
743
746
Args:
744
747
card (Notecard): The current Notecard object.
745
-
allow (bool): Set to `true` to allow adding Notes to non-compact Notefiles while connected over a non-terrestrial network. See Define NTN vs non-NTN Templates.
748
+
allow (bool): Set to `true` to allow adding Notes to templated Notefiles that have no `port` while connected over a non-terrestrial network. See Define NTN vs non-NTN Templates.
746
749
method (str): The connectivity method to enable on the Notecard.
747
750
seconds (int): The amount of time (in seconds) a Notecard will spend on any fallback transport before retrying the first transport specified in the `method`. The default is `3600` or 60 minutes.
751
+
set (bool): Set to `true` to apply the `allow` argument without also changing the transport `method`.
748
752
umin (bool): Set to `true` to force a longer network transport timeout when using Wideband Notecards.
"""Provide the current VMODEM_P voltage level on the Notecard, and provides information about historical voltage trends. When used with the mode argument, configures voltage thresholds based on how the device is powered.
hours (int): The number of hours to analyze, up to 720 (30 days).
866
872
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.
867
873
name (str): Specifies an environment variable to override application default timing values.
874
+
now (bool): By default, the returned `value` is an average of the voltage readings taken over the previous 15 minutes, which smooths out momentary fluctuations. Set to `true` to return the instantaneous voltage reading instead.
868
875
off (bool): Disable historic voltage trend calculations.
869
876
offset (int): Number of hours to move into the past before starting analysis.
870
877
on (bool): Enable historic voltage trend calculations.
871
878
set (bool): Used along with `calibration`, set to `true` to specify a new calibration value.
872
879
sync (bool): When enabled and the `usb` argument is set to `true`, the Notecard will perform a sync when USB power is connected or disconnected.
873
880
usb (bool): When enabled, the Notecard will monitor for changes to USB power state.
874
-
vmax (float): Ignore voltage readings above this level when performing calculations.
875
-
vmin (float): Ignore voltage readings below this level when performing calculations.
881
+
vmax (float): Ignore voltage readings above this level when performing calculations. Defaults to the maximum voltage the Notecard's components are rated for.
882
+
vmin (float): Ignore voltage readings below this level when performing calculations. Defaults to the minimum voltage the Notecard's components are rated for.
0 commit comments