|
Hi All This might not be completely on-topic, but hey, you might learn something. On 30 Oct 2008, at 23:44 , Sebastien LELONG wrote:
I'm a bit lost in the mod_python documentation: the "hello world" example is baffling. Where is the HTML code? OK, here is what I want. My PIC spews out a serial log:
I can already make nice gnuplots, see attach. Yes, the linewidth sucks, that is a gnuplot 4 problem. I'm on FreeBSD 6.3, which has troubles with gnuplot. Anyway, the graphs shows het central heating system kicking in at 08:15 and my father entering the office at 09:00. at 22:00 I start working at my Mac, this time much closer to the CO2 sensor. What I want is web page that displays:
Where the values are read form the last line of the log file and the graph is generated on each refresh. I plan to have a cron job that fires up a python script that writess a new gnuplot file every day, say today.plt, as:
Where al the dates will be updated. So I keep a named graph (copied to a specific name at 23:55) and a named log for every day. The index.html file just points to the today.png. So do I tell mod_python to write a new index.html file at every refresh? If so, how? If not, how should it be done? Ob_topic: if all of this works, I'd like a place to put it all. A PIC project is seldom only JAL and a schematic. If your PIC is not tied to the internet, how can others be sure it even exists? How can you be sure? Computers that are not connected might as well be no computers at all, nobody will notice them. --- ir EE van Andel [EMAIL PROTECTED] http://www.fiwihex.nl Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands tel+31-546-491106 fax+31-546-491107 ![]() |
- [jallib] Some thoughts about rtc_isr_timr0 or now.jal Sebastien Lelong
- [jallib] Re: Some thoughts about rtc_isr_timr0 or no... Eur van Andel
- [jallib] Re: Some thoughts about rtc_isr_timr0 o... Sebastien LELONG
- [jallib] Re: Some thoughts about rtc_isr_tim... Eur van Andel
- [jallib] python/apache examples Eur van Andel
- [jallib] Re: python/apache examples Sebastien Lelong
- [jallib] Re: Some thoughts about rtc_isr_timr0 o... Sebastien LELONG

