I have completed the main section of Python code, I need help with building a web interface that displays 2 live updating graphs (from the sensor data my program obtains), and also displays 2 online clocks, which I have already coded in python (one is standard time, the other varies according to the sensor data).
Graph 1 is frequency varying with time. graph 2 shows how the time difference between the 2 clocks varies with time.
This can be several pages.
THIS CAN BE A LOCALLY RUNNING WEB INTERFACE TO PROVE THE CONCEPT WORKS.
A push button could be used as the circuit will not be available, (as long as it is connected to the same pin as specified it works fine).
Some background on what the code I have already written does:
calculates the mains AC frequency and stores this as a variable.
Reads the time using the time module
Varies a 'frequency clock', if the frequency is higher than 50 Hz (I am in the UK), the clock runs fast and if lower than 50 Hz, runs slower.
I would prefer this to be written in python although this is not absolutely necessary.
If it isn't possible to update the web page at 50Hz (I suspect it isn't), calculating the average frequency for the last second and updating every second (gmtime) is fine.
MY CODE IS ATTACHED