summaryrefslogtreecommitdiff
path: root/templates/human_weather.txt
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-11-06 09:42:47 -0400
committerlxf <sng@luxagraf.net>2021-11-06 09:42:47 -0400
commitd9f51299809bfb6b3ac589b7c42016d0ef240299 (patch)
treeaa5f945e82fdbf1b66aca82fe5122f6ff5a12eb9 /templates/human_weather.txt
parentdde9914dbbc6cda18ba59024065727c8dc6bcdf4 (diff)
moved templates to top level directory
Diffstat (limited to 'templates/human_weather.txt')
-rw-r--r--templates/human_weather.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/human_weather.txt b/templates/human_weather.txt
new file mode 100644
index 0000000..677a690
--- /dev/null
+++ b/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%}