Matrix Portal - network.get_local_time error message

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
belsonc
 
Posts: 38
Joined: Tue Sep 15, 2020 8:39 pm

Matrix Portal - network.get_local_time error message

Post by belsonc »

Hi -

It was suggested I post my problem here by someone in the Adabox forum...

I used the contents of my Adabox to make a clock, which I'm updating by connecting and retrieving the current time for my time zone. I've found it'll run for a half hour or so, then I get the following error:

Code: Select all

Getting time for timezone America/New_York
Traceback (most recent call last):
  File "code.py", line 51, in <module>
  File "adafruit_matrixportal/network.py", line 198, in get_local_time
  File "adafruit_matrixportal/network.py", line 180, in get_local_time
  File "adafruit_requests.py", line 291, in get
  File "adafruit_requests.py", line 250, in request
  File "adafruit_esp32spi/adafruit_esp32spi_socket.py", line 204, in close
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 769, in socket_close
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 323, in _send_command_get_response
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 306, in _wait_response_cmd
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 290, in _wait_response_cmd
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 266, in _wait_spi_char
RuntimeError: Error response to command
where line 51 is network.get_local_time(). Can anyone shed light on why I'm getting this/what I'm doing wrong? Am I ending up with too many socket connections or something? (And if you can help me fix it, I'd be very appreciative...) I can copy/paste any other code from the project - please let me know. Thanks!

User avatar
belsonc
 
Posts: 38
Joined: Tue Sep 15, 2020 8:39 pm

Re: Matrix Portal - network.get_local_time error message

Post by belsonc »

So I'm not sure why/how, but I was able to fix this issue by replacing the files involved.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”