Friday, January 11, 2019

Small web page template, with auto refresh.

Small refreshing web page. 

Also note on shell infinite loop to mechanize on the server side.

By running the shell script to generate the web page,  and adding the auto refresh you have a quick and dirty way to offloading information from the server via browser and simple script.

auto-refresh-code-in-html-using-meta-tags

bash-infinite-loop

Small example from temperature

<HTML>
<HEAD>
<TITLE>Odroid temp</TITLE>
<meta http-equiv="refresh" content="5">
</HEAD>
<BODY>
WEATHER-BOARD v1.6<br>
<br>======== si1132 ========<br>
UV_index : 0.01<br>
Visible : 206 Lux<br>
IR : -1486 Lux<br>
======== bme280 ========<br>
temperature : 30.18 'C<br>
temperature : 86.32 'F<br>
humidity : 31.18 %<br>
pressure : 1010.49 hPa<br>
altitude : 113.952599 m
<br></BODY>
</HTML>


--30--

No comments:

Post a Comment