Ledstatus addon - System load with leds [INACTIVE]

Here we discuss compilation and how to build an addon for BFW.

Ledstatus addon - System load with leds

Mensagempor pump » Ter Jan 16, 2007 3:33 pm

What is Ledstatus?
Ledstatus is a small program that reads the CPU load by reading the /proc file system and then sends the data to 8 leds connected to the parallel port.

It uses 7 leds to show the CPU load and 1 acts like a "heart beat" so you can know it's running.

What do I need to make the circuit with the leds? Is that difficult or expensive to do?
No, it isn't difficult. You only need a paralell port male connector, 8 leds, 8 470ohm resistances and something to put the circuit on (like one universal card).
The data pins of the parallel port (D0 - D7) are conected to the resistances which are connected to the leds, like this:

Código: Selecionar todos
                                pin 20 (ground)
                                  |
               470ohm     LED     |
pin 2 (D0) ----/\/\/------|> |-----+
                                  |
pin 3 (D1) ----/\/\/------|> |-----+
                                  |
pin 4 (D2) ----/\/\/------|> |-----+

            [...]
                                  |
pin 9 (D7) ----/\/\/------|> |-----+


This is an image of the female paralell port with all the pins numbered. Remember you only need all the "D" ones and one from the green ones for the leds ground.
Imagem

Here is everything done (this image is not mine, I found it in google and as you can see it has more leds, but for this circuit we can't do that, it's just descriptive)
Imagem


I made the circuit, now what?
You can download and install this addon to make it work from here:
http://www.brazilfw.com.br/users/pump/ledstatus/ledstatus.tgz
(9.6 kb)


It is my first add-on, I hope you like it. Any question or doubt you have just ask. ;-)

PS: I don't know if this topic is posted in the right section, if it isn't please move it.
Editado pela última vez por pump em Seg Abr 23, 2007 8:54 pm, em um total de 3 vezes.
pump
 

Mensagempor Juanillo » Ter Jan 16, 2007 3:37 pm

:aplause: :aplause: :aplause: :aplause: :aplause:

Great job !!!
Keep on working !!!!

Juan
Juanillo
 

Mensagempor pump » Ter Jan 16, 2007 4:20 pm

Thank you.
Now I'll try to add options to the webinterface to start it or stop it. I think it would be useful.
pump
 

Mensagempor Esteban » Ter Jan 16, 2007 7:57 pm

Moving to Add-on factory...
Avatar do usuário
Esteban
BFW Beneméritos
 
Mensagens: 964
Registrado em: Ter Ago 30, 2005 7:24 pm
Localização: Weekdays @ 38.00ºS 57.55ºW & 38.11ºS 57.85ºW || Weekends @ 38.00ºS 57.55ºW & 38.55ºS 58.75ºW
BrazilFW Box:

Mensagempor Marcelo - Brazil » Qua Jan 17, 2007 10:30 pm

Very nice..i am in.
This week my prototype will be "lightining"!

pump, i am following your progress.
BFW não é meu hobby, é meu router !
Não dou suporte.

"Nem sim, nem não, mas muito pelo contrário, não sou contra nem à favor,
porque em matéria de certas coisas o mais importante é o principalmente,
aliás inclusive, não resta a menor dúvida".
De algum politico brasileiro...
Avatar do usuário
Marcelo - Brazil
BFW Founder
BFW Manager
BFW Beneméritos
 
Mensagens: 3187
Registrado em: Qua Ago 24, 2005 10:40 pm
Localização: Campinas - São Paulo
BrazilFW Box: Hp Proliant ML30 Gen 9, Intel® Xeon® E3-1200 v5 3,0 Ghz, 8 Gb ram DDR4, 1 Tb HD, Links 120x12 mb/s cabo + 100x100 mb/s fibra. Addon: Unifi, 50 clientes lan + 50 cliente wireless.

Mensagempor pump » Qua Jan 17, 2007 10:42 pm

Great!
Any doubt just ask, anyway I don't think you'll have much problem, it's easy. :D

Tonight I'm going to see if I can add a webinterface config and make scripts either for starting or stopping the program.
pump
 

Mensagempor nachazo » Qui Jan 18, 2007 3:45 pm

great job pump!!! :D

regards.
nachazo
 

Mensagempor pump » Qui Jan 18, 2007 3:48 pm

Thanks :)

I found a mistake in the list, if you have already downloaded it please do it again.
Sorry.
pump
 

Mensagempor gamba47 » Ter Fev 06, 2007 2:58 pm

Good Work Pump!

gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Mensagempor dreamcat » Sex Abr 06, 2007 4:34 am

I like it, and Macelo's LCD
dreamcat
 

Mensagempor beisudo » Sex Set 28, 2007 6:57 pm

could they tell me that it indicates each led? Thanks!!
beisudo
 

Mensagempor gamba47 » Sex Set 28, 2007 7:16 pm

beisudo escreveu:could they tell me that it indicates each led? Thanks!!


It uses 7 leds to show the CPU load and 1 acts like a "heart beat" so you can know it's running.
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Mensagempor pump » Dom Out 28, 2007 5:20 pm

gamba47 escreveu:
beisudo escreveu:could they tell me that it indicates each led? Thanks!!


It uses 7 leds to show the CPU load and 1 acts like a "heart beat" so you can know it's running.

Exactly, it's like a vumeter.  :)
pump
 

Mensagempor eduardor » Sáb Nov 17, 2007 12:35 am

"heart beat"?

Then must be used to make a hardware WachDog?
When heart beat stop will be reset, activate an alarm, dial a number or play a syntetyzed voice over a big speakers, "Server under fail !!!" .  8-)
eduardor
 


Voltar para Add-On Factory

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 6 visitantes

cron