Specifications
Section 11. Programming Resource Library
11-17
HTTPOut("<p><a href="+ CHR(34) + "command=NewestRecord&table=Public"+ CHR(34)+">Current Record from Public
Table</a></p>")
HTTPOut("<p><a href="+ CHR(34) + "command=NewestRecord&table=Status"+ CHR(34)+">Current Record from Status
Table</a></p>")
HTTPOut("<br><p><a href="+ CHR(34) +"default.html"+CHR(34)+">Back to the Home Page</a></p>")
HTTPOut("</body>")
HTTPOut("</html>")
WebPageEnd
BeginProg
Scan (1,Sec,3,0)
PanelTemp (RefTemp,250)
RealTime (Time())
Minutes=FormatFloat (Time(5),"%02.0f")
Seconds=FormatFloat (Time(6),"%02.0f")
Temperature=FormatFloat(RefTemp, "%02.02f")
CallTable (CR1Temp)
NextScan
EndProg
In this example program, the default home page was replaced by using
WebPageBegin to create a file called default.html. The new default home page
created by the program appears as shown in FIGURE 11.2-2 looks like this:
FIGURE 11.2-2. Home Page Created using
WebPageBegin() Instruction
The Campbell Scientific logo in the web page comes from a file called
SHIELDWEB2.JPG. That file must be transferred to the datalogger’s CPU
drive using File Control. The datalogger can then access the graphic for
display on the web page.
A second web page, shown in FIGURE 11.2-3 called monitor.htm
l was created
by the example program that contains links to the CR1000 data tables: