summaryrefslogtreecommitdiff
path: root/design/templates
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates')
-rw-r--r--design/templates/human_weather.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/design/templates/human_weather.txt b/design/templates/human_weather.txt
new file mode 100644
index 0000000..677a690
--- /dev/null
+++ b/design/templates/human_weather.txt
@@ -0,0 +1,7 @@
+{% load f_to_c %}
+Today the high temperature was {{object.temp_max}}F/{{object.temp_max|f_to_c}}C and the low was {{object.temp_min}}F/{{object.temp_min|f_to_c}}C. The mean temp was {{object.temp_mean}}F/{{object.temp_mean|f_to_c}}C. The mean wind speed was {{object.wind_mean}}mph with gusts up to {{object.wind_max}}mph.
+{%if object.rain%}It rained {{object.rain_amount}} inches.{%endif%}
+{%if object.snow%}It snowed {{object.snow_amount}} inches.{%endif%}
+{%if object.hail%}It hailed.{%endif%}
+{%if object.thunder%}It thundered {%endif%}
+{%if object.fog%}There was fog{%endif%}