Archived
1
0

Added pywws templates.

This commit is contained in:
2016-09-01 15:34:57 +02:00
parent f06eaa8c70
commit 9e0bf528cf
27 changed files with 1159 additions and 0 deletions
+41
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
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
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
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
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>
+28
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
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
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)"#