Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Parameterize matrix dimension #159

Open
a-sp opened this issue May 1, 2020 · 8 comments
Open

[Feature request] Parameterize matrix dimension #159

a-sp opened this issue May 1, 2020 · 8 comments

Comments

@a-sp
Copy link

a-sp commented May 1, 2020

Hello @bk1285 thank you very much for sharing your project! I really like it!

I have a little request... Would it be possible to parameterize the matrix dimension?

Using Patrick's WorldClockGenerator seems like that for Italian a 12x12 matrix is needed (the current layout is ok and totally understandable, but it is not how we tell time in Italy... we use looong words :D ).

Thanks :)

@cmaxl
Copy link
Contributor

cmaxl commented May 2, 2020

Hello @a-sp,
it is a pleasure to see the wordclock language support growing by users interested in adding new ones!
Please have a look at this where Bernd described how you are able to add your own languge. (if you aren't already familiar with the procedure). He also mentioned a link to a helpful website from the creators of the original clock. It seems like they are able to use the original 11x10 matrix to display a readable italian time... look at this ;)
I don't know if this able to fullfills your needs.

[EDIT]: Seconds later I discovered the pull request #142 from @pueppixxxx. Maybe this will help you?

@a-sp
Copy link
Author

a-sp commented May 2, 2020

Hi @plotaBot, thanks a lot for your suggestions!

I already saw the original Qlocktwo Italian layout (and I made the time_italian.py myself before seeing @pueppixxxx pull request -.-' ).
This layout is ok and readable, but it is not exactly how we tell time in Italian.

Main issues:

  • Italian "o' clock" is missing;
  • for 03:35, we don't say "25 to 4", we say "35 past 3", but with the current layout there is not enough space to write "35" in letters, 12 characters are needed ;
  • we use special words for 12:00 PM/AM (nice to have).

My fear is that making the matrix dimension configurable can be a pain in the ass for additional plugins... the dirty solution might be to make matrix dimension configurable only for the time function, while all the other plugin would scale down to the original 11x10 size.

@Joeri-MS
Copy link

Hope this helps.

There are 2 small changes in pi_wordclock/wordclock_plugins/matrix/plugin.py:
Line 38:
rain = [20 for _ in range(0, wcd.get_wca_width() + 1)]

Line 51:
y1 = min(wcd.get_wca_height() + 1, y);

Also in the file from the time_matrix/plgin.py

@bk1285
Copy link
Owner

bk1285 commented Dec 19, 2020

Hi @a-sp

I was quite busy in 2020. ... hope that changes in 2021.

Were you able to resolve your issue -- e.g. considering @Joeri-MS comment? The software should be ready to handle varying matrix resolutions.

... this was however (to my knowledge) never tested. Therefore you might run into issues, when trying the first time. Feel free to report back here.

Best,
Bernd

@a-sp
Copy link
Author

a-sp commented Dec 20, 2020

Dear @Joeri-MS and @bk1285 thank you very much for getting back to me! It's really nice to receive a reply even after some time ☺

Unfortunately, I've had to put the project on hold due to lack of free time, but I still would like to complete it... let's hope that 2021 will give us the opportunity to have more time to spend on projects we love!

I'll keep you updated 😎

@Joeri-MS
Copy link

Joeri-MS commented Jan 23, 2021

The last problem i have is that the collor of the is not the same.
This only happens when the time or text (I think the function setColorBy2DCoordinates() is it) is show.
Images (Sunrise....) are fine, so i don't thin it is my hardware setup...

The word FÜNF is like warm white, the other more yellow:
Wordclock-1
Wordclock-2

Perhaps i will find it some day. (Okay, i think it is the grounding....)

@phenze
Copy link
Contributor

phenze commented Jan 25, 2021

Always check the following when such errors occur:

  • Do you have common grounding ?
  • Do you use a level shifter ? I think this is neccessary with that much LED's
  • Try to connect +/- at multiple points at the strip!
  • What power supply are you using? With your 18x16 Matrix you need 0,06A * (16*18 LED) = 17,28A
  • The LED's need the most power when they are white. So when your clock is running fine when it is blue for example your problem is most likely the power supply

@Joeri-MS
Copy link

It seems to bee the grounding, now it looks good, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants