Freeboard auf Alpine Container

1. Container auf NB2800 erstellen

Navigate to System → Virtualisation and activate the administrative status.
The latest version of the software is recommended. At the subitem Install enter the following URL:
Choose Install on “Apply”. In the Networking subitem, Mode must be set to Bridged and LAN1 must be entered as the Bridge Interface.
If an error message appears (Download/install of image failed) install the image again. The router had to create the directory structure first.

A static host must also be created on the GUI under Service→DHCP. The IP is in the same network as the LAN port used, but has a different host part. and under Web Server CLI.PHP must be enabled.

2. Konfiguration

Now the configuration of the container must be adapted to the configuration of the router. For this purpose, the IP addresses of the following files must be adapted:

1. dashboard.json	// unter /var/www/html
2. lighttpd.conf	// unter /etc/lighttpd/lighttpd.conf

In dashboard.json all IP addresses are set to those of the static host. In addition, the username and password must be changed. Example line:\t“.
In the lighttpd.conf the ip must be adjusted to that of the proxy server.

 proxy.server = ( "cli.php" =>
                     ( ( 
                         "host" => "",
                         "port" => 80
                       ) )

3. SDK-Skript anpassen und erstellen

Skript für WAN-Link Anzeige:

       case "WANLINK1": nb_config_set("custom.var1=LANIuK"); break;
       case "WANLINK2": nb_config_set("custom.var1=LANSAT"); break;
       case "WANLINK3": nb_config_set("custom.var1=WLAN"); break;
       case "WANLINK4": nb_config_set("custom.var1=T-Mobile"); break;
       case "WANLINK5": nb_config_set("custom.var1=Vodafone"); break;
       default: printf("kein link ist Hotlink"); break;

Skript für WAN wechsel:

  while (1){
wanlink = nb_config_get("custom.var1");
hotlink = struct_get(nb_status("wan"), "WAN_HOTLINK");
       case "hotlink": continue; break;
       case "": continue; break;
       case "WANLINK1": nb_wanlink_deactivate("WANLINK1");
       case "WANLINK2":  nb_wanlink_deactivate("WANLINK2");
       default: printf("no Hotlink"); break;

Enable the administrative status and use sdk-startup as trigger.

4. URL

5. Arbeiten mit dem Freeboard

Go to . With the Freeboard it is easy to create a graphical overview of the following status values of the router. You can see the freeboard start page without entries. Here, a data source must first be selected. This is done with the following command. The x must be replaced with a status value from the table above. In this example it is the value “wlan”. The following steps have to be taken:
1. 2. 3.
Enter the above link in the URL field. Change “x” to WLAN. 4. 5. 6. 7. 8. Now the freeboard can be saved and loaded onto the container.