Community discussions

MUM Europe 2020
 
vgdorneles
just joined
Topic Author
Posts: 12
Joined: Mon Mar 12, 2018 4:27 pm

WebFig Status page issue

Wed Apr 25, 2018 10:58 pm

I'm having a problem using WebFig on different HapMinis. I created a webfig skin that has the status page, and I can not use the same skin for different HapMini because the "find" result of the interface is different.

For example:
[admin@hAP mini 1] > :put [interface ethernet find]
*2;*3;*4
[admin@hAP mini 1] > :put [interface pppoe-client find]
*6
[admin@hAP mini 2] > :put [interface ethernet find]
*1;*2;*3
[admin@hAP mini 2] > :put [interface pppoe-client find]
*7

JSON code:
Status: {
    Status: {
        '0': { alias: 'PPP:PPPoE Client:*6:Traffic:Byte Graph', name: 'Gráfico de Consumo' },
        '1': { alias: 'PPP:PPPoE Client:*6:Status:Uptime', name: 'Tempo de Conexão', order: 2 },
        '2': { alias: 'PPP:PPPoE Client:*6:running', order: 1, name: 'Link Internet' },
        '3': { alias: 'Interfaces:Ethernet:*2:running', order: 0, name: 'Link ONU', tab: 'Internet' },
        '4': { alias: 'PPP:PPPoE Client:*6:Traffic:Tx/Rx Bytes', order: 3, name: 'Consumo total (Up/Down)' },
        '5': { alias: 'System:Resources:Resources:Uptime', name: 'Uptime', order: 6 },
        '6': { alias: 'System:Resources:Resources:Free Memory', name: 'Memória Livre', order: 8 },
        '7': { alias: 'System:Resources:Resources:CPU Load', name: 'Carga de CPU' },
        '8': { alias: 'System:Resources:Resources:Board Name', name: 'Modelo', tab: 'Informações do Equipamento', order: 5 },
        rows: 5
    }
}

In that .json, it would work perfectly on the Hap Mini 1, but it would not work (or would work wrong) on the Hap Mini 2.

I can not do this by script, because the .json content has 16kb (more than the 4kb allowed).

In that .json, it would work perfectly on the Hap Mini 1, but it would not work (or would work wrong) on the Hap Mini 2.

Who is online

Users browsing this forum: Issarin and 68 guests