DATA_SOURCE += '&appid=' + secrets['openweather_token'] # You'll need to get a token from openweather.org, looks like 'b6907d289e10d714a6e88b30761fae22' DATA_LOCATION = [] # alarm state support alarm_background = 'red_alert.bmp' alarm_file = 'alarm.wav' alarm_enabled = True alarm_armed = True alarm_interval = 10.0 alarm_hour = 9 alarm_minute = 45 snooze_time = None snooze_interval = 600.0 pyportal = PyPortal(url=DATA_SOURCE, json_path=DATA_LOCATION, status_neopixel=board.NEOPIXEL, debug=True) application = Application(pyportal, logger, time_font, temperature_font) application.change_to_state("menu") touched = False while True: touched = application.current_state.touch(pyportal.touchscreen.touch_point, touched) application.current_state.tick(time.monotonic())