marquee-scroller icon indicating copy to clipboard operation
marquee-scroller copied to clipboard

Some changes I made in the code

Open hutje opened this issue 6 years ago • 22 comments

All changes I made are hardcoded for me.

  • I have made a change in the newsapi. This allows me to add country instead of sources, so I can see the news of my country.
  • I have made a change in the sync weather function. Now I am able to still see the time while updating. Maybe I will add a dot in every corner while syncing to see how far the syncing process is.
  • I have added lang=%language% inside the string of the openweathermap api to allow me to get the description in my own language. (See: https://openweathermap.org/current at Multilingual support)
  • Also changed the Humidity and Windspeed to my own language.

Thanks for this awesome arduino program!

hutje avatar Aug 09 '18 20:08 hutje

Do you want to contribute the suggested changes via a Pull Request?

Qrome avatar Aug 10 '18 18:08 Qrome

Hey Qrome,

Would it be possible to attach the fusion360 file with the Thingiverse design? I really would like to edit this model to make it usable for 6 displays and also want to build a 4cm speaker+mp3 module inside to make it act as an alarm clock.

Thanks!

hutje avatar Aug 16 '18 23:08 hutje

I designed it in TinkerCad and it is only available as an STL from there. Sorry.

Qrome avatar Sep 04 '18 13:09 Qrome

here is what I did for myself ledmatrix v7.zip

untitled 1

drogica avatar Sep 07 '18 21:09 drogica

is it technically possible to get German or polish letters on led screen?

pl4y3r2nd avatar Dec 02 '18 14:12 pl4y3r2nd

@drogica -- nice looking box!

Qrome avatar Dec 02 '18 22:12 Qrome

@pl4y3r2nd -- It was frustrating to learn that the fonts used in the marquee scroller does not have a full international character set. If someone wants to try and implement those, that would be great. As for now, the full international letter set is not supported.

Qrome avatar Dec 02 '18 22:12 Qrome

@Qrome: Can you give an advice where the font for the matrix is defined?

Thank you for the clock. Great project. I´ve build one. And now I´m also thinking about improvements. Support for different languages would be great. I would support you as good as I can.

MachmaHinne avatar Dec 21 '18 00:12 MachmaHinne

@MachmaHinne thanks! The project uses the Max72xxPanel and that in turn uses the Adafruit_GFX library -- the fonts belong to the Adafruit_GFX. I have not spent much time looking at it, however I have generated my own fonts for another project but not for the LED matrix. https://github.com/markruys/arduino-Max72xxPanel

Qrome avatar Dec 21 '18 01:12 Qrome

Ok. I think there is hope for a solution for this problem. The Adafruit GFX lib contains only 7-bit fonts. But I found a tool that can generate also 8-bit fonts. I´ll stick on this. https://blog.squix.org/2016/10/font-creator-now-creates-adafruit-gfx-fonts.html

At the moment I have a problem with a bunch of 8x64 Modules I ordered at banggood.com, because the order of the 4 panels is reversed. #1 is on the right, #4 is on the left. Does anyone have heard about that problem? Any hints?

MachmaHinne avatar Dec 21 '18 14:12 MachmaHinne

After reading arduino-Max72xxPanel-master, I´m not so confident any more, because this lib has to be changed for that. And the development of it seems to be dead.

For the problem with my modules I had to change matrix.setRotation(i, 3); to matrix.setRotation(i, 1); But now I have to rotate the whole module and change the pins from one side to the other :(

MachmaHinne avatar Dec 21 '18 18:12 MachmaHinne

I did a PR (change request) a while back to the arduino-Max72xxPanel-master -- if needed we could always create a branch of it to modify and include it as part of the marquee code.

As for the LED modules you have, I know there are some out there assembled differently than the ones I linked to. Someone else had the same issue, the where able to do it through rotation only.

Qrome avatar Dec 21 '18 19:12 Qrome

what should i change in the code so i can view news for my country (Greece) ?

costascontis avatar Jan 28 '19 10:01 costascontis

@costascontis -- the quick and easy way would be to edit line 45 of theNewsApiClient.cpp file where it defines the URL that requests the news.

You can find samples here on how you might change it: https://newsapi.org/docs/endpoints/top-headlines

Qrome avatar Jan 28 '19 14:01 Qrome

you mean the line String apiGetData = "http://" + String(servername) + "/v2/top-headlines?sources=" + mySource + "&apiKey=" + myApiKey; i dont understand well my country source is https://newsapi.org/v2/top-headlines?country=gr&apiKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx how can i edit line 45 to be?

edit :i got it and Greek news are displaying fine at marquee's web page but are showning gibberish at marquee it self.It cannot display greek fonts right :(

costascontis avatar Jan 28 '19 14:01 costascontis

How can i get this changes? It would be perfect for me. I live in Brazil and i would like to translate the Weather infos to Portuguese and use a brazillian news source too.

phgsbr avatar Mar 04 '19 17:03 phgsbr

How can i get this changes? It would be perfect for me. I live in Brazil and i would like to translate the Weather infos to Portuguese and use a brazillian news source too.

Anyone please?

phgsbr avatar Mar 10 '19 20:03 phgsbr

The weather text comes from the weather service and would not be translated in the code here. There are only a few words that are in the code -- you can find them and change them as needed.

The fonts supported by the marque do not include special characters as mentioned above.

Qrome avatar Mar 10 '19 20:03 Qrome

I tried to change the news source to globo or googlenews-br (two news source from Brazil) in the code. But, after upload, the news source stills on BBC (currently before the change). How can i fix this?

phgsbr avatar Mar 17 '19 20:03 phgsbr

You need to add it to the options in the ino file. Also once it is loaded you have to use the web interface to change settings.

Qrome avatar Mar 17 '19 21:03 Qrome

@costascontis How did you get this to work?

sjef1979 avatar May 07 '19 19:05 sjef1979

Can the stuff from this issue get added to the project? @Qrome @hutje

finnie2006 avatar Dec 10 '21 11:12 finnie2006