Use LEDs to show signal strength with rssileds

The rssileds package allows you to control LEDs on a router or access point depending on the signal strength of a WiFi interface.

For instance, many wireless repeaters and range extenders have a signal strength meter on them for the received signal.

opkg update
opkg install rssileds

The rssileds configuration is stored in the “system” UCI section. At least two sections are needed.

Name Type Required Default Description
refresh integer yes (none) Refresh rate in microseconds
threshold integer yes (none) The minimun required change in the quality to trigger a LED refresh action
dev string yes (none) Specifies the used wireless adapter, must refer to one of the defined wifi-device sections
:!: The node name is used to link each LED rule to the rssi block configuration

Options available for the “rssi trigger”, for more details on other parameters refer to LED section in System configuration.

Name Type Required Default Description
iface string yes (none) Specifies the rssi block, must refer to the name defined in the “rssid” block sections
minq integer yes (none) The minimum quality percentage for the LED to turn on
maxq integer yes (none) The maximum quality percentage for the LED to turn on
offset integer no 0 Used for PWM LED, the led brightness is equal to the quality with the specified offset
factor integer no 1 Used for PWM LED, after the offset is applied, the brightness is scaled by the specified factor
:?: With PWM capable LEDs the brightness is calculated as: brightness = ( quality + offset ) * factor
:!: Any quality values outside the specified range will mean the LED is off
config rssid 'wlan0'         
        option refresh 40000          
        option threshold 1   
        option dev 'wlan0'
 
config led 'rssilow'                        
        option trigger 'rssi'               
        option name 'RSSILOW'               
        option iface 'wlan0'                
        option sysfs 'mt2681:green:rssilow'
        option minq '1'                    
        option maxq '100'    
        option offset '0'                  
        option factor '6'    
 
config led 'rssimedium'     
        option trigger 'rssi'              
        option name 'RSSIMEDIUM'
        option iface 'wlan0'    
        option sysfs 'mt2681:green:rssimed'
        option minq '30'                   
        option maxq '100'    
        option offset '-29'                
        option factor '5'    
 
config led 'rssihigh'       
        option trigger 'rssi'              
        option name 'RSSIHIGH'
        option iface 'wlan0'  
        option sysfs 'mt2681:green:rssihigh'
        option minq '70'                    
        option maxq '100'    
        option offset '-69'                 
        option factor '8'    
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2021/08/30 11:22
  • by feckert