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 2 clocks (one is standard time, the other varies according to the sensor data).
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 like this to be written in python. Using modules such as matplotlib / plotly / django / flask etc is fine.
If it isn’t possible to update the webpage at 50Hz (I suspect it isn’t), calculating the average frequency for the last second and updating every second (gmtime) is fine.
PROJECT SPEC AND MY CODE IS ATTACHED