Updated import order and import secrets
import time
+import json
import board
import displayio
-import json
-from secrets import secrets
from adafruit_pyportal import PyPortal
from adafruit_bitmap_font import bitmap_font
from adafruit_display_text.label import Label
+# Get wifi details and more from a secrets.py file
+try:
+ from secrets import secrets
+except ImportError:
+ print("WiFi secrets are kept in secrets.py, please add them there!")
+raise
+
#--| USER CONFIG |--------------------------
STATION_ID = "0245" # tide location, find yours from admiralty website
PLOT_SIZE = 2 # tide plot thickness
@@ -155,3 +161,4 @@ while True:
current_yday = current_time.tm_yday
update_display(current_time, new_tides)
time.sleep(0.5)
+
