NEWS
Feueralarm mit Hinweiß Ton und Ansage
-
Frohe Weihnachten zusammen.
möchte ein neues Blockyscript vorstellen.
Was kann dies Script?
Es ermöglicht das Abspielen von Musik Titel die auf Spotify vorhanden sind , in meinen falle einen Hinweiß Ton bei Eingabe von "Feuer" in mein Telegrambot. Nach Eingang der Meldung erhalte ich eine Nachricht zurück! im Telegram "Feueralarm eingegangen" gleichzeitig
wird ein Hinweiß Ton abgespielt und die durchsage von Alexa gestartet:Feuer Alarm ausgelöst ! Bitte Räumen sie das Gebäude!
Feuer Alarm ausgelöst ! Bitte Räumen sie das Gebäude!Fantastische Fanfare - Sounddesign Sound Effekte Anruf Ton – Klingeltöne
https://open.spotify.com/track/2KHUefA6Fm8aouozqRFzx4?si=e59roURrT9GUF6EomdhNEA
Blockly Code:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="g5Y.qL?5__h:,xX$7nQX">Letzter_Absender</variable> <variable type="" id="qbGC%wHbB?|]U9?],#jO">Letzter_Text_klein</variable> <variable type="" id="4*JWCSjrA-7X.@fw5}so">2KHUefA6Fm8aouozqRFzx4</variable> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id="!8B]z7wO)w*bD^7(714W" x="-512" y="-637"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="J=/9IeQnq:FSa`bM5)PG"> <field name="oid">default</field> </shadow> <block type="field_oid" id="GDubi_#J2DI7*n0ep|.D"> <field name="oid">telegram.0.communicate.request</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="]EG:a%w@A4%I)H(fD^K,"> <value name="IF0"> <block type="logic_operation" id="?-NKEu./;)0;R}cqYW;M" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="eQR3DPA65Ci_~CAz/Af["> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="w,#25-Qu~W183AA.g^S@"> <field name="VAR" id="g5Y.qL?5__h:,xX$7nQX" variabletype="">Letzter_Absender</field> </block> </value> <value name="B"> <block type="text" id="KXSs7XVyifzf@{oXfeD{"> <field name="TEXT">Jan</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="HPe0Lt?p5+*nfr7LHuVn" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="=IM{d=@Wh+Mw?Fdexn78"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id=";AzyRgiy^9lBYB93yh5d"> <field name="VAR" id="qbGC%wHbB?|]U9?],#jO" variabletype="">Letzter_Text_klein</field> </block> </value> <value name="B"> <block type="text" id="pqT4eE0u{unJq+JF#cTK"> <field name="TEXT">feuer</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="l*wu*d1FlrZIA*1{*SO2"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="vjdQQ?EgzG*F_}3ve,:q"> <field name="VAR" id="qbGC%wHbB?|]U9?],#jO" variabletype="">Letzter_Text_klein</field> </block> </value> <value name="B"> <block type="text" id="w@`#XN0}uC|^RDQXJym?"> <field name="TEXT">Feuer</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="comment" id="_G6mo:/RO!f2WI,TDkkB"> <field name="COMMENT">Lautstärke vom Hinweiß Ton</field> <next> <block type="control" id="W(hT,khO@JPd(G3W;`o9"> <mutation delay_input="false"></mutation> <field name="OID">spotify-premium.0.devices.fc06e7008ddbd226f2c57af67f77615d153f97f0.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="Ovricp#J2@t[{gjhrqOF"> <field name="TEXT">80</field> </block> </value> <next> <block type="comment" id="]:4gb{6y=1mLPh8bjgTH"> <field name="COMMENT">Spotify Gerät auswahl ( Bei mir Überall)</field> <next> <block type="control" id="**AF=sbe2rA#hqx|vLI2"> <mutation delay_input="false"></mutation> <field name="OID">spotify-premium.0.devices.fc06e7008ddbd226f2c57af67f77615d153f97f0.useForPlayback</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="spg09Ye0T-Gq]QB0=:yF"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="zA5!lOgSoWwGf!1Sp$SX"> <field name="COMMENT">Hinweiß Ton ! Track ID steht im LINK "2KHUefA6Fm8aouozqRFzx4 "</field> <next> <block type="controls_if" id="!2;N?SD:^$js.d#~]@_Y"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="qegKZVf3xp-,)Tsr{zi]"> <field name="OP">AND</field> <value name="A"> <block type="get_value" id="(Occ@GM^9-W?by8RmN=^"> <field name="ATTR">val</field> <field name="OID">spotify-premium.0.player.trackId</field> </block> </value> <value name="B"> <block type="variables_get" id="4@^oBp(0;n7KKcNWr|Ay"> <field name="VAR" id="4*JWCSjrA-7X.@fw5}so" variabletype="">2KHUefA6Fm8aouozqRFzx4</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="g[K{hf_:i_!gjMh1tk[_"> <mutation delay_input="false"></mutation> <field name="OID">spotify-premium.0.player.play</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="p5a@(z.G+tLAm[M%mZ*-"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="[9wFD76sV|Zpm,%/m9Ti"> <mutation delay_input="false"></mutation> <field name="OID">spotify-premium.0.player.trackId</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="zb,h#RO(Fyf;L4pgG_be"> <field name="TEXT">2KHUefA6Fm8aouozqRFzx4</field> </block> </value> </block> </statement> <next> <block type="comment" id="4L!q8_Y:*rILGowR;,tC"> <field name="COMMENT">Sprachansage per Alexa mit 2 Sek verzögerung</field> <next> <block type="control" id="#UF~aSK%@g=rL}rF2IYg"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.efd5228c8d3349c28eb4ad6c625a4d51.Commands.speak</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text_join" id="0buM})Xu[rq[6a^PNOXr"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="{~OI#n-Bgkq+/Um6zlrn"> <field name="TEXT">Es wurde Feuer Alarm ausgelöst !</field> </block> </value> <value name="ADD1"> <block type="text" id="OqGi/{EVC)*B~dJ96A*k"> <field name="TEXT">Es wurde Feuer Alarm ausgelöst !</field> </block> </value> </block> </value> <next> <block type="control" id=",=.TqJWL3Abi`hj-|qSQ"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.efd5228c8d3349c28eb4ad6c625a4d51.Commands.speak</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text_join" id="qZ{IJPd{$nrL~B-,2|b{"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="`q;poBqmt$|W!:d[hu#b"> <field name="TEXT">Es wurde Feuer Alarm ausgelöst !</field> </block> </value> <value name="ADD1"> <block type="text" id="]_QtF~Y%nVV;84jwFcbH"> <field name="TEXT">Es wurde Feuer Alarm ausgelöst !</field> </block> </value> </block> </value> <next> <block type="timeouts_settimeout" id="yw:(ZR6X3%Ap8$U1PPZq"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="comment" id="!IUikqk8=gw.!Oe/=xev"> <field name="COMMENT">Nachrich an Telgram </field> <next> <block type="telegram" id="k@u)~Jff_%b3:5:BKu`,"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="|cD=./$Vq%o6nvIsX_m."> <field name="TEXT">Feuer Meldung eingegangen!</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>