Archived
1
0

Split tweet template into includes.

This commit is contained in:
2016-09-04 21:22:15 +02:00
parent 6a456e0c46
commit 4a786d998f
3 changed files with 26 additions and 38 deletions

View File

@ -9,41 +9,6 @@
<xformat>%H%M</xformat>
<xlabel></xlabel>
<dateformat></dateformat>
<plot>
<bmargin>1</bmargin>
<yrange>-10, 35</yrange>
<source>raw</source>
<subplot>
<colour>1</colour>
<title>Temperatur (℃)</title>
<ycalc>data['temp_out']</ycalc>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>dew_point(data['temp_out'], data['hum_out'])</ycalc>
<title>Taupunkt (℃)</title>
</subplot>
</plot>
<plot>
<bmargin>1.6</bmargin>
<title>Niederschlag (㎜)</title>
<yrange>0, 6</yrange>
<y2range>0, 30</y2range>
<ylabel>stündl.</ylabel>
<y2label>gesamt</y2label>
<source>hourly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['idx'].replace(minute=30, second=0)</xcalc>
<ycalc>data['rain']</ycalc>
<title>stündl.</title>
</subplot>
<subplot>
<colour>3</colour>
<axes>x1y2</axes>
<ycalc>data['rain'] + last_ycalc</ycalc>
<title>gesamt</title>
</subplot>
</plot>
<xi:include href="includes/raw_temp_dew_line.xml" parse="xml" />
<xi:include href="includes/hourly_rain_sum_dual.xml" parse="xml" />
</graph>