Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Internet clock 1st project....HELP
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Internet clock 1st project....HELP

by adafruit_support_carter on Tue Nov 23, 2021 2:23 pm

Weird. Also not sure what was happening. But at least it seems to be working now. You may run into other issues as you proceed. When this happens, the "traceback" that gets printed is your friend. Although it can be a bit of a wall of text when first encountering it:
Code: Select all | TOGGLE FULL SIZE
Traceback (most recent call last):
File "code.py", line 49, in <module>
File "adafruit_display_text/label.py", line 86, in __init__
File "adafruit_display_text/__init__.py", line 240, in __init__
File "adafruit_display_text/__init__.py", line 261, in _get_ascent_descent
File "adafruit_bitmap_font/bdf.py", line 75, in ascent
OSError: [Errno 22] Invalid argument


For the above example, line 49 in your code.py would be the first place to look. The actual error is on line 75 in adafruit_bitmap_font/bdf.py, but it could be that something was done wrong in code.py to cause this.

adafruit_support_carter
 
Posts: 21916
Joined: Tue Nov 29, 2016 2:45 pm

Re: Internet clock 1st project....HELP

by Ju5tAN00b2000 on Wed Nov 24, 2021 12:10 pm

Onto date and weather.
Can the date be pulled with the time or does your server just give the time? I think it has to be coded in as a seperate entity like weather?
Where can I pull the weather from? In the form of current weather icon and outside temperature?
Any guides or pointers on how to code them in?

Ju5tAN00b2000
 
Posts: 12
Joined: Wed Nov 17, 2021 3:09 pm

Re: Internet clock 1st project....HELP

by adafruit_support_carter on Wed Nov 24, 2021 12:13 pm

There's a weather project here that might be a useful reference:
https://learn.adafruit.com/weather-display-matrix

adafruit_support_carter
 
Posts: 21916
Joined: Tue Nov 29, 2016 2:45 pm

Re: Internet clock 1st project....HELP

by Ju5tAN00b2000 on Wed Nov 24, 2021 8:47 pm

Ive figured out where ive been having trouble.
I decided to try out the moon clock. Downloaded the project files. No "lib"s included so I used the library bundle on this page:

https://learn.adafruit.com/adafruit-mat ... thon-setup
goes to
https://circuitpython.org/libraries

It did NOT work.

The matrix clock files have "lib"s included. I used them instead and it worked. These clocks do not work off the latest "libs" bundles.
I tried version 6 and 7.

Ju5tAN00b2000
 
Posts: 12
Joined: Wed Nov 17, 2021 3:09 pm

Please be positive and constructive with your questions and comments.