Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Grad Celsius in Fahrenheit umrechen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Grad Celsius in Fahrenheit umrechen

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SoerenKaiser99 last edited by

      Hi Zs,

      da ich es eben selbst brauchte habe ich ein kleines Skript geschrieben um Celsius in Fahrenheit umzurechnen.

      Der Wert Temperatur kommt hier von meiner Wetterstation in °C. Temperatur Fahrenheit ist ein manueller Wert den ich einfach zusätzlich als Objekt angelegt habe. Es wird also die Temperatur *1,8 und dann +32 gerechnet und das Ergebnis in das manuelle Objekt geschrieben.

      Vielleicht erspart das ja dem ein oder anderen ein wenig suchen:

       <block xmlns="http://www.w3.org/1999/xhtml" type="on_ext" id=";|^#zEAG3eOW*X~.5RQ." x="38" y="-262.99998474121094"><mutation items="1"></mutation>
        <field name="CONDITION">ne</field>
      
        <value name="OID0"><shadow type="field_oid" id="_@px^Xq@{e^JtFJBE1x9"><field name="oid">mqtt.0.sonoff.Wetterstation.Wetter.Temperatur</field></shadow></value> 
        <statement name="STATEMENT"><block type="controls_if" id="EZVIxR{GacCGF89[vp%?"><value name="IF0"><block type="get_value" id="m*`#(rIK;e2n:LuE}O7H"><field name="ATTR">val</field>
                <field name="OID">mqtt.0.sonoff.Wetterstation.Wetter.Temperatur</field></block></value> 
            <statement name="DO0"><block type="update" id="R0ROgqA^P[Y-HV^?su!J"><mutation delay_input="false"></mutation>
                <field name="OID">mqtt.0.sonoff.Wetterstation.Wetter.Temperatur_Fahrenheit</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE"><block type="math_arithmetic" id="gD9[c}G/~8,L?8|IBdBA"><field name="OP">ADD</field>
                    <value name="A"><shadow type="math_number" id="o0RBo.MAL,O4onRazsgt"><field name="NUM">1</field></shadow> 
                      <block type="math_arithmetic" id="hF0OQP9?@p#-U+%Ro-!L"><field name="OP">MULTIPLY</field>
                        <value name="A"><shadow type="math_number" id="o0RBo.MAL,O4onRazsgt"><field name="NUM">1</field></shadow> 
                          <block type="get_value" id="}vFMoYXzWKiWs}Dlbe-w"><field name="ATTR">val</field>
                            <field name="OID">mqtt.0.sonoff.Wetterstation.Wetter.Temperatur</field></block></value> 
                        <value name="B"><shadow type="math_number" id="{zlvMLIeWAL%xBgRiS,@"><field name="NUM">1.8</field></shadow></value></block></value> 
                    <value name="B"><shadow type="math_number" id="dKtE?RYei+4iSI+uL;yz"><field name="NUM">32</field></shadow></value></block></value></block></statement></block></statement></block> 
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      845
      Online

      31.7k
      Users

      79.9k
      Topics

      1.3m
      Posts

      1
      1
      325
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo