The new generation of dataloggers have the ability to host a web page over an IP connection. This connection can be over a cell phone modem or an ethernet connection using an NL115. By default the data logger will host a basic web page with links to the historical data stored on the logger and the station status table. This web page can be replaced with a user defined web page in the data logger programming.
The example code above creates a web page called default.html (this will overwrite the CR1000 default web page) which displays the following on separate lines;
Datalogger Instructions
The following instructions can be used in your datalogger code to change the default web page:
WebPageBegin() |
These two instructions begin and end a web page section. Multiple sets of instructions can |
HTTPOut() |
This instruction is used inside a web page section (defined by the instructions above) to |
Basic HTML Code
HTML is the programming language of web pages. It is a set of rules for defining how to layout a web page in the same way that CRBasic is a set of rules for how define a dataloggers operation. HTML is organised into many “tags” which can be used to surround areas of text. Below are some good tags to start with, for more information on HTML tags see: http://www.w3schools.com/html/
<p></p> |
Text between these tags forms a paragraph. It will be separated from surrounding text by a |
<br/> | This tag inserts a line break wherever it is inserted. |
<img src=””/> |
This tag inserts a picture into a web page from the specified source location. This location |
We're now on Facebook!
Stay informed with our latest updates by following Campbell Scientific Australia.