Internet clock 1st project....HELP

Clock kits

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_carter
 
Posts: 24330
Joined: Tue Nov 29, 2016 2:45 pm

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

Post by adafruit_support_carter »

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

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.

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

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

Post by Ju5tAN00b2000 »

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?

User avatar
adafruit_support_carter
 
Posts: 24330
Joined: Tue Nov 29, 2016 2:45 pm

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

Post by adafruit_support_carter »

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

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

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

Post by Ju5tAN00b2000 »

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.

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

Return to “Clocks”