| Gauges.py |
| In
response to requests to see the source code and particularly how I
produced the gauges, here is the current version of Gauges.py. Click on the link to see the code. Gauges.py also produces the Banner which I use on message boards and displayed on Home Page, and estimates the best "norm" for the wind direction and selects an appropriate graph. It uses ImageMagick and Gnuplot to produce images, tabular data and graphs. These are invoked by creating a script file in Python and passing this to ImageMagic or Gnuplot. Please note that this is NOT final and requires some tidying up and a couple of things sorting out. As this module does more than just the gauges, it may be split up later for clarity. I intend to add more documentation within the code to make useage clearer. |
| Code posted on pywws Google Group - 16 January 2010 |
|
Having produced a Gauges page for my weather station web site
with Air So following on from this discussion, I have taken the
Australian calculation So in WeatherStation.py I have added :- This can also be used to produce an extra graph in the same
way as Wind I hope others may find this useful. Regards |