@dr-bakterius sagte in [Gelöst]NETATMO Daten per URL an weatherunderground senden :
@kusselin Aufgrund deiner PN-Anfrage, hier der Export vom Blockly:
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="]GCTzQNWjzsa~f{Khj,Z">ID</variable>
<variable id="Jmlhk@~$S.Tdt1(G/,:?">Key</variable>
<variable id="imicwCF`tA-E?_VXg|+x">Temperatur</variable>
<variable id="_9XTWH`rcZu?GdAgnzb+">Taupunkt</variable>
<variable id="6|d+vWc+mY*3a;7a:AL4">Windrichtung</variable>
<variable id="_;VqgDK#GB0M)Nt#ar7L">Windstärke</variable>
<variable id="0O{#R?OFN(8Xuezg3J8[">Windspitzen</variable>
<variable id="geD20Z_Jnk}G8EZ6dWby">Luftfeuchtigkeit</variable>
<variable id="X_#E7%``6nH?S#x5hxyH">Luftdruck</variable>
<variable id="v*fBf$05)e.iF#YueDZ-">Regenmenge</variable>
<variable id="m}h]Q(bCz.Lb=iYWi[D+">Regen heute</variable>
<variable id="i%PT4#U6H(s*@W3Z*s}m">LINK</variable>
</variables>
<block type="comment" id="=C!r#^A{|:vi)fqq,ng1" x="-413" y="-138">
<field name="COMMENT">Wetterwerte alle 15 Minuten an Weather Underground melden</field>
<next>
<block type="schedule" id="RB:*smh22]ppPW!]H{=m">
<field name="SCHEDULE">0,15,30,45 * * * *</field>
<statement name="STATEMENT">
<block type="variables_set" id="*6rR9@MK?q1alkQXU/5D">
<field name="VAR" id="]GCTzQNWjzsa~f{Khj,Z">ID</field>
<value name="VALUE">
<block type="text" id="%?5pIXN*qSK,4dD+g{f8">
<field name="TEXT">Deine ID</field>
</block>
</value>
<next>
<block type="variables_set" id="Ih]_dpt%E@65!@9=C[l?">
<field name="VAR" id="Jmlhk@~$S.Tdt1(G/,:?">Key</field>
<value name="VALUE">
<block type="text" id="W0s)#X{0~NnwcMK5h/SC">
<field name="TEXT">Dein Key</field>
</block>
</value>
<next>
<block type="comment" id="uW$_e^.(`B*}@~)V%ox5">
<field name="COMMENT">Temp in °F umrechnen</field>
<next>
<block type="variables_set" id="SvKr(A!O@pj!F:^axro/">
<field name="VAR" id="imicwCF`tA-E?_VXg|+x">Temperatur</field>
<value name="VALUE">
<block type="math_arithmetic" id="):G%mi7WvHDx[0mY0Ol4">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="TkujFSuU)b[x@VsT`xNC">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="t?)M6P`kI.u-kietyLXn">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="g;,r1qsb7vW`H;=2=%dh">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="DRFEaIWCC+7XZA%9-}{u">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Temperatur [°C]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id=",z}oG1w~nUCSV!If]mMQ">
<field name="NUM">1.8</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id=",n4M=5?%_hWgs^Rl6!m!">
<field name="NUM">32</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="variables_set" id="QLSIJF.Hb4OH_}(=*N0+">
<field name="VAR" id="_9XTWH`rcZu?GdAgnzb+">Taupunkt</field>
<value name="VALUE">
<block type="math_arithmetic" id="kw+d-RbDWrd#EIxaxnHP">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="b:F^kM|P3ciyv]5qOYga">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="f|!)njtt0=i;t78nG?}u">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Taupunkt [°C]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="0k;-)={k,rVSx1CV/v-B">
<field name="NUM">1.8</field>
</shadow>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="$@.T)[qwU2]WTl}nF5:7">
<field name="NUM">32</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="comment" id="@-d^}sIRZsolCSej}UTq">
<field name="COMMENT">Windrichtung in ° umwandeln</field>
<next>
<block type="variables_set" id="[2XTaUY#qj_CncMi(ech">
<field name="VAR" id="6|d+vWc+mY*3a;7a:AL4">Windrichtung</field>
<value name="VALUE">
<block type="get_value" id="Z[:tjH]*vr!xKdzm%y53">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Windrichtung [Grad]</field>
</block>
</value>
<next>
<block type="comment" id="?A_fT;4cgn6Ms3fwY}RN">
<field name="COMMENT">Windstärke in mph umrechnen</field>
<next>
<block type="variables_set" id="FPN:77YPi#tH:`;fFX/_">
<field name="VAR" id="_;VqgDK#GB0M)Nt#ar7L">Windstärke</field>
<value name="VALUE">
<block type="math_arithmetic" id="._9Dp!m]zA9GnH+:D5z2">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="PjxcTtcZX!|0y,Yo6S6o">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="`#]Vb.r3TKttXFkGBk5}">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Windgeschwindigkeit [km/h]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="xY;@b{M.9]Cz|5p!h-Zv">
<field name="NUM">0.621</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="variables_set" id="H|yjNdeCO3[pik$^RkGf">
<field name="VAR" id="0O{#R?OFN(8Xuezg3J8[">Windspitzen</field>
<value name="VALUE">
<block type="math_arithmetic" id="i+7%oO.%n.=$HcD!n?T/">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="w}(I?e33Bj%%miHFiPyk">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Windböhen [km/h]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id=",T~y=RYn`+%:=U,Ha7kv">
<field name="NUM">0.621</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="comment" id="a.eV~EOu2#YnbV{fi*Ku">
<field name="COMMENT">Luftdr. und Regen in inch umrechnen</field>
<next>
<block type="variables_set" id="w;_y`q!*0K2s}??zO}bk">
<field name="VAR" id="geD20Z_Jnk}G8EZ6dWby">Luftfeuchtigkeit</field>
<value name="VALUE">
<block type="get_value" id="F97SYB~8g=w}XslG:JT!">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Luftfeuchtigkeit [rel%]</field>
</block>
</value>
<next>
<block type="variables_set" id="MJ:.2|YlwlP.*9APVMfV">
<field name="VAR" id="X_#E7%``6nH?S#x5hxyH">Luftdruck</field>
<value name="VALUE">
<block type="math_arithmetic" id="eXVeUyAAZ,YQ%6b2x,4z">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="@r)]#,1FsMS6rUJkA8$#">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="8/b?8=c.pAp)4$=Y/wFK">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Luftdruck [hPa]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="6#dvpGt`26{`M?1h,H*`">
<field name="NUM">0.0295301</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="variables_set" id="@BKYCp!]sOKUe/BfoO}R">
<field name="VAR" id="v*fBf$05)e.iF#YueDZ-">Regenmenge</field>
<value name="VALUE">
<block type="math_arithmetic" id="Z;_WUrJBoCV^VsC(=-+r">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="bBO#Hu[lNHzUxn$]N9p.">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="Q@AMvz!lu4($t@5#5ASt">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Niederschlag aktuell [mm]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id=":LrgUgw(mC3VxT0L-*?$">
<field name="NUM">0.039370078740157</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="variables_set" id="gfcl*ch~XWX^]p;;R~DG">
<field name="VAR" id="m}h]Q(bCz.Lb=iYWi[D+">Regen heute</field>
<value name="VALUE">
<block type="math_arithmetic" id="QbNy0p*9:3QU*y9nV4~*">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="LR;w7tA[_3YqI}mRtg9X">
<field name="ATTR">val</field>
<field name="OID">Datenpunkt Niederschlag heute [mm]</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id=".^#R9*9.VO3YvIZ2byB.">
<field name="NUM">0.039370078740157</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="comment" id="#)kp[hcr~30UlI#{}brG">
<field name="COMMENT">Link zusammenstellen</field>
<next>
<block type="variables_set" id="XI/v0K?5ouF3Sie:E%7w">
<field name="VAR" id="i%PT4#U6H(s*@W3Z*s}m">LINK</field>
<value name="VALUE">
<block type="text_join" id="WIo]Lt{))}XCsHEy5XK3">
<mutation items="23"></mutation>
<value name="ADD0">
<block type="text" id="1s-9S|6xbG[de-6N[T:m">
<field name="TEXT">https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="5%6F5}NQ!hQFT8C}],nH">
<field name="VAR" id="]GCTzQNWjzsa~f{Khj,Z">ID</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="dT(Tuz!-ZI5q_^/L)I3{">
<field name="TEXT">&PASSWORD=</field>
</block>
</value>
<value name="ADD3">
<block type="variables_get" id="ad0)i.5oQ*IqIoOE@*Z9">
<field name="VAR" id="Jmlhk@~$S.Tdt1(G/,:?">Key</field>
</block>
</value>
<value name="ADD4">
<block type="text" id="NI*$rzuP@^_D,r6U@]:0">
<field name="TEXT">&dateutc=now&tempf=</field>
</block>
</value>
<value name="ADD5">
<block type="variables_get" id="(7pW*hjLuA{-kN`pey5R">
<field name="VAR" id="imicwCF`tA-E?_VXg|+x">Temperatur</field>
</block>
</value>
<value name="ADD6">
<block type="text" id="*^Pbd4ebzbzC+J9Vsn~X">
<field name="TEXT">&dewptf=</field>
</block>
</value>
<value name="ADD7">
<block type="variables_get" id="_=v5R%/nz`%Fx|Bv!}N}">
<field name="VAR" id="_9XTWH`rcZu?GdAgnzb+">Taupunkt</field>
</block>
</value>
<value name="ADD8">
<block type="text" id="o6X0xre%.5z+VD|[@jdM">
<field name="TEXT">&baromin=</field>
</block>
</value>
<value name="ADD9">
<block type="variables_get" id="m_l7MVDK^C6O~SMk1-v9">
<field name="VAR" id="X_#E7%``6nH?S#x5hxyH">Luftdruck</field>
</block>
</value>
<value name="ADD10">
<block type="text" id="w_KuYVPnGim@g^N(8#ga">
<field name="TEXT">&humidity=</field>
</block>
</value>
<value name="ADD11">
<block type="variables_get" id="w%W,-I2cB3T{*]|9+]OL">
<field name="VAR" id="geD20Z_Jnk}G8EZ6dWby">Luftfeuchtigkeit</field>
</block>
</value>
<value name="ADD12">
<block type="text" id="HXqxm81fMiJ!?^7kG!xx">
<field name="TEXT">&winddir=</field>
</block>
</value>
<value name="ADD13">
<block type="variables_get" id="V(pe$Y;_bB0lb~N@YtQm">
<field name="VAR" id="6|d+vWc+mY*3a;7a:AL4">Windrichtung</field>
</block>
</value>
<value name="ADD14">
<block type="text" id="koQSFLv?)9x]cG52tudH">
<field name="TEXT">&windspeedmph=</field>
</block>
</value>
<value name="ADD15">
<block type="variables_get" id="iYx)P!Q$lu-g.B63xGap">
<field name="VAR" id="_;VqgDK#GB0M)Nt#ar7L">Windstärke</field>
</block>
</value>
<value name="ADD16">
<block type="text" id="Wj]b3E#]%-%Y3~t0:VN)">
<field name="TEXT">&windgustmph=</field>
</block>
</value>
<value name="ADD17">
<block type="variables_get" id="Kw0%7.eZ,RGjXbt9DXFN">
<field name="VAR" id="0O{#R?OFN(8Xuezg3J8[">Windspitzen</field>
</block>
</value>
<value name="ADD18">
<block type="text" id="Wbn34_2HeRf5b}@##(Pw">
<field name="TEXT">&rainin=</field>
</block>
</value>
<value name="ADD19">
<block type="variables_get" id="SA?t?(zbTkD-E,yj=F:v">
<field name="VAR" id="v*fBf$05)e.iF#YueDZ-">Regenmenge</field>
</block>
</value>
<value name="ADD20">
<block type="text" id="Rv@o6A`2bBg2GhRrtWEb">
<field name="TEXT">&dailyrainin=</field>
</block>
</value>
<value name="ADD21">
<block type="variables_get" id="(AamY[5S-:#%A;Y@)BM!">
<field name="VAR" id="m}h]Q(bCz.Lb=iYWi[D+">Regen heute</field>
</block>
</value>
<value name="ADD22">
<block type="text" id="F?W,H^O-P2.Owgx(B!{^">
<field name="TEXT">&action=updateraw</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="5P(V(pY`$n/yIiZZ.S7%">
<field name="COMMENT">Daten senden</field>
<next>
<block type="request" id="KXRPNkW9Mm1N|U^w47rV">
<mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
<field name="WITH_STATEMENT">FALSE</field>
<field name="LOG"></field>
<value name="URL">
<shadow type="text" id="=:tE^LdG+w=9xkM1s~Ng">
<field name="TEXT">text</field>
</shadow>
<block type="variables_get" id="(M!{cWR;a@UcsDH`1;oU">
<field name="VAR" id="i%PT4#U6H(s*@W3Z*s}m">LINK</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>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>
Du musst nur noch deine ID und den Key eintragen und deine Datenpunkte auswählen. Solche die du nicht hast, kannst du löschen (auch dort wo der Link zusammengestellt wird).
´Hi, ich bins nochmal und schreibe Dr. Bakterius auch an...
Vielen Dank für Deinen Script , aber ich habe hier Probleme....
Ab der 1. Zeile nach der URL hier steht die ID werden alle weiteren Variablen nicht übernommen, bzw. abgearbeitet deshalb habe ich auch falsche bzw. keine Werte
Wo liegt hier der Fehler?
Ich würde es gerne verstehen.....
Über ne Rückinfo herzlichen Dank.
Weiss net wie ichs erklären soll..im Script von Dir da wo der Link eingetragen ist und endet mit ID= müsste ja dann der komplette script abgeabrbeitet werden mit ID ....PASSWORD......dann dateutc .....temeperature,...usw... ich hoffe du /Ihr versteht was ich meine udn das funzt aber nicht...... mach ich da noch einen fehler....schaut mal...das sind meine Objektdaten:
die müssen natürlich übereinstimmen....helft mir bitte...passen die so mit dem Script überein?
Danke Euch