I am busy writing a simple program in python which takes information from the serial port and displays a graph of this to the user. (It is basically a energy meter connected to the serial port and the python program should display the voltage, current and power curves.)
However, I would really like to make this program accessible from the internet (ie: one open's a web browser on the remote computer, types in the host pc's ip address and some port and you are confronted with the voltage, current and power curves)
I am very new to python and the whole object oriented programing language. Most of my programing was done in C# in the past.
Is there a relatively easy way to 'port' a python program to some form of web accessible program/script. Possibly by using it in conjunction with a Apache server running on the host machine?
Any help with this would be much appreciated. Even if it just points me in the right direction.
Thanks so much.
EDIT: I have now been playing around with CGI and Apache and I see that it is possible to execute .py files in Apache as cgi-binaries. However, when I attempted to execute my complete python program (containing a Qt form and many push buttons and combo boxes) the page just kept on loading forever, until it displayed a server timeout. Is this because I am using CGI and not FastCGI? or is it not possible to 'port' Qt framework to HTML? Should I rather create a new GUI framework out of HTML code?
Thanks so much.