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
Copy file name to clipboardExpand all lines: adafruit_pyportal.py
+34-24Lines changed: 34 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -100,18 +100,23 @@ class PyPortal:
100
100
"""Class representing the Adafruit PyPortal.
101
101
102
102
:param url: The URL of your data source. Defaults to ``None``.
103
-
:param json_path: The list of json traversal to get data out of. Can be list of lists for multiple data points. Defaults to ``None`` to not use json.
104
-
:param regexp_path: The list of regexp strings to get data out (use a single regexp group). Can be list of regexps for multiple data points. Defaults to ``None`` to not use regexp.
103
+
:param json_path: The list of json traversal to get data out of.
104
+
Can be list of lists for multiple data points. Defaults to ``None`` to not use json.
105
+
:param regexp_path: The list of regexp strings to get data out (use a single regexp group).
106
+
Can be list of regexps for multiple data points. Defaults to ``None`` to not use regexp.
105
107
:param default_bg: The path to your default background image file. Defaults to ``None``.
106
108
:param status_neopixel: The pin for the status NeoPixel. Use ``board.NEOPIXEL`` for the
107
109
on-board NeoPixel. Defaults to ``None``, no status LED
108
110
:param str text_font: The path to your font file for your data text display.
109
-
:param text_position: The position of your extracted text on the display in an (x, y) tuple. Can be a list of tuples for when there's a list of json_paths, for example
110
-
:param text_color: The color of the text, in 0xRRGGBB format. Can be a list of colors for when there's multiple texts. Defaults to ``None``.
111
+
:param text_position: The position of your extracted text on the display in an (x, y) tuple.
112
+
Can be a list of tuples for when there's a list of json_paths, for example
113
+
:param text_color: The color of the text, in 0xRRGGBB format. Can be a list of colors for
114
+
when there's multiple texts. Defaults to ``None``.
111
115
:param text_wrap: Whether or not to wrap text (for long text data chunks). Defaults to ``False``, no wrapping.
112
116
:param text_maxlen: The max length of the text for text wrapping. Defaults to 0.
113
117
:param image_json_path: The JSON traversal path for a background image to display. Defaults to ``None``.
114
-
:param image_resize: What size to resize the image we got from the json_path, make this a tuple of the width and height you want. Defaults to ``None``.
118
+
:param image_resize: What size to resize the image we got from the json_path,
119
+
make this a tuple of the width and height you want. Defaults to ``None``.
115
120
:param image_position: The position of the image on the display as an (x, y) tuple. Defaults to ``None``.
116
121
:param success_callback: A function we'll call if you like, when we fetch data successfully. Defaults to ``None``.
117
122
:param str caption_text: The text of your caption, a fixed text not changed by the data we get. Defaults to ``None``.
0 commit comments