RE: TINI Web Server HTML page refresh

"Kelly Smith" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Dear Erio - Re:"if it's possible to automatically refresh HTML page every x
seconds".

Sure!

Take a look at this:

The HTML "tag" is "<meta http-equiv=\"refresh\" content=\"60\">\n" +

See below, where the '60' is 'seconds until the next refresh'.  Example; 1 =
1 second:

        info.append(
        "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\">\n" +
        "<meta http-equiv=\"refresh\" content=\"60\">\n" +
        "<html>\n<head>\n<link type=\"text/css\" rel=\"stylesheet\" " +
        "href=\"site.css\">\n<meta http-equiv=\"Content-Type\" " +
        "content=\"text/html; charset=utf-8\">\n" +
        "<title>Home Automation System</title>\n</head>\n\n" +
        "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" " +
        "marginheight=\"0\" link=\"#336699\" vlink=\"#336699\" " +
        "alink=\"#336699\">\n" +
        "<div align=\"center\">\n<table border=\"0\" width=\"100%\" " +
        "height=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n" +
        "<!-- Top Panel -->\n<tr height=\"80\">\n" +
        "<td colspan=\"2\" bgcolor=\"#6699CC\"><div><h1><font
color=\"#ffffff\">" +
        "Home Automation System</font></div></h1>\n");

Best regards, Kelly Smith

-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:[email protected]]On Behalf Of
Erio Magnoni
Sent: Tuesday, February 17, 2004 5:22 AM
To: tini-6tN4nzCoH/[email protected]
Subject: [TINI]TINI Web Server HTML page refresh


Hi everyone!
I took a look and tried the WebServer in the tini examples and I would like
to
ask you if it's possible to automatically refresh HTML page every x seconds.
That's because I have to read periodically a text file built by a process
that
reads temperature and other parameters from sensors.

Thank you for the support.

Best regards,
Erio Magnoni



-------------------------------------------------
This mail sent through IMP: https://mail.die.supsi.ch
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.