Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

More than 500 LEDs possible?

14 Posts
3 Users
0 Reactions
554 Views
(@marty)
Member
Joined: 5 years ago
Posts: 0
Topic starter  

Hello,

 

I am planning a big map, is it possible to have more than 500 LEDs. With the latest RP4 4GB or 8GB ram?

 

Thanks!


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

I can certainly increase that value. But I don't know what the physical limit would be. 500 was an arbitrary value. So let me know what number you would like and I'll change it for you. - Mark


   
ReplyQuote
(@marty)
Member
Joined: 5 years ago
Posts: 0
Topic starter  

I think 800 would be a good value, I can change it if you tell me in which file I can find it?


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Sounds good.

cd /NeoSectional
cd /templates
sudo nano -c confedit.html

Scroll down to around line 61 and find this segment of code;

<tr>
<td><b>LED Count = </b>
<td><input type="number" name="LED_COUNT" onchange="checkBlankF(this)" min="0" max="500" value = {{ settings.LED_COUNT }}>
<td>Enter the total number of LEDs in the string to build the map. This is not the number of airports to display. (Allowable range = 0 to 500)
</tr>

Find the 2 locations with '500' and change it to '800'. Then save the file;

ctrl-x
y

That should do it. Let me know how it goes. - Mark

 


   
ReplyQuote
(@marty)
Member
Joined: 5 years ago
Posts: 0
Topic starter  

thanks! I will let you know when I am done 🙂


   
ReplyQuote
(@iceman21)
Active Member
Joined: 3 years ago
Posts: 5
 

Could anyone point me in the direction of being able to change the code from 500 to 600 leds?


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

The info to do this is above in this thread. If you need more specific info, let me know and I'll try to help. - Mark


   
ReplyQuote
(@iceman21)
Active Member
Joined: 3 years ago
Posts: 5
 

@markyharris thank you Mark. I can’t seem to find the same files in the .img that is preconfigured. So I downloaded all the files from GitHub and change the text via text editor, saved, zipped the file and loaded it to the SD card for the Pi. I am using MacOS. 

I now cannot get the pi to run the software as a it would with the preconfigured .img. 

Am I not doing something right? I am a novice at coding

thank you


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 
  1. The only real way is to get the RPi up and running and using the cmd line to edit the html file directly on the RPi. If this isn't something you are comfortable with, I can update the image so that you can download it from the website, bit that will take a bit of time. 

So get the software up and running on the RPi, then let me know and I can walk you through the changes necessary. - Mark 


   
ReplyQuote
(@iceman21)
Active Member
Joined: 3 years ago
Posts: 5
 

@markyharris I have setup the RPi and access it through the terminal and change the command as you listed above for the amount of LEDs. My only question is when I log onto the IP address to setup the Map settings the number of LEDs has not changed from 500 to 600. Is this still a problem or will it still work as long as I changed the command? Thank you for you help


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

If everything worked out with the edits, then your config editor should look like the picture attached. I changed mine to show a max of 800 LED's using the steps above. So check yours and see if its similar. - Mark

image

   
ReplyQuote
(@iceman21)
Active Member
Joined: 3 years ago
Posts: 5
 

@markyharris okay I’ve adjusted the numbers in the command and still having same issue when the IP address is types in under basic settings. 
 
Am I missing something?


   
ReplyQuote
(@iceman21)
Active Member
Joined: 3 years ago
Posts: 5
 
F6F8AAED 782D 43A6 95BC 039454A37BA4
7D025547 F165 47D1 9C4A E815AFB2F4B8

   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

It looks like your edits are correct. So maybe your browser is running a cached version. Hit ctrl-F5 to reload from the RPi. I'll bet is will show up properly at that point. - Mark


   
ReplyQuote
Share: