Hello,
changing to km/h is very easy:
- in all relevant .txt templates replace wind_mph to wind_kmph,
eg.
<td>#wind_ave "%.0f <small>mph</small>" "-" "wind_mph(x)"#</td>
change to
<td>#wind_ave "%.0f <small>km/h</small>" "-" "wind_kmph(x)"#</td>
-in plot templates change the appropriate section of .png.xml file as in following example:
<plot>
<title>Wind speed (km/h)</title>
<yrange>0, 100</yrange>
<source>raw</source>
<subplot>
<colour>4</colour>
<ycalc>wind_kmph(data['wind_gust'])</ycalc>
<title>gust</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>wind_kmph(data['wind_ave'])</ycalc>
<title>average</title>
</subplot>
</plot>
- in wind roses plots follow this example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<graph>
<size>600, 700</size>
<title>Wind over the last hour (km/h)</title>
<duration>hours=1</duration>
<windrose>
<source>raw</source>
<ycalc>wind_kmph(data['wind_ave'])</ycalc>
<yrange>*</yrange>
<threshold>1, 5, 12, 20, 30, 40, 50</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
</graph>
Regards from Czech rep.
Jimicek