Archived
1
0

Added pywws templates.

This commit is contained in:
Markus Birth 2016-09-01 15:34:57 +02:00
parent f06eaa8c70
commit 9e0bf528cf
27 changed files with 1159 additions and 0 deletions

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<start>year=2009, month=1, day=1, hour=0</start>
<stop>year=2009, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>6</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>5</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<start>year=2010, month=1, day=1, hour=0</start>
<stop>year=2010, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>6</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>5</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<start>year=2011, month=1, day=1, hour=0</start>
<stop>year=2011, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>6</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>5</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<start>year=2012, month=1, day=1, hour=0</start>
<stop>year=2012, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>6</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>5</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<start>year=2013, month=1, day=1, hour=0</start>
<stop>year=2013, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>6</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>5</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<start>year=2016, month=1, day=1, hour=0</start>
<stop>year=2016, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>6</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>5</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>svg font "arial,10"</fileformat>
<start>year=2016, month=1, day=1, hour=0</start>
<stop>year=2016, month=12, day=31, hour=0</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>rgb "#f44336"</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>rgb "#b71c1c"</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>rgb "#607D8B"</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>rgb "#263238"</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>rgb "#2196F3"</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 800</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<duration>hours=24</duration>
<xtics>2</xtics>
<xformat>%H%M</xformat>
<dateformat></dateformat>
<plot>
<yrange>-20, 40</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>
<title>Windgeschwindigkeit (km/h)</title>
<yrange>0, 30</yrange>
<source>raw</source>
<subplot>
<colour>4</colour>
<ycalc>data['wind_gust'] * 3.6</ycalc>
<title>Boe</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<title>durchschn.</title>
</subplot>
</plot>
<plot>
<yrange>0, 5</yrange>
<source>hourly</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['idx'].replace(minute=30, second=0)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Tägl. Regenfall (mm)</title>
</subplot>
</plot>
<plot>
<source>hourly</source>
<subplot>
<colour>2</colour>
<ycalc>data['rel_pressure']</ycalc>
<title>Luftdruck (hPa)</title>
</subplot>
<yrange>960, 1050</yrange>
</plot>
</graph>

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 800</size>
<fileformat>svg font "arial,10"</fileformat>
<duration>hours=24</duration>
<xtics>2</xtics>
<xformat>%H%M</xformat>
<dateformat></dateformat>
<plot>
<yrange>-20, 40</yrange>
<grid>ytics</grid>
<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>
<title>Windgeschwindigkeit (km/h)</title>
<yrange>0, 30</yrange>
<source>raw</source>
<subplot>
<colour>4</colour>
<ycalc>data['wind_gust'] * 3.6</ycalc>
<title>Boe</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<title>durchschn.</title>
</subplot>
</plot>
<plot>
<yrange>0, 5</yrange>
<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>Tägl. Regenfall (mm)</title>
</subplot>
</plot>
<plot>
<source>hourly</source>
<subplot>
<colour>2</colour>
<ycalc>data['rel_pressure']</ycalc>
<title>Luftdruck (hPa)</title>
</subplot>
<yrange>960, 1050</yrange>
</plot>
</graph>

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 800</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<duration>weeks=4</duration>
<xformat>%Y/%m/%d</xformat>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 45</yrange>
<source>daily</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Tagesmaximum</title>
<xcalc>data['start'] + timedelta(hours=18)</xcalc>
<ycalc>data['temp_out_max']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Nachtminimum</title>
<xcalc>data['start'] + timedelta(hours=6)</xcalc>
<ycalc>data['temp_out_min']</ycalc>
</subplot>
</plot>
<plot>
<title>Windgeschwindigkeit (km/h)</title>
<yrange>0, 30</yrange>
<source>hourly</source>
<subplot>
<colour>4</colour>
<ycalc>data['wind_gust'] * 3.6</ycalc>
<title>Boe</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<title>durchschn.</title>
</subplot>
</plot>
<plot>
<yrange>0, 30</yrange>
<source>daily</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(hours=12)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Tägl. Regenfall (mm)</title>
</subplot>
</plot>
<plot>
<source>hourly</source>
<subplot>
<colour>2</colour>
<ycalc>data['rel_pressure']</ycalc>
<title>Luftdruck (hPa)</title>
</subplot>
<yrange>960, 1050</yrange>
</plot>
</graph>

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 800</size>
<fileformat>svg font "arial,10"</fileformat>
<duration>weeks=4</duration>
<xformat>%Y/%m/%d</xformat>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 45</yrange>
<source>daily</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<title>Tagesmaximum</title>
<xcalc>data['start'] + timedelta(hours=18)</xcalc>
<ycalc>data['temp_out_max']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>3</colour>
<title>Nachtminimum</title>
<xcalc>data['start'] + timedelta(hours=6)</xcalc>
<ycalc>data['temp_out_min']</ycalc>
</subplot>
</plot>
<plot>
<title>Windgeschwindigkeit (km/h)</title>
<yrange>0, 30</yrange>
<source>hourly</source>
<subplot>
<colour>4</colour>
<ycalc>data['wind_gust'] * 3.6</ycalc>
<title>Boe</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<title>durchschn.</title>
</subplot>
</plot>
<plot>
<yrange>0, 30</yrange>
<source>daily</source>
<subplot>
<colour>5</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(hours=12)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Tägl. Regenfall (mm)</title>
</subplot>
</plot>
<plot>
<source>hourly</source>
<subplot>
<colour>2</colour>
<ycalc>data['rel_pressure']</ycalc>
<title>Luftdruck (hPa)</title>
</subplot>
<yrange>960, 1050</yrange>
</plot>
</graph>

View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 800</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<duration>weeks=1</duration>
<xformat>%a %d</xformat>
<dateformat></dateformat>
<plot>
<yrange>-20, 40</yrange>
<source>hourly</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>
<title>Windgeschwindigkeit (km/h)</title>
<yrange>0, 30</yrange>
<source>hourly</source>
<subplot>
<colour>4</colour>
<ycalc>data['wind_gust'] * 3.6</ycalc>
<title>Boe</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<title>durchschn.</title>
</subplot>
</plot>
<plot>
<yrange>0, 5</yrange>
<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. Regenfall (mm)</title>
</subplot>
</plot>
<plot>
<source>hourly</source>
<subplot>
<colour>2</colour>
<ycalc>data['rel_pressure']</ycalc>
<title>Luftdruck (hPa)</title>
</subplot>
<yrange>960, 1050</yrange>
</plot>
</graph>

View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 800</size>
<fileformat>svg font "arial,10"</fileformat>
<duration>weeks=1</duration>
<xformat>%a %d</xformat>
<dateformat></dateformat>
<plot>
<yrange>-20, 40</yrange>
<source>hourly</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>
<title>Windgeschwindigkeit (km/h)</title>
<yrange>0, 30</yrange>
<source>hourly</source>
<subplot>
<colour>4</colour>
<ycalc>data['wind_gust'] * 3.6</ycalc>
<title>Boe</title>
</subplot>
<subplot>
<colour>3</colour>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<title>durchschn.</title>
</subplot>
</plot>
<plot>
<yrange>0, 5</yrange>
<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. Regenfall (mm)</title>
</subplot>
</plot>
<plot>
<source>hourly</source>
<subplot>
<colour>2</colour>
<ycalc>data['rel_pressure']</ycalc>
<title>Luftdruck (hPa)</title>
</subplot>
<yrange>960, 1050</yrange>
</plot>
</graph>

View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<!--
pywws - Python software for USB Wireless Weather Stations
http://github.com/jim-easterbrook/pywws
Copyright (C) 2008-13 Jim Easterbrook jim@jim-easterbrook.me.uk
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<title>Humidity Index, Bands indicate apparent discomfort in standard on-site working conditions</title>
<size>1820, 1024</size>
<duration>hours=48</duration>
<xtics>2</xtics>
<xformat>%H%M</xformat>
<dateformat></dateformat>
<plot>
<yrange>29, 55</yrange>
<y2range>29, 55</y2range>
<ylabel></ylabel>
<y2label>Humidex</y2label>
<source>raw</source>
<subplot>
<title>Humidex</title>
<ycalc>cadhumidex(data['temp_out'],data['hum_out'])</ycalc>
<colour>4</colour>
<axes>x1y2</axes>
</subplot>
<subplot>
<title>HI > 54, Heat Stroke Probable</title>
<ycalc>54</ycalc>
<axes>x1y2</axes>
<colour>1</colour>
</subplot>
<subplot>
<title>HI > 45, Dangerous</title>
<ycalc>45</ycalc>
<axes>x1y2</axes>
<colour>8</colour>
</subplot>
<subplot>
<title>HI > 40, Intense</title>
<ycalc>40</ycalc>
<axes>x1y2</axes>
<colour>6</colour>
</subplot>
<subplot>
<title>HI > 35, Evident</title>
<ycalc>35</ycalc>
<axes>x1y2</axes>
<colour>2</colour>
</subplot>
<subplot>
<title>HI > 30, Noticeable</title>
<ycalc>30</ycalc>
<axes>x1y2</axes>
<colour>3</colour>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<fileformat>pngcairo font "arial,8"</fileformat>
<title>Wind über die letzten 24h (km/h)</title>
<duration>hours=24</duration>
<windrose>
<title>Tags</title>
<source>raw</source>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<yrange>31</yrange>
<threshold>1, 5, 12, 18, 28, 37, 48</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
</graph>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<fileformat>svg font "arial,10"</fileformat>
<title>Wind über die letzten 24h (km/h)</title>
<duration>hours=24</duration>
<windrose>
<title>Tags</title>
<source>raw</source>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<yrange>31</yrange>
<threshold>1, 5, 12, 18, 28, 37, 48</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
</graph>

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<title>Wind über die letzten 7 Tage (km/h)</title>
<fileformat>pngcairo font "arial,8"</fileformat>
<duration>hours=24 * 7</duration>
<windrose>
<title>Tagsüber</title>
<source>raw</source>
<xcalc>data['idx'].hour &gt;= 9 and data['idx'].hour &lt; 21</xcalc>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<yrange>31</yrange>
<threshold>1, 5, 12, 18, 28, 37, 48</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
<windrose>
<title>Nachts</title>
<source>raw</source>
<xcalc>data['idx'].hour &lt; 9 or data['idx'].hour &gt;= 21</xcalc>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<yrange>31</yrange>
<threshold>1, 5, 12, 18, 28, 37, 48</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
</graph>

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<title>Wind über die letzten 7 Tage (km/h)</title>
<fileformat>svg font "arial,10"</fileformat>
<duration>hours=24 * 7</duration>
<windrose>
<title>Tagsüber</title>
<source>raw</source>
<xcalc>data['idx'].hour &gt;= 9 and data['idx'].hour &lt; 21</xcalc>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<yrange>31</yrange>
<threshold>1, 5, 12, 18, 28, 37, 48</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
<windrose>
<title>Nachts</title>
<source>raw</source>
<xcalc>data['idx'].hour &lt; 9 or data['idx'].hour &gt;= 21</xcalc>
<ycalc>data['wind_ave'] * 3.6</ycalc>
<yrange>31</yrange>
<threshold>1, 5, 12, 18, 28, 37, 48</threshold>
<colour>0, 6, 7, 2, 5, 3, 4, 1</colour>
</windrose>
</graph>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<terminal>pngcairo size 440,220 font "arial,8"</terminal>
<lmargin>6</lmargin>
<rmargin>7</rmargin>
<duration>hours=24</duration>
<xtics>2</xtics>
<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 (mm)</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>
</graph>

41
_templates/24hrs.txt Normal file
View File

@ -0,0 +1,41 @@
#daily#
#timezone local#
<table border="1" rules="all">
#jump -1#
#loop 2#
<tr>
<th colspan="2" class="left">
#start "Von %H%M %Z am %d %b bis" "letzte 24 Std. bis" "[x, None][loop_count == 2]"#
#idx " %H%M %Z am %d %b %Y"#
</th>
<th colspan="2">Datum &amp; Zeit</th>
</tr>
<tr>
<th class="right">Tag max. Temperatur</th>
<td>#temp_out_max "%.1f ℃"#</td>
<td>#temp_out_max_t "%Y-%m-%d</td><td>%H%M %Z"#</td>
</tr>
<tr>
<th class="right">Nacht min. Temperatur</th>
<td>#temp_out_min "%.1f ℃"#</td>
<td>#temp_out_min_t "%Y-%m-%d</td><td>%H%M %Z"#</td>
</tr>
<tr>
<th class="right">Gesamter Regenfall</th>
<td>#rain "%.1f mm"#</td>
<td colspan="2"></td>
</tr>
<tr>
<th class="right">Durchschn. Windgeschwindigkeit</th>
<td>#wind_ave "%.0f km/h" "-" "x * 3.6"#</td>
<td colspan="2"></td>
</tr>
<tr>
<th class="right">Höchste Boe-Geschwindigkeit</th>
<td>#wind_gust "%.0f km/h" "-" "x * 3.6"#</td>
<td>#wind_gust_t "%Y-%m-%d</td><td>%H%M %Z"#</td>
</tr>
#idx " <tr><th colspan=\"4\">&nbsp;</th></tr>" "" "[x, None][loop_count==1]"#
#jump 1#
#endloop#
</table>

41
_templates/6hrs.txt Normal file
View File

@ -0,0 +1,41 @@
<table border="1" rules="all">
<col />
<col />
<col align="char" char="." />
<col />
<col />
<col align="char" char="m" />
<col align="char" char="m" />
<col align="char" char="." />
<col align="char" char="," />
<tr>
<th colspan="2" rowspan="2">Datum &amp; Zeit</th>
<th rowspan="2">Temp</th>
<th rowspan="2">Feuchte</th>
<th colspan="3">Wind</th>
<th rowspan="2">Regen</th>
<th rowspan="2">Luftdruck</th>
</tr>
<tr>
<th>Ri</th>
<th>Ø</th>
<th>Boe</th>
</tr>
#timezone local#
#hourly#
#jump -6#
#loop 7#
<tr>
<td>#idx "%Y-%m-%d" "" "[None, x][x.hour == 0 or loop_count == 7]"#</td>
<td>#idx "%H%M %Z"#</td>
<td>#temp_out "%.1f ℃"#</td>
<td>#hum_out "%d%%"#</td>
<td>#wind_dir "%s" "-" "winddir_text(x)"#</td>
<td>#wind_ave "%.0f ㎞/h" "" "x * 3.6"#</td>
<td>#wind_gust "%.0f ㎞/h" "" "x * 3.6"#</td>
<td>#rain "%0.1f ㎜"#</td>
<td>#rel_pressure "%.0f h㎩"#, #pressure_trend "%s" "" "pressure_trend_text(x)"#</td>
</tr>
#jump 1#
#endloop#
</table>

30
_templates/7days.txt Normal file
View File

@ -0,0 +1,30 @@
<table border="1" rules="all">
<tr>
<th rowspan="2">letzte 24 Std. bis</th>
<th colspan="2">Temperatur</th>
<th colspan="3">Wind</th>
<th rowspan="2">Regenfall</th>
</tr>
<tr>
<th>Tag max.</th>
<th>Nacht min.</th>
<th>Ri</th>
<th>durchschn.</th>
<th>max. Boe</th>
</tr>
#timezone local#
#daily#
#jump -7#
#loop 7#
<tr>
<td>#idx "%Y-%m-%d %H:%M %Z"#</td>
<td>#temp_out_max "%.1f ℃"#</td>
<td>#temp_out_min "%.1f ℃"#</td>
<td>#wind_dir "%s" "-" "winddir_text(x)"#</td>
<td>#wind_ave "%.0f km/h" "" "x * 3.6"#</td>
<td>#wind_gust "%.0f km/h" "" "x * 3.6"#</td>
<td>#rain "%0.1f mm"#</td>
</tr>
#jump 1#
#endloop#
</table>

34
_templates/allmonths.txt Normal file
View File

@ -0,0 +1,34 @@
<table border="1" rules="all">
<tr>
<th rowspan="3">Monat</th>
<th colspan="6">Temperatur</th>
<th rowspan="3">Regenfall</th>
</tr>
<tr>
<th colspan="3">Tag max.</th>
<th colspan="3">Nacht min.</th>
</tr>
<tr>
<th>höchstes</th>
<th>durchschn.</th>
<th>tiefstes</th>
<th>höchstes</th>
<th>durchschn.</th>
<th>tiefstes</th>
</tr>
#timezone local#
#monthly#
#loop 10000#
<tr>
<td class="right">#idx "%B %Y"#</td>
<td>#temp_out_max_hi "%.1f ℃"#</td>
<td>#temp_out_max_ave "%.1f ℃"#</td>
<td>#temp_out_max_lo "%.1f ℃"#</td>
<td>#temp_out_min_hi "%.1f ℃"#</td>
<td>#temp_out_min_ave "%.1f ℃"#</td>
<td>#temp_out_min_lo "%.1f ℃"#</td>
<td>#rain "%0.1f mm"#</td>
</tr>
#jump -1#
#endloop#
</table>

27
_templates/feed_daily.xml Normal file
View File

@ -0,0 +1,27 @@
#timezone local#
#daily#
#jump -1#
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos##">
<channel>
<title>Falkensee Wetter - T&auml;gliche Berichte</title>
<link>http://fks.birth-online.de/</link>
<atom:link href="http://fks.birth-online.de/feed_daily.xml" rel="self" type="application/rss+xml" />
<description>T&auml;gliche Berichte von einer Amateur-Wetterstation in Falkensee, Brandenburg, Deutschland</description>
<ttl>360</ttl>
<item>
<title>#idx "%A %d %B"#</title>
<geo:lat>52.574</geo:lat>
<geo:long>13.128</geo:long>
<link>http://fks.birth-online.de/</link>
<description>Temperatur: #temp_out_min "%.1f℃ (min)"#
#temp_out_max ", %.1f℃ (max)"#
, Wind: #wind_dir "%s, " "" "winddir_text(x)"#
#wind_ave "%.0f km/h (durchschn.), " "" "x * 3.6"#
#wind_gust "%.0f km/h (max.), " "" "x * 3.6"#
Regenfall #rain "%.1f mm"#</description>
<guid isPermaLink="false">#idx "daily_%Y_%m_%d"#</guid>
<pubDate>#idx "%a, %d %b %Y %H:%M:%S %z"#</pubDate>
</item>
</channel>
</rss>

View File

@ -0,0 +1,28 @@
#timezone local#
#hourly#
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos##">
<channel>
<title>Falkensee Wetter - St&uuml;ndliche Berichte</title>
<link>http://fks.birth-online.de/</link>
<atom:link href="http://fks.birth-online.de/feed_hourly.xml" rel="self" type="application/rss+xml" />
<description>St&uuml;ndliche Berichte von einer Amateur-Wetterstation in Falkensee, Brandenburg, Deutschland</description>
<ttl>60</ttl>
<item>
<title>#idx "%A %H:%M %Z"#</title>
<geo:lat>52.574</geo:lat>
<geo:long>13.128</geo:long>
<link>http://fks.birth-online.de/</link>
<description>Temperatur: #temp_out "%.1f℃" "-"#
, Wind: #wind_dir "%s, " "" "winddir_text(x)"#
#wind_ave "%.0f km/h (durchschn.), " "" "x * 3.6"#
#wind_gust "%.0f km/h (max.)" "" "x * 3.6"#
, Luftfeuchte: #hum_out "%d%%"#
, Regenfall (st&uuml;ndl.) #rain "%.1f mm"#
, Luftdruck: #rel_pressure "%.0f hPa, "#
#pressure_trend "%s" "" "pressure_trend_text(x)"#</description>
<guid isPermaLink="false">#idx "hourly_%Y_%m_%d_%H_%M_%Z"#</guid>
<pubDate>#idx "%a, %d %b %Y %H:%M:%S %z"#</pubDate>
</item>
</channel>
</rss>

9
_templates/json_raw.txt Normal file
View File

@ -0,0 +1,9 @@
#raw#
#timezone local#
[
[ "timestamp", "temp_out_c", "hum_out_p", "wind_dir", "wind_ave_kmh", "wind_gust_kmh", "rain_mm", "abs_pressure_hpa" ]
#loop 26298#
,[#idx#,#temp_out "%.1f"#,#hum_out "%d"#,#wind_dir "%0d" "99"#,#wind_ave "%.0f" "" "x * 3.6"#,#wind_gust "%.0f" "" "x * 3.6"#,#rain "%0.1f"#,#abs_pressure "%.0f"#]
#jump -1#
#endloop#
]

12
_templates/tweet.txt Normal file
View File

@ -0,0 +1,12 @@
media /opt/pywws/localout/tweet.png
#hourly#
#timezone local#
#roundtime True#
#idx "%H:%M %Z:"# 🌡#temp_out "%.1f℃" "-"#
, 🌀 #wind_dir "%s, " "" "winddir_text(x)"#
#wind_ave "Ø %.0f ㎞/h, " "" "x * 3.6"#
#wind_gust "🔝 %.0f ㎞/h" "" "x * 3.6"#
, Luftfeuchte: #hum_out "%d%%"#
, 💧 (stdl.) #rain "%.1f㎜"#
, Druck: #rel_pressure "%.0f h㎩, "#
#pressure_trend "%s" "" "pressure_trend_text(x)"#