diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index d86ccb9..fd46b28 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -646,9 +646,13 @@ def image_converter_url(image_url, width, height, color_depth=16): width, height, color_depth, image_url) - def fetch(self): + def fetch(self, refresh_url=None): """Fetch data from the url we initialized with, perfom any parsing, - and display text or graphics. This function does pretty much everything""" + and display text or graphics. This function does pretty much everything + Optionally update the URL + """ + if refresh_url: + self._url = refresh_url json_out = None image_url = None values = []