This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
app-notes:dashboard [2023/10/31 15:04] – [Adding the SDK script] klueppel | app-notes:dashboard [2023/11/02 08:48] (current) – [Check your installation] klueppel | ||
---|---|---|---|
Line 7: | Line 7: | ||
{{ : | {{ : | ||
- | |||
===== Prerequierments ===== | ===== Prerequierments ===== | ||
Line 34: | Line 33: | ||
In the script tab copy and paste the sdk script. | In the script tab copy and paste the sdk script. | ||
- | < | + | {{ : |
+ | |||
+ | < | ||
ID = 1; | ID = 1; | ||
hotlink = ""; | hotlink = ""; | ||
Line 91: | Line 92: | ||
| | ||
| | ||
- | + | nb_page_respond(page, | |
- | | + | |
- | nb_page_respond(page, | + | |
- | | + | |
- | } else { | + | |
- | nb_page_respond(page, | + | |
- | } | + | |
- | + | ||
- | | + | |
} | } | ||
Line 111: | Line 104: | ||
/* register page */ | /* register page */ | ||
- | page = nb_page_register(ID, "Interfaces", "Overview"); | + | page = nb_userpage_register(ID, "Wanlink", "Switch"); |
if (is_void(page)) { | if (is_void(page)) { | ||
| | ||
Line 126: | Line 119: | ||
/* evaluate GET params */ | /* evaluate GET params */ | ||
GET = struct_get(request, | GET = struct_get(request, | ||
- | | ||
- | | ||
} | } | ||
for (k = 0; k < length(GET); | for (k = 0; k < length(GET); | ||
Line 141: | Line 132: | ||
} | } | ||
if (hotlink != "" | if (hotlink != "" | ||
- | printf(" | ||
nb_wanlink_priorize(hotlink, | nb_wanlink_priorize(hotlink, | ||
sleep(5); | sleep(5); | ||
Line 187: | Line 177: | ||
nb_page_respond(page, | nb_page_respond(page, | ||
nb_page_respond(page, | nb_page_respond(page, | ||
- | nb_page_respond(page, | + | nb_page_respond(page, |
| | ||
nb_page_respond(page, | nb_page_respond(page, | ||
Line 194: | Line 184: | ||
nb_page_respond(page, | nb_page_respond(page, | ||
- | nb_page_respond(page,'< | + | nb_page_respond(page,'< |
< | < | ||
< | < | ||
Line 215: | Line 205: | ||
nb_page_unregister(page); | nb_page_unregister(page); | ||
exit(0); | exit(0); | ||
+ | |||
</ | </ | ||
Line 241: | Line 232: | ||
Navigate to HOME -> Overwiev -> Interfaces | Navigate to HOME -> Overwiev -> Interfaces | ||
+ | {{ : | ||
The page might look diffrent, depending on your number of wanlinks. | The page might look diffrent, depending on your number of wanlinks. | ||
- | {{ : | ||
Line 328: | Line 319: | ||
</ | </ | ||
+ | |||
+ | Thats it. Enjoy your new status page. | ||