var Modul_klimatrend = function () {
	function init () {
		var base = this;
		this.elements = $('div[data-type="'+this.widgetname+'"]',this.area);
		this.elements.each(function(index) {
			var elem = $(this);
			elem.initData('get', elem.data('get') || 'statTemperatureTendency');
			base.addReading(elem,'get');
		});
	};
	function update (dev,par) {
		var deviceElements= this.elements.filter('div[data-device="'+dev+'"]');
		deviceElements.each(function(index) {
			
			if ( $(this).data('get')==par || par =='*'){
				var value = $(this).getReading('get').val;
				if (value){
					var part = 0;
					if($(this).data('refperiod')) {
						if(String($(this).data('refperiod')).match(/^[123]$/)) {
							part=$(this).data('refperiod')*2;
						} else if($(this).data('refperiod')=="6") {
							part=8;
						} else {
							part=-1;
							console.log("ERROR: data-refperiod='"+$(this).data('refperiod')+"' is invalid");
						}
					}
					if(part==0) {
						if($(this).data('part')) {
							if(String($(this).data('part')).match(/^[2468]$/)) {
								part =  $(this).data('part');
							} else {
								console.log("ERROR: data-part='"+$(this).data('part')+"' is invalid");
							}
						} else {
							part = 2;
						}
					}

					var timespan = getPart(value,part-1);
					var text = getPart(value,part).replace(/[\r\n]+$/, '');
					var number = 1*text.replace(/[^0-9.]/g, '');
					var sign = text.replace(/^([+-]).*/, '$1');
					var reading = $(this).data('get');
					var highmark = 99;
					if($(this).data('highmark')) {
						highmark = $(this).data('highmark');
					} else {
						if(reading.match(/humidity/i)) {
							highmark=5;
						} else if(reading.match(/temp/i)) {
							highmark=1;
						}
					}
					var icon = $(this).data("icon") || "fa-angle";
					var stagnatingColor= $(this).data("stagnating-color") || '#808080';
					var risingColor = $(this).data("rising-color") || 'firebrick';
					var fallingColor = $(this).data("falling-color") || 'cornflowerblue';

					if(number >= highmark) {
						icon = $(this).data("highmark-icon") || "fa-angle-double";
						risingColor = $(this).data("highmark-rising-color") || 'firebrick';
						fallingColor = $(this).data("highmark-falling-color") || 'cornflowerblue';
					}

					$(this).text('');
					if(text.match(/^-\s/)) {
						$(this).text(' - ')
					} else if(number == 0) {
						$(this).prepend('<span style="color:'+stagnatingColor+'" title="'+timespan+' '+text+'"> = </span>');
					} else if(sign=="+") {
						$(this).prepend('<i id="fg" class="fa '+icon+'-up" style="color:'+risingColor+';" title="'+timespan+' '+text+'"></i>');
					} else if(sign=="-") {
						$(this).prepend('<i id="fg" class="fa '+icon+'-down" style="color:'+fallingColor+';" title="'+timespan+' '+text+'"></i>');
					}
				}
			}
		});
	};

	// public
	// inherit members from base class
	return $.extend(new Modul_widget(), {
		//override members
		widgetname: 'klimatrend',
		init:init,
		update:update,
	});
}
@@ -1255,16 +1255,21 @@
 espan = 
+ftui.
 getPart(
@@ -1299,16 +1299,21 @@
  text = 
+ftui.
 getPart(
@@ -2993,8 +2993,9 @@
 ,%0A%09%7D);%0A%7D
+%0A

Update widget_klimatrend.js