🎁📬❄️📦 Holiday Shipping Deadlines are approaching! International customers and domestic ground - get your orders in 12/9/2020 📦❄️📬🎁
0

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.
Please be positive and constructive with your questions and comments.

Matrix Portal - network.get_local_time error message

by belsonc on Sun Nov 08, 2020 10:34 pm

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 | TOGGLE FULL SIZE
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!

belsonc
 
Posts: 25
Joined: Tue Sep 15, 2020 8:39 pm

Re: Matrix Portal - network.get_local_time error message

by belsonc on Mon Nov 09, 2020 8:06 pm

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

belsonc
 
Posts: 25
Joined: Tue Sep 15, 2020 8:39 pm

Please be positive and constructive with your questions and comments.