|
The most efficient thing to do would be to write yourself a PHP web
page. PHP is pretty similar in syntax to perl, and isn't too difficult
to pickup. PHP is essentially a hybrid between a programming language
and HTML. Think of it as a way to programmatically build an HTML page
on the fly. I could share my php code if you like. If you can't use PHP for some reason, then you really want to build a _javascript_ file instead of a CSS file. Including a JS file will be both easier and more flexible. You'd use your favorite scripting language to output a file of valid _javascript_ statements that you can then use in the HTML to display at runtime. The template file with owfs values you'd generate should be in the same folder as the display page and might look something like: // Begin _javascript_ Include file owValues.js///////////////////////////// device1 = new Object; device1.parameter1 = 25; device1.parameter2 = "some owfs read value"; device1.parameter3 = "some owfs read value"; device2 = new Object; device2.parameter1 = 59; device3 = new Object; device3.parameter1 = 63; // End _javascript_ Include file owValues.js///////////////////////////// To output the owfs read values in your HTML, you'd do something like: // Begin HTML file display.htm///////////////////////////// <HTML> <HEAD> <SCRIPT language="_javascript_" src=""></SCRIPT> </HEAD> <BODY> <h3>Here are the owfs values</h3> <SCRIPT language="_javascript_"> document.write('<p>Device1 Temp: ' + device1.parameter1 + '</p>'); document.write('<p>Device2 Temp: ' + device2.parameter1 + '</p>'); </SCRIPT> <DIV> some more web content goes here. You can output OWFS data from your include file anywhere you like.</DIV> <DIV>The memory pages of device1 contents: <B> <SCRIPT language="_javascript_"> document.write(device1.parameter2); </SCRIPT> </B> </DIV> </BODY> </HTML> // End HTML file display.htm///////////////////////////// -Scott Rob Conway wrote:
|
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
