# HG changeset patch # User Matti Hamalainen # Date 1443957775 -10800 # Node ID 6951c3a3f677dfa36b29fd9c58046b94a301ffce # Parent ade13f17639b43074032a9236cf688fc59387b6c# Parent e01963cb88fd9b3bb023d60c4c3a546b5ccc4877 Merged. diff -r ade13f17639b -r 6951c3a3f677 utillib.tcl --- a/utillib.tcl Sun Oct 04 14:22:32 2015 +0300 +++ b/utillib.tcl Sun Oct 04 14:22:55 2015 +0300 @@ -15,7 +15,8 @@ append utl_html_ent_str "|||-|’|'|ü|ü|Ü|Ü|•|*|€|€" append utl_html_ent_str "|”|\"|‘|'|ä|ä|·|*|®|®|´|'" append utl_html_ent_str "|ö|ö|ö|ö|#|#|'|'|­||–|-|”|\"" -append utl_html_ent_str "|…|...|…|...|"|\"" +append utl_html_ent_str "|…|...|…|...|"|\"|­||@|#" +append utl_html_ent_str "| | " set utl_html_ent_list [split [encoding convertfrom "utf-8" $utl_html_ent_str] "|"] diff -r ade13f17639b -r 6951c3a3f677 weather.tcl --- a/weather.tcl Sun Oct 04 14:22:32 2015 +0300 +++ b/weather.tcl Sun Oct 04 14:22:55 2015 +0300 @@ -1,6 +1,6 @@ ########################################################################## # -# Weather v0.9 by Matti 'ccr' Hamalainen +# Weather v0.9.1 by Matti 'ccr' Hamalainen # (C) Copyright 2014-2015 Tecnic Software productions (TNSP) # # Requires data fetcher to be run as a cronjob, see fetch_weather.pl @@ -20,7 +20,7 @@ # No need to look below this line ########################################################################## set weather_name "Weather" -set weather_version "0.9" +set weather_version "0.9.1" ### Initialization messages @@ -223,9 +223,14 @@ } close $ufile - # Store min/max - set weather_data(w_min) $weather_data($wtemp_min_key) - set weather_data(w_max) $weather_data($wtemp_max_key) + # Store min/max + if {$wtemp_min_key != "" && $wtemp_max_key != ""} { + set weather_data(w_min) $weather_data($wtemp_min_key) + set weather_data(w_max) $weather_data($wtemp_max_key) + } else { + set weather_data(w_min) 0 + set weather_data(w_max) 0 + } } else { weather_log "Could not open data file: $uerrmsg" }