Solar water heater
- displaying data on a web page
- make a menu to see the archived data

The second day was one of late autumn sunshine, here is the actual web page

make_page.bas saves new data and rebuilds the page every 2 minutes
so the web page also refreshes for as long as the browser views it using
<meta http-equiv="refresh" content="100" > in the header

- select "View source" to see "Canvas" in action - some browsers (IE?) have trouble with Canvas

Note - you can use ' instead of " in web pages - useful in Blassic statements like PRINT " web page content of some sort"

To see the archive I first go to http://192.168.0.52:8052/cgi-bin/solar_web_plot/plot_graph.cgi

This builds a web page from webpage_top.html . . . . pg-default.sh . . . . webpage_bottom.html

It looks like this

clicking on a link opens pg-plot_graph.sh and sends it string1 which
pg-plot_graph.sh then opens choose_the_plot.bas and sends it string1 as an argument

choose_the_plot.bas works out the file name for today or yesterday and sets up a web page that hops directly to the archived web page
using the meta http-equiv='refresh' content= command in the header

(NB I added .txt to the file names above for easier viewing)

New
Now as an altenative menu I use a frame set to keep the menu separate from the data display
solar_bottom.html
solar_frames.html
solar_top.html

also using
choose_the_plot.bas

Sunspot Home