Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Ping Adapter - MPD Player - Musik automatisch starten und stoppen

    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

    Ping Adapter - MPD Player - Musik automatisch starten und stoppen

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

      Hallo,

      ich habe den Ping-Adapter installiert und habe die IP-Adresse von meinem Handy und die IP von dem Handy meiner Freundin hinzugefügt.

      Desweiteren habe ich die den Musik-Player MPD erfolgreich installiert.

      Sobald sich mein Handy im WLAN einwählt soll der MPD-Player automatisch starten, sobald ich das Haus verlasse und und somit auch kein WLAN mehr habe, soll der MPD-Player stoppen.

      Das klappt mit meinem Handy auch super derzeit.

      Jetzt möchte ich aber noch zusätzlich das Handy meiner Freundin hinzufügen.

      Ich bekomme das Skript leider nicht angepasst.

      Also, wenn ich zu Hause bin startet die Musik über den MPD-Player, wenn meine Freundin nach Hause kommt, läuft der MPD-Player ja schon und es muss nichts geschehen. Wenn ich das Haus verlasse, soll ebenfalls nichts passieren, da meine Freundin ja noch zu Hause ist. Sobald sie das Haus verlässt, dann soll der MPD-Player stoppen.

      Hier mal mein bisheriges Skript für mein Handy.

      Es wäre nett, wenn ihr mir helfen könntet. Danke schon mal.

      Skript.JPG

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <block type="on" id="IF:L)/OlWx|9MkLU..}B" x="-512" y="-213">
          <field name="OID">ping.0.ioBroker-RasPi.192_168_178_35</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="_0*k%JdKf23sQc076KVO">
                      <field name="ATTR">val</field>
                      <field name="OID">ping.0.ioBroker-RasPi.192_168_178_35</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="I}Zzmts#=j{i`e(}whQ,">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="p)NNq0O@oTT4jzW=lnZh">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">mpd.0.play</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="SGs#kdn4GT_^=dq(:C0j">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="ClITMHuSxVU8M)lyc/~Z">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">mpd.0.volume</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="9~XM:0vBQK_41NLoL%3Z">
                          <field name="NUM">87</field>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id="ZOJ%Ih;,/o0Q1[CbP|/F">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="m*)H-#Zp0?XXn=}4b`F!">
                      <field name="ATTR">val</field>
                      <field name="OID">ping.0.ioBroker-RasPi.192_168_178_35</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="X+fN[vm)Y[]k1WGx%Ydb">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="control" id="w18KM3j(5Q?yO||0RT=r">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">mpd.0.stop</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="oe~+[NgL6ifdx.AuWe~N">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      447
      Online

      31.9k
      Users

      80.2k
      Topics

      1.3m
      Posts

      1
      1
      229
      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