express.sh: Express numbers visually using GPIO!

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Author Message
HexMaster
DD-WRT Novice


Joined: 07 Aug 2008
Posts: 28

PostPosted: Tue Nov 18, 2008 20:26    Post subject: express.sh: Express numbers visually using GPIO! Reply with quote
express.sh allows you to "express" numbers (and periods ".") on your router via blinking LED, using gpio.

The designated LED will light for 2 seconds to denote the beginning of an "expression". Then, it will "express" your number. Finally, it will light for 2 seconds to denote the end.

Periods are expressed via a 1 second long light.
0 is expressed as 10 blinks.

Example:
/jffs/express.sh 7 1.30

This will use the WRT54G's DMZ light (gpio 7) to express "1.30". It will light the DMZ light for 2 seconds, blink once, pause, stay on for 1 second, pause, blink three times, pause, then blink 10 times.

Useful for expressing any number:
Router WAN IP (example .sesbutton script included!)
Router LAN IP
Client mode signal strength
Number of associated wireless clients
Number of logged-in users
etc..
Sponsor
cyberde
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1488
Location: the Netherlands

PostPosted: Wed Nov 19, 2008 10:20    Post subject: Reply with quote
You do have to take in consideration that when you have a MMC mod, messing with the DMZ-light and the SES-light might cause data corruption on your mmc-card!
_________________
Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N

Donater
HexMaster
DD-WRT Novice


Joined: 07 Aug 2008
Posts: 28

PostPosted: Wed Nov 19, 2008 15:45    Post subject: Reply with quote
^^ Yes, thanks for the important reminder note Exclamation

Be very careful and use an unused gpio if you have this mod.

See the GPIO Info sections here:
http://www.dd-wrt.com/wiki/index.php/Useful_Scripts
HexMaster
DD-WRT Novice


Joined: 07 Aug 2008
Posts: 28

PostPosted: Wed Nov 19, 2008 15:47    Post subject: Reply with quote
p.s congrats on your 1337th post Laughing
cyberde
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1488
Location: the Netherlands

PostPosted: Wed Nov 19, 2008 16:41    Post subject: Reply with quote
Hey would you look at that Smile
_________________
Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N

Donater
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum