Archived
1
0

Split tweet template into includes.

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

@ -5,8 +5,8 @@ rgb "#b71c1c" - Day max. temp. (Red 900)
rgb "#607d8b" - Night temperature (Blue-Grey 500)
rgb "#263238" - Night min. temp. (Blue-Grey 900)
rgb "#2196f3" - Rain (Blue 500)
rgb "#283593" - Rain overall (Indigo 800)
Untested:
rgb "#ba68c8" - Dewpoint (Purple 300)
rgb "#4caf50" - Wind (Green 500)

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<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>rgb "#2196F3"</colour>
<style>box</style>
<xcalc>data['idx'].replace(minute=30, second=0)</xcalc>
<ycalc>data['rain']</ycalc>
<title>stündl.</title>
</subplot>
<subplot>
<colour>rgb "#283593"</colour>
<axes>x1y2</axes>
<ycalc>data['rain'] + last_ycalc</ycalc>
<title>gesamt</title>
</subplot>
</plot>

@ -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>