diff --git a/_graph_templates/2012.svg.xml b/_graph_templates/2012.svg.xml new file mode 100644 index 0000000..be5eb0d --- /dev/null +++ b/_graph_templates/2012.svg.xml @@ -0,0 +1,55 @@ + + + 600, 600 + svg font "arial,10" + year=2012, month=1, day=1, hour=0 + year=2012, month=12, day=31, hour=23 + %b + %Y + + + Temperatur (℃) + -20, 50 + monthly + boxwidth / 2 + + + rgb "#f44336" + Mittleres Tagesmaximum + data['start'] + timedelta(days=20) + data['temp_out_max_ave'] + + + + rgb "#b71c1c" + Höchstes Tagesmaximum + data['temp_out_max_hi_t'] + data['temp_out_max_hi'] + + + + rgb "#607D8B" + Mittleres Nachtminimum + data['start'] + timedelta(days=7) + data['temp_out_min_ave'] + + + + rgb "#263238" + Tiefstes Nachtminimum + data['temp_out_min_lo_t'] + data['temp_out_min_lo'] + + + + 0, 120 + monthly + + rgb "#2196F3" + + data['start'] + timedelta(days=14) + data['rain'] + Monatl. Regenfall (mm) + + + diff --git a/_graph_templates/2016.png.xml b/_graph_templates/2016.png.xml index 330bbbb..d323a02 100644 --- a/_graph_templates/2016.png.xml +++ b/_graph_templates/2016.png.xml @@ -1,9 +1,9 @@ 600, 600 - pngcairo font "arial,8" + pngcairo font "arial,10" year=2016, month=1, day=1, hour=0 - year=2016, month=12, day=31, hour=0 + year=2016, month=12, day=31, hour=23 %b %Y @@ -14,28 +14,28 @@ boxwidth / 2 - 1 + rgb "#f44336" Mittleres Tagesmaximum data['start'] + timedelta(days=20) data['temp_out_max_ave'] - 6 + rgb "#b71c1c" Höchstes Tagesmaximum data['temp_out_max_hi_t'] data['temp_out_max_hi'] - 3 + rgb "#607d8b" Mittleres Nachtminimum data['start'] + timedelta(days=7) data['temp_out_min_ave'] - 5 + rgb "#263238" Tiefstes Nachtminimum data['temp_out_min_lo_t'] data['temp_out_min_lo'] @@ -45,11 +45,11 @@ 0, 120 monthly - 5 + rgb "#2196f3" data['start'] + timedelta(days=14) data['rain'] - Monatl. Regenfall (mm) + Monatl. Regenfall (㎜) diff --git a/_graph_templates/2016.svg.xml b/_graph_templates/2016.svg.xml index 4ec5711..f60f14c 100644 --- a/_graph_templates/2016.svg.xml +++ b/_graph_templates/2016.svg.xml @@ -3,7 +3,7 @@ 600, 600 svg font "arial,10" year=2016, month=1, day=1, hour=0 - year=2016, month=12, day=31, hour=0 + year=2016, month=12, day=31, hour=23 %b %Y @@ -28,7 +28,7 @@ - rgb "#607D8B" + rgb "#607d8b" Mittleres Nachtminimum data['start'] + timedelta(days=7) data['temp_out_min_ave'] @@ -45,11 +45,11 @@ 0, 120 monthly - rgb "#2196F3" + rgb "#2196f3" data['start'] + timedelta(days=14) data['rain'] - Monatl. Regenfall (mm) + Monatl. Regenfall (㎜) diff --git a/_graph_templates/colours.txt b/_graph_templates/colours.txt new file mode 100644 index 0000000..0c40349 --- /dev/null +++ b/_graph_templates/colours.txt @@ -0,0 +1,12 @@ +https://www.materialui.co/colors + +rgb "#f44336" - Day temperature (Red 500) +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) + +Untested: +rgb "#ba68c8" - Dewpoint (Purple 300) +rgb "#4caf50" - Wind (Green 500) + diff --git a/_graph_templates/tweet.png.xml b/_graph_templates/tweet.png.xml index 8089acb..a05f234 100644 --- a/_graph_templates/tweet.png.xml +++ b/_graph_templates/tweet.png.xml @@ -1,6 +1,7 @@ - pngcairo size 440,220 font "arial,8" + 400, 220 + pngcairo font "arial,8" 6 7 hours=24 @@ -25,7 +26,7 @@ 1.6 - Niederschlag (mm) + Niederschlag (㎜) 0, 6 0, 30 stündl.