diff options
Diffstat (limited to 'templates/human_weather.txt')
-rw-r--r-- | templates/human_weather.txt | 7 |
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%} |