<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Zahl in Basic-Number Widget modifizieren]]></title><description><![CDATA[<p dir="auto">Moin,</p>
<p dir="auto">Kurze Frage,</p>
<p dir="auto">Ich würde gerne die ausgelesene Zahl aus HM Datenpunkt, die ich im Basic Naumber Widget darstelle mit einer weiteren Zahl Addieren und das Ergebnis darstellen.</p>
<p dir="auto">Mutiplizieren geht ja direkt hier aber Addieren?</p>
<p dir="auto">Hat jemand ein Tip für mich, oder geht nur der Umweg über Script?</p>
]]></description><link>https://forum.iobroker.net/topic/5961/zahl-in-basic-number-widget-modifizieren</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 00:11:29 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/5961.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 May 2017 14:59:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahl in Basic-Number Widget modifizieren on Tue, 07 Jan 2020 19:08:39 GMT]]></title><description><![CDATA[<p dir="auto">Moin,<br />
Auch wenn die Frage schon älter ist:<br />
Du musst statt Basic-Number das Basic-HTML Widget benutzen.<br />
Der HTML-Code sieht dann in etwa so aus:<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;{hm-rpc.0.deinSensor.1.TEMPERATURE;operation1;operation2;...}°C&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</p>
<p dir="auto">Folgende Operationen werden unterstützt:</p>
<pre><code>\* - multiplying. Argument must be in brackets, like "*(4)". In this sample we multiplying value with 4.
\+ - add. Argument must be in brackets, like "+(4.5)". In this sample we add to value 4.5.
\- - subtract. Argument must be in brackets, like "-(-674.5)". In this sample we subtract from value -674.5.
/ - dividing. Argument must be in brackets, like "/(0.5)". In this sample we dividing value by 0.5.
% - modulo. Argument must be in brackets, like "%(5)". In this sample we take modulo of 5.
round - round the value.
round(N) - round the value with N places after point, e.g. 34.678;round(1) =&gt; 34.7
hex - convert value to hexadecimal value. All letters are lower cased.
hex2 - convert value to hexadecimal value. All letters are lower cased. If value less 16, so the leading zero will be added.
HEX - same as hex, but upper cased.
HEX2 - same as hex2, but upper cased.
date - format date according to given format. Format is the same as in iobroker.javascript
min(N) - if value is less than N, take the N, elsewise value
max(M) - if value is greater than M, take the M, elsewise value
sqrt - square root
pow(n) - power of N.
pow - power of 2.
floor - Math.floor
ceil - Math.ceil
random(R) - Math.random() * R, or just Math.random() if no argument
formatValue(decimals) - format value according to system settings and use decimals
date(format) - format value as date. Format is like: "YYYY-MM-DD hh:mm:ss.sss"
array(element1,element2[,element3,element4]) - returns the element of index. e.g.: {id.ack;array(ack is false,ack is true)}
</code></pre>
<p dir="auto">MfG</p>
]]></description><link>https://forum.iobroker.net/post/353659</link><guid isPermaLink="true">https://forum.iobroker.net/post/353659</guid><dc:creator><![CDATA[luckysnooze]]></dc:creator><pubDate>Tue, 07 Jan 2020 19:08:39 GMT</pubDate></item></channel></rss>