Add status page, change ipv6 address to ::101 and ::102

This commit is contained in:
dak664 2010-12-04 21:24:29 +00:00
parent f34e5ec798
commit a5cbd0cd94
6 changed files with 28 additions and 6 deletions

View File

@ -2,5 +2,5 @@
<html><head><title>Huginn</title>
<link rel="stylesheet" type="text/css" href="/style.css"><link rel="icon" href="favicon.png" type="image/png">
</head><body bgcolor="#fffeec" text="black">
<div class="menublock"><div class="menu"><p class="border-title">Menu</p><p class="menu"><a href="/">Front page</a><br><a href="files.shtml">File statistics</a><br><a href="tcp.shtml">Network connections</a><br><a href="process.shtml">System processes</a><br><a href="sensor.shtml">Sensor Readings</a></p></div></div>
<div class="menublock"><div class="menu"><p class="border-title">Menu</p><p class="menu"><a href="/">Front page</a><br><a href="status.shtml">Status</a><br><a href="files.shtml">File statistics</a><br><a href="tcp.shtml">Network connections</a><br><a href="process.shtml">System processes</a><br><a href="sensor.shtml">Sensor Readings</a></p></div></div>
<div class="contentblock"><p class="border-title">Welcome to the <a href="http://www.sics.se/contiki/">Contiki</a> web server on Huginn!</p>

View File

@ -1,7 +1,7 @@
#include <avr/eeprom.h>
/* Link layer ipv6 address will become fe80::11:22ff:fe33:4455 */
uint8_t mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
/* Link layer ipv6 address will become fe80::102 */
uint8_t mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2};
uint8_t server_name[16] EEMEM = "huginn";
uint8_t domain_name[30] EEMEM = "localhost";

View File

@ -0,0 +1,11 @@
%!: /header.html
<h4>My Addresses</h4>
%! addresses
<h4>My close friends</h4>
%! neighbors
<h4>My other friends</h4>
%! routes
<h4>My Sensors</h4>
%! sensors
</table>
%! file-stats .

View File

@ -2,5 +2,5 @@
<html><head><title>Muninn</title>
<link rel="stylesheet" type="text/css" href="/style.css"><link rel="icon" href="favicon.png" type="image/png">
</head><body bgcolor="#fffeec" text="black">
<div class="menublock"><div class="menu"><p class="border-title">Menu</p><p class="menu"><a href="/">Front page</a><br><a href="files.shtml">File statistics</a><br><a href="tcp.shtml">Network connections</a><br><a href="process.shtml">System processes</a><br><a href="sensor.shtml">Sensor Readings</a></p></div></div>
<div class="menublock"><div class="menu"><p class="border-title">Menu</p><p class="menu"><a href="/">Front page</a><br><a href="status.shtml">Status</a><br><a href="files.shtml">File statistics</a><br><a href="tcp.shtml">Network connections</a><br><a href="process.shtml">System processes</a><br><a href="sensor.shtml">Sensor Readings</a></p></div></div>
<div class="contentblock"><p class="border-title">Welcome to the <a href="http://www.sics.se/contiki/">Contiki</a> web server on Muninn!</p>

View File

@ -1,7 +1,7 @@
#include <avr/eeprom.h>
/* Link layer ipv6 address will become fe80::11:22ff:fe33:4456 */
uint8_t mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56};
/* Link layer ipv6 address will become fe80::101 */
uint8_t mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01};
uint8_t server_name[16] EEMEM = "muninn";
uint8_t domain_name[30] EEMEM = "localhost";

View File

@ -0,0 +1,11 @@
%!: /header.html
<h4>My Addresses</h4>
%! addresses
<h4>My close friends</h4>
%! neighbors
<h4>My other friends</h4>
%! routes
<h4>My Sensors</h4>
%! sensors
</table>
%! file-stats .