Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. Meine kleine Low-Cost Wetter Station

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Meine kleine Low-Cost Wetter Station

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

      Soweit ich das verstanden habe werden die Impulse auf der NodeMCU gezählt und nach Ablauf der von mir eingestellten 30 Sek mittels mqtt an ioBroker übermittelt.

      SBorg 1 Reply Last reply Reply Quote 0
      • SBorg
        SBorg Forum Testing Most Active @karstent last edited by

        @karstent Das schon, aber @paul53 meinte dein oberes Blockly. Bei einer Windstärke von bspw. 12 setzt du den Datenpunkt zuerst auf Windstärke 1, dann kommt die nächste Abfrage deren Bedingung wieder "wahr" ist --> du setzt den Datenpunkt auf "2" usw. bis du schließlich bei "12" landest...

        1 Reply Last reply Reply Quote 0
        • K
          karstent last edited by karstent

          Da habe ich scheinbar ein Verständnisproblem. Wenn aller 30 sek eine Zahl übermittelt wird (z.B. 20 ) Nun dachte ich das auf Grund der Einordnung in Blockly der Block zum tragen kommt in der der übermittelte Wert passt und dann der dazugehörige Wert der Windstärke in einen Datenpunkt geschrieben wird.
          30 sek später kommt ein neuer Wert der auf Grund des "Filters" einen neuen Wert in dem Datenpunkt erzeugt.
          Und wenn Sturm ist wird doch trotzdem nur aller 30 sek ein Wert übermittelt.
          Oder bin ich völlig auf dem holzweg 😕

          1 Reply Last reply Reply Quote 0
          • K
            karstent last edited by

            ok, ich glaube zu verstehen. Die Werte würden bei Sturm hintereinander bis 12 hochzählen. Wäre das dann so?
            Eigentlich hatte ich eine Möglichkeit in Blockly gesucht um die grenzen besser abzutrennen.
            Also wenn Wert von 10 bis 20 dann mache ... , wenn Wert von 21-30 dann mache ...

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @karstent last edited by paul53

              @karstent sagte:

              bis 12 hochzählen. Wäre das dann so?

              Ja, deshalb setze erst eine Variable auf den Beaufort-Wert und schreibe diese zum Schluss in den Datenpunkt. Etwa so:

              Blockly_temp.JPG

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="ID2`D,:UL1IR$5Qn8.-O">beaufort</variable>
               </variables>
               <block type="on_ext" id=",L25Z5r3!`_mficTz@?x" x="113" y="112">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <value name="OID0">
                   <shadow type="field_oid" id="O2ZgW?$n2CDtq88t{6#U">
                     <field name="oid">default</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="variables_set" id="F3yOCx#*Fl!hqsqM+UHR">
                     <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                     <value name="VALUE">
                       <block type="math_number" id="%!DiPZ@%p(_C.|yFuGJi">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                     <next>
                       <block type="controls_if" id="!u[jbl5BDJerynLg9Zss">
                         <value name="IF0">
                           <block type="logic_compare" id="/(1vM?fz?v[yv5v8|Hj!">
                             <field name="OP">GTE</field>
                             <value name="A">
                               <block type="on_source" id="609{vprKu;Vw4?YX#Kw+">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="jyX+rL:LL8!WwVmriFVU">
                                 <field name="NUM">1.85</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="variables_set" id="W.WiUDY-L#v2-B.*N$5E">
                             <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                             <value name="VALUE">
                               <block type="math_number" id="[!Xg]iDXq3/_w(,jF}Ib">
                                 <field name="NUM">1</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                         <next>
                           <block type="controls_if" id="*#o`[g1gD3cR/8`3gpa=">
                             <value name="IF0">
                               <block type="logic_compare" id="Z(O4VnQL=3dy61T@SyH*">
                                 <field name="OP">GTE</field>
                                 <value name="A">
                                   <block type="on_source" id="#feV%W6@~SA|fSH@g+ks">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="8_;7UV1FY8;CJ0*Qn2,^">
                                     <field name="NUM">7.41</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="variables_set" id="3h@LC1rU3PB;r/a,7Oqv">
                                 <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="yNU*nGb/8#S`|q5S]q.e">
                                     <field name="NUM">2</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                             <next>
                               <block type="controls_if" id="VB#$z3V4Y[Gin7]{}/ED">
                                 <value name="IF0">
                                   <block type="logic_compare" id="$x@{#l;($(C~JvVF.sA!">
                                     <field name="OP">GTE</field>
                                     <value name="A">
                                       <block type="on_source" id="tst8!y?GG!s60t!%B/L3">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="7g4b(4kRb,bo_+?SyfH9">
                                         <field name="NUM">12.96</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="variables_set" id="{wUQn?*a[(un;U:SAQU7">
                                     <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="[J)yvy:KmfHs+u{3MtN5">
                                         <field name="NUM">3</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="controls_if" id="Ij+ZcLX}[~*Gf*_X.O6H">
                                     <value name="IF0">
                                       <block type="logic_compare" id="J`S@SD)ZckTP64J5E,KV">
                                         <field name="OP">GTE</field>
                                         <value name="A">
                                           <block type="on_source" id="28w*^xqaPK/`m[6UyB)m">
                                             <field name="ATTR">state.val</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="4!k/+I1etq}4n]tlADO=">
                                             <field name="NUM">20.37</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id="b2}hS9x[UcQd%xke+{SK">
                                         <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="xwD%.$0$jv#5/LDd$V;H">
                                             <field name="NUM">4</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="controls_if" id="1Ube*mo)^{R2l^u3Z6~C">
                                         <value name="IF0">
                                           <block type="logic_compare" id="ykDTX]$m`MljXc]Lv+,K">
                                             <field name="OP">GTE</field>
                                             <value name="A">
                                               <block type="on_source" id="wBu4,`PHGkQ%AgzcRtyL">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="(hx7`moANHYJilQYUM`b">
                                                 <field name="NUM">29.63</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="]@ogmii/cg]@Cykp.B7P">
                                             <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="Vo76tkoEi@zXXioB}_nG">
                                                 <field name="NUM">5</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="controls_if" id="p.KT*LO/F^Vx[k59,S/1">
                                             <value name="IF0">
                                               <block type="logic_compare" id="AQGmm^lGzhP$EmS`KZRN">
                                                 <field name="OP">GTE</field>
                                                 <value name="A">
                                                   <block type="on_source" id="(1/RXeOEs_0NF,aB2JEj">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="Yg?a3?;j?Du+KMj*^Tv3">
                                                     <field name="NUM">40.74</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="variables_set" id="LfG4EX2M/%|iw)Hk+rLV">
                                                 <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="tTmHw1DDgM]#PHEZEX_1">
                                                     <field name="NUM">6</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="controls_if" id="=j7umTN4y`7YhUuJTe#;">
                                                 <value name="IF0">
                                                   <block type="logic_compare" id="Y~d{P=Gg6#h?cE|{VvQ4">
                                                     <field name="OP">GTE</field>
                                                     <value name="A">
                                                       <block type="on_source" id="T|b]Yt{jx}6v_#]4D7@r">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="math_number" id="t+Kie{FU$V,d$]%Z7REv">
                                                         <field name="NUM">51.86</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO0">
                                                   <block type="variables_set" id="7W;?N^O$h]4.a%x6i_,N">
                                                     <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                     <value name="VALUE">
                                                       <block type="math_number" id="Mp94k[va!CmOXvpt4W`K">
                                                         <field name="NUM">7</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </statement>
                                                 <next>
                                                   <block type="controls_if" id="18Hk:~#YqSNq,RSc_*Z9">
                                                     <value name="IF0">
                                                       <block type="logic_compare" id="Ls_eNYTE|z#+t@d4Q)Wx">
                                                         <field name="OP">GTE</field>
                                                         <value name="A">
                                                           <block type="on_source" id="FB6nt{.?z7bJKlD{kh3V">
                                                             <field name="ATTR">state.val</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="math_number" id="x^eceO7%oiRl:om{2H,]">
                                                             <field name="NUM">62.97</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <statement name="DO0">
                                                       <block type="variables_set" id=":nl8Vn5CrUpT5~$-Bnb3">
                                                         <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                         <value name="VALUE">
                                                           <block type="math_number" id="/.1Tt68tDU^rQ{h-$y=N">
                                                             <field name="NUM">8</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="controls_if" id="((8s$6Jer(LBG2Q@4W^C">
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="l0OjX!9=Bn?Tw:=0yacG">
                                                             <field name="OP">GTE</field>
                                                             <value name="A">
                                                               <block type="on_source" id="E^tZlGOa.f)2W$@X!ltL">
                                                                 <field name="ATTR">state.val</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="math_number" id="$4vUS#XZz{ay^g;FaRmT">
                                                                 <field name="NUM">75.93</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="variables_set" id="?pz:/%6d,f]gy-Yu6B{X">
                                                             <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                             <value name="VALUE">
                                                               <block type="math_number" id=";lu)keZ-2xx1;#%VOsGo">
                                                                 <field name="NUM">9</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </statement>
                                                         <next>
                                                           <block type="controls_if" id="T-:1uWST]3ktu#31O,7$">
                                                             <value name="IF0">
                                                               <block type="logic_compare" id="|Po=L*nYRwWj^X~GQ-*3">
                                                                 <field name="OP">GTE</field>
                                                                 <value name="A">
                                                                   <block type="on_source" id="a(EEhir^y|b(R#$YbFX5">
                                                                     <field name="ATTR">state.val</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <block type="math_number" id="ce6+V#Z4efr8ckx`OR2I">
                                                                     <field name="NUM">88.9</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <statement name="DO0">
                                                               <block type="variables_set" id="#{sruK$6m#bO:uu^c%O.">
                                                                 <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_number" id="8Uncb0@@fe6^!;0#uKR/">
                                                                     <field name="NUM">10</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </statement>
                                                             <next>
                                                               <block type="controls_if" id="[dDg/4aZI3s`#%:b`p*y">
                                                                 <value name="IF0">
                                                                   <block type="logic_compare" id="bi}ZP#1.*;;|($95sl!K">
                                                                     <field name="OP">GTE</field>
                                                                     <value name="A">
                                                                       <block type="on_source" id="]~9O}bhfPZHS/1E-{FIC">
                                                                         <field name="ATTR">state.val</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <block type="math_number" id="?yRvnKRrRs]EsJ+N,0bX">
                                                                         <field name="NUM">103.71</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <statement name="DO0">
                                                                   <block type="variables_set" id="jb9e#.axRroH!59J8k6]">
                                                                     <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                                     <value name="VALUE">
                                                                       <block type="math_number" id="jbEh0bZiwg=I:DAU,c8U">
                                                                         <field name="NUM">11</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </statement>
                                                                 <next>
                                                                   <block type="controls_if" id="L]QHiJs,CtJ8geI,6bL#">
                                                                     <value name="IF0">
                                                                       <block type="logic_compare" id="C/UoFUZ)V%RKR@1;#C`z">
                                                                         <field name="OP">GTE</field>
                                                                         <value name="A">
                                                                           <block type="on_source" id="PoM:DPxrjAvMw^gVbi8[">
                                                                             <field name="ATTR">state.val</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="B">
                                                                           <block type="math_number" id="myjj7u38^R%87Zm8?S8X">
                                                                             <field name="NUM">118.53</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <statement name="DO0">
                                                                       <block type="variables_set" id="D^z~=:o`@2XeW*MunK?Y">
                                                                         <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                                         <value name="VALUE">
                                                                           <block type="math_number" id="xK{F_1_A,{O)nvd5qkO-">
                                                                             <field name="NUM">12</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </statement>
                                                                     <next>
                                                                       <block type="update" id="CdkeG}|s6-$/f~6^33-#">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                         <field name="OID">Object ID</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="variables_get" id="`(Mv0tFygD8l{CPf`7Il">
                                                                             <field name="VAR" id="ID2`D,:UL1IR$5Qn8.-O">beaufort</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
               <block type="comment" id="!pvOxzi007MmLdM2b9sM" x="363" y="113">
                 <field name="COMMENT">Windgeschwindigkeit in km/h</field>
               </block>
              </xml>
              

              1 Reply Last reply Reply Quote 0
              • K
                karstent last edited by

                oh prima, danke. Also doch einen Denkfehler gehabt 🙂

                S 1 Reply Last reply Reply Quote 0
                • S
                  saeft_2003 Most Active @karstent last edited by

                  @karstent

                  gefällt mir sehr gut. Kannst du mir bitte mal zeigen wie das Anemometer an die NodeMCU angeschlossen wird?

                  1 Reply Last reply Reply Quote 0
                  • S
                    saeft_2003 Most Active @karstent last edited by

                    @karstent

                    ich habe nun mein Anemometer auch bekommen und es würde mir sehr helfen wenn du mir kurz sagen könntest wie du dieses an die NodeMCU angeschlossen hast?

                    1 Reply Last reply Reply Quote 0
                    • K
                      karstent last edited by karstent

                      Fehler beim erstellen

                      1 Reply Last reply Reply Quote 0
                      • K
                        karstent last edited by

                        Du kannst Dir dafür einen Pin ( in meinem Fall D6) aussuchen und den anderen an Ground. Wichtig ist das in espeasy nur die ersten 4 Tasks den Pulscounter unterstützen. Also unter Devices Task 1-4 einen Auswählen und Pulscounter auswählen.
                        Vorher unter Hartware den D6 auf Input stellen.

                        IMG_2313.jpg IMG_2312.jpg IMG_2311.jpg

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          saeft_2003 Most Active @karstent last edited by

                          @karstent

                          ok danke. hast du mal ein Bild wie du die NodeMCU mit dem Windmesser verdrahtet hast?

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            karstent @saeft_2003 last edited by

                            ein Bild habe ich leider nicht. Du musst einfach nur die eine Ader an (z.B. D& ) und die ander Ader an Ground vom NodeMCU. Mehr musst du nicht machen und dann so konfigurieren wie oben angegeben.

                            S 2 Replies Last reply Reply Quote 0
                            • S
                              saeft_2003 Most Active @karstent last edited by

                              @karstent

                              ok danke für die info. Das heißt dann kann ich mir den widerstand und den kondensator sparen...

                              IMG_2187.JPG

                              K 1 Reply Last reply Reply Quote 0
                              • S
                                saeft_2003 Most Active @karstent last edited by

                                @karstent

                                Hast du die Berechnung von den kmh hinbekommen?

                                1 Reply Last reply Reply Quote 0
                                • K
                                  karstent @saeft_2003 last edited by

                                  @saeft_2003 puh, da bich ich mir nicht sicher ob Deine Lösung nicht besser ist.
                                  Ich habe mich daran orientiert ( Seite ganz unten)
                                  http://wiki.gorjup.de/doku.php?id=public:fhem_wetterstation#webinterface

                                  Die Berechnung ruht noch. Habe mich noch nicht weiter damit beschäftigt.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    saeft_2003 Most Active @karstent last edited by

                                    @karstent

                                    Ich mache zum Test jetzt die kmh berechnung nach deiner Formel. Beim test kommen auch plausible kmh dabei raus.

                                    Aber es wird sich erst zeigen wenn der windmesser wirklich im Einsatz ist.

                                    CCE5FE85-5650-4A3F-8C1C-4AF0B3F49173.jpeg

                                    K 1 Reply Last reply Reply Quote 0
                                    • S
                                      saeft_2003 Most Active last edited by saeft_2003

                                      Mein windmesser ist seit heute Mittag in Betrieb und es kommen doch plausible Windgeschwindigkeiten (kmh) dabei herraus.

                                      Die grüne und rote Kurve ist sind Daten von einer echten Wetterstation und die bläuliche Kurve ist die von meinem Windmesser.

                                      Unbenannt.jpg

                                      IMG_2309.JPG

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        karstent @saeft_2003 last edited by

                                        @saeft_2003
                                        Ich würde gerne mal dein blockly für die Windgeschwindigkeit testen. Wäre es möglich dieses für mich zu exportieren 🙂
                                        Danke

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          saeft_2003 Most Active @karstent last edited by

                                          @karstent

                                          Kann ich schon machen aber im Moment komme ich nicht dazu. Ich glaube du bist schneller wenn du es einfach nachbaust. Ist ja in 5-10 min erledigt...

                                          K 1 Reply Last reply Reply Quote 0
                                          • K
                                            karstent @saeft_2003 last edited by

                                            @saeft_2003 Habe jetzt mal das Script nachgebaut, allerdings kommen da bei mir unrealistische Werte an. Immer irgendwas über 200 Muss ich irgendeinen Wert resetten?
                                            kmh.JPG

                                            S 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            844
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            wettersation
                                            4
                                            25
                                            3277
                                            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