Jump to content

Hello everyone,

 

I have put together program that grabs data from a website and stores is in a single line array. It then prints this on the led matrix that I have. I was wondering if there was anyone out there that could help me convert it to just a line of text?

 

Any help is greatly appreciated!

 

Ultimately, I would love to break it up into a matrix that I can display and have the home team on top and the away on the bottom, but I can not even do this yet, so that's far away.

Link to comment
https://linustechtips.com/topic/1383427-scrolling-ticker-rpi-python/
Share on other sites

Link to post
Share on other sites

I think the programming section may be a better fit for this.

 

Never the less, do you have a copy of your current code, the hardware you're running, and what your end goal is? There's not a whole lot of information to go on here. If you need to simply convert an array to a string in python you can do so like the following:

array = ['some','array','things']

listToStr = ' '.join([str(elem) for elem in array])

 

Link to post
Share on other sites

11 minutes ago, Eww said:

I think the programming section may be a better fit for this.

 

Never the less, do you have a copy of your current code, the hardware you're running, and what your end goal is? There's not a whole lot of information to go on here. If you need to simply convert an array to a string in python you can do so like the following:


array = ['some','array','things']

listToStr = ' '.join([str(elem) for elem in array])

 

Thank you very much. I will look over there then to continue my search.

Link to post
Share on other sites

<-- Moved to Programming -->

Community Standards

Please make sure to Quote me or @ me to see your reply!

Just because I am a Moderator does not mean I am always right. Please fact check me and verify my answer. 

 

"Beast Mode"

Ryzen 7 9800x3d | Arctic Liquid Freeze 3 Pro 360 | MSI X870 Tomahawk Wi-Fi | MSI RTX 5080 Gaming Trio OC | Gskill Flare X5 6000MT/s CL30

1tb WD Black SN850x NVMe | 4tb WD SN850x NVMe | Antec Flux Pro | Be Quiet Pure Power 13 M 1000w | OWC 10gb NIC

 

Dedicated Streaming Rig

 Ryzen 7 3700x | Asus B450-F Strix | 32gb Gskill Flare X 3200mhz | Corsair RM550x PSU | MSI Ventus 3060 12gb | 250gb 860 Evo m.2

Phanteks P300A |  Elgato HD60 Pro | Avermedia Live Gamer Duo | Avermedia 4k GC573 Capture Card

 

Link to post
Share on other sites

  • 2 weeks later...
On 10/23/2021 at 9:41 PM, rue61 said:

Hello everyone,

 

I have put together program that grabs data from a website and stores is in a single line array. It then prints this on the led matrix that I have. I was wondering if there was anyone out there that could help me convert it to just a line of text?

 

Any help is greatly appreciated!

 

Ultimately, I would love to break it up into a matrix that I can display and have the home team on top and the away on the bottom, but I can not even do this yet, so that's far away.

I know I'm late but I think you could capture x number characters using something like print(variable[start:end]) and then increment start and end to give a scrolling effect.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×