Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:dashboard [2023/11/02 08:48] – [Check your installation] klueppelapp-notes:dashboard [2025/08/21 10:43] (current) – [Adding the SDK script] klueppel
Line 69: Line 69:
         case "down":       return '<font color="red">down</font>';         case "down":       return '<font color="red">down</font>';
     }     }
- 
     return value;     return value;
 } }
Line 163: Line 162:
                                     );                                     );
  
 +                wlan_array = mkarray(sprintf("%s_STATE", wan_idx), 
 +                                    sprintf("%s_TYPE", wan_idx), 
 +                                    sprintf("%s_NETWORK", wan_idx),
 +                                    sprintf("%s_SIGNAL_LEVEL", wan_idx), 
 +                                    sprintf("%s_SIGNAL_QUALITY", wan_idx) 
 +                                    );
  
                 type = struct_get(wan, sprintf("WANLINK%d_TYPE", i));                 type = struct_get(wan, sprintf("WANLINK%d_TYPE", i));
Line 169: Line 174:
                             break;                             break;
                     case "wwan": tmp_array = wan_array;                     case "wwan": tmp_array = wan_array;
 +                            break;
 +                    case "wlan": tmp_array = wlan_array;
                             break;                             break;
                 }                 }
Line 205: Line 212:
 nb_page_unregister(page); nb_page_unregister(page);
 exit(0); exit(0);
- 
  
 </code> </code>
Line 240: Line 246:
  
 ==== Switch to another wanlink ==== ==== Switch to another wanlink ====
-Your current hotlink is displayed at the top. Also, each enabled wanlink will be listet on the new status page.+Your current hotlink is displayed at the top. Also, each enabled wanlink will be listed on the new status page.
 All links, except for the current hotlink, have a button "Use as hotlink". This can be used to change the current hotlink. All links, except for the current hotlink, have a button "Use as hotlink". This can be used to change the current hotlink.
 This may take some time, sometimes the hotlink will be shown as "n/a". Reload the page and the new hotlink will be displayed. This may take some time, sometimes the hotlink will be shown as "n/a". Reload the page and the new hotlink will be displayed.