Skip to content

Commit 9d8e54f

Browse files
authored
Merge pull request #1421 from caternuson/pp_tides_update
Update PyPortal Tides Code
2 parents 7fe5e33 + cbf8807 commit 9d8e54f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

PyPortal_Tides/pp_tides.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#-------------------------------------------
1313

1414
# pylint: disable=line-too-long
15-
DATA_SOURCE = "https://tidesandcurrents.noaa.gov/api/datagetter?date=today&product=predictions&datum=mllw&interval=hilo&format=json&units=metric&time_zone=lst_ldt&station="+STATION_ID
15+
DATA_SOURCE = "https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=today&product=predictions&datum=mllw&interval=hilo&format=json&units=metric&time_zone=lst_ldt&station="+STATION_ID
1616
DATA_LOCATION = ["predictions"]
1717

1818
# determine the current working directory needed so we know where to find files
@@ -83,7 +83,6 @@ def update_display(time_info, update_tides=False):
8383
time_info.tm_min,
8484
time_info.tm_sec)
8585

86-
board.DISPLAY.refresh_soon()
8786

8887
# First run update
8988
tide_info = get_tide_info()

PyPortal_Tides/pp_tides_graphical.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#-------------------------------------------
1818

1919
# pylint: disable=line-too-long
20-
DATA_SOURCE = "https://tidesandcurrents.noaa.gov/api/datagetter?date=today&product=predictions&datum=mllw&format=json&units=metric&time_zone=lst_ldt&station="+STATION_ID
20+
DATA_SOURCE = "https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=today&product=predictions&datum=mllw&format=json&units=metric&time_zone=lst_ldt&station="+STATION_ID
2121
DATA_LOCATION = ["predictions"]
2222

2323
WIDTH = board.DISPLAY.width
@@ -132,7 +132,6 @@ def update_display(time_info, update_tides=False):
132132
time_info.tm_min,
133133
time_info.tm_sec)
134134

135-
board.DISPLAY.refresh_soon()
136135

137136
# First run update
138137
tide_data = get_tide_data()

0 commit comments

Comments
 (0)