Difficulty with MagTag and Google Calendar

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
reallydontknowwhatimdoing
 
Posts: 8
Joined: Fri Jun 18, 2021 1:59 pm

Difficulty with MagTag and Google Calendar

Post by reallydontknowwhatimdoing »

Hello,
I've been trying to set up Google Calendar Event Display (https://learn.adafruit.com/magtag-googl ... nt-display) on my MagTag. I've made it through all the steps and it successfully connects to the internet and to Google for authentication. However, I am stuck with the following. Grateful for any advice.

Traceback (most recent call last):
File "code.py", line 246, in <module>
File "code.py", line 84, in get_current_time
File "adafruit_portalbase/__init__.py", line 411, in get_local_time
File "adafruit_portalbase/network.py", line 231, in get_local_time
File "adafruit_portalbase/network.py", line 200, in get_strftime
File "adafruit_requests.py", line 615, in get
File "adafruit_requests.py", line 556, in request
File "adafruit_requests.py", line 423, in _get_socket
RuntimeError: Sending request failed

Code done running.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Difficulty with MagTag and Google Calendar

Post by mikeysklar »

I see your code is failing in get_current_time().

This is most likely a library issue. Is your MagTag up to date with the current CircuitPython and matching latest CP7.x libraries?
If you're having difficulty running this example, it could be because your MagTag CircuitPython firmware or library needs to be upgraded! Please be sure to follow https://learn.adafruit.com/adafruit-mag ... cuitpython to install the latest CircuitPython firmware and then also replace/update ALL the MagTag-specific libraries mentioned here https://learn.adafruit.com/adafruit-mag ... ibraries-2
https://learn.adafruit.com/adafruit-mag ... cuitpython
https://learn.adafruit.com/adafruit-mag ... ibraries-2

User avatar
reallydontknowwhatimdoing
 
Posts: 8
Joined: Fri Jun 18, 2021 1:59 pm

Re: Difficulty with MagTag and Google Calendar

Post by reallydontknowwhatimdoing »

thanks for your reply -- I tried updating to the current CircuitPython and made sure the CP7.x libraries were the latest, and still got the following. Anything else I should be looking for?

Traceback (most recent call last):
File "code.py", line 246, in <module>
File "code.py", line 84, in get_current_time
File "adafruit_portalbase/__init__.py", line 411, in get_local_time
File "adafruit_portalbase/network.py", line 231, in get_local_time
File "adafruit_portalbase/network.py", line 200, in get_strftime
File "adafruit_requests.py", line 613, in get
File "adafruit_requests.py", line 554, in request
File "adafruit_requests.py", line 423, in _get_socket
RuntimeError: Sending request failed

Code done running.

Press any key to enter the REPL. Use CTRL-D to reload.

Adafruit CircuitPython 7.0.0 on 2021-09-20; Adafruit MagTag with ESP32S2
>>> [D

User avatar
jonbloom_
 
Posts: 1
Joined: Mon Oct 25, 2021 5:33 pm

Re: Difficulty with MagTag and Google Calendar

Post by jonbloom_ »

I'm running into the same issue here with the exact same stack trace.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Difficulty with MagTag and Google Calendar

Post by adafruit2 »

did y'all put in adafruit io username/password? we use adafruitio for getting the current time/date SEPARATELY from google cal

User avatar
reallydontknowwhatimdoing
 
Posts: 8
Joined: Fri Jun 18, 2021 1:59 pm

Re: Difficulty with MagTag and Google Calendar

Post by reallydontknowwhatimdoing »

I did... and I ran the code that tests the connection to adafruit.io for the local time, and that works fine.

User avatar
MakerMelissa
 
Posts: 375
Joined: Wed Jun 05, 2013 2:10 am

Re: Difficulty with MagTag and Google Calendar

Post by MakerMelissa »

I was able to reproduce the issue as well. This only happens in CircuitPython 7.0.0 and not 6.3.0 and it seems to only have issues with subsequent calls after the first, which is why the simple tests passed. I have opened an issue here: https://github.com/adafruit/Adafruit_Ci ... /issues/83

User avatar
reallydontknowwhatimdoing
 
Posts: 8
Joined: Fri Jun 18, 2021 1:59 pm

Re: Difficulty with MagTag and Google Calendar

Post by reallydontknowwhatimdoing »

thank you - I went back to 6.3.0 and that solved the problem for me.

User avatar
retiredwizard
 
Posts: 49
Joined: Wed Sep 28, 2016 9:06 pm

Re: Difficulty with MagTag and Google Calendar

Post by retiredwizard »

Well I guess I should check the forums before spending 5 hours on a problem :)

I was having this exact problem, I guess I'll go back down to 6.3. Thanks :D

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”