Getting my Python variables onto a webpage
I like to think of myself as a decent programmer, but I'm definitely no IT
guy. I typically work on embedded stuff; networking and the Internet may
as well be magic for all I understand of it. I've got a Python program
that I'd like to add some remote monitoring capability to. I want to be
able to print some of my program variables to a webpage that I can access
from within my LAN -- if possible, have it autoupdate so I don't have to
mash refresh. How do I go about doing this? My google fu is mostly turning
up ways how to use python to scrape data off other websites which is not
what I want. My first impression is to write my HTML file from Python that
gets read by Apache but this sounds like it'll cause read/write
contentions and lots of unnecessary I/O if I'm constantly rewriting the
file.
I'd appreciate any help pointing me in the right direction.
(I realize I can just use ssh + print to console to but this is really ugly)
No comments:
Post a Comment