Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Einsteigerfragen
  4. Pythonaufrufe per Blockly

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.2k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

Pythonaufrufe per Blockly

Geplant Angeheftet Gesperrt Verschoben Einsteigerfragen
9 Beiträge 4 Kommentatoren 321 Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • T Offline
    T Offline
    tklein
    schrieb am zuletzt editiert von
    #1

    Hallo,

    wie kann ich die Eingabe von einem Python3 Aufruf nebst Eingabe in der Shell in Blockly per exce simulieren?

    Hintergrund: Durch die Nutzung von der Geckolib (https://github.com/gazoodle/geckolib) kann ich meinen Whirlpool steuern. Über die Kommandozeile / Geckoshell klappt das. Nun möchte ich das am liebsten per Blockly triggern. Zur Not ginge auch ein JS-Script. Wobei ch das noch nie selbst geschrieben habe.

    Mein erfolgloses Blockly sieht so aus:

    7764b625-b58b-4398-b924-8777672eda65-grafik.png

    Hier die Logausgabe:

    javascript.0 (20560) script.js.common.Draussen.Wellis_Whirlpool.Spa_Test: exec: python3 from geckolib import GeckoShell GeckoShell.run() LI ON
    

    Aber es passiert nix am Whirlpool.

    So sieht der Aufruf in der Konsole aus:

    pi@raspberrypi-iob:~ $ python3
    Python 3.7.3 (default, Jan 22 2021, 20:04:44)
    [GCC 8.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.

    from geckolib import GeckoShell
    GeckoShell.run()

        <Disclaimer>
        ----------------------------- USE AT YOUR OWN RISK -----------------------------
    
        This code will allow you to make changes to your spa configuration that is
        outside of what the app, top panel and side panel settings allow. I've not
        tested every setting and it might be that you prevent your spa pack from
        operating as it used to do.
    
        I strongly suggest dumping the configuration values with the "config" command
        and recording them somewhere safe.
    
        </Disclaimer>
    

    Starting discovery process...Found 1 spas
    Connecting to spa Wellness at 192.168.0.167 ... connected!
    Heater: Temperature 37.5°C, SetPoint 37.5°C, Real SetPoint 37.5°C, Operation Idle
    Pump 2: OFF
    Pump 1: OFF
    Waterfall: ON
    Lights: OFF
    WaterCare: Waiting...
    Smart Winter Mode:Risk: NO
    Circulating Pump: ON
    Ozone: OFF
    Smart Winter Mode:Active: False
    Filter Status:Clean: True
    Filter Status:Purge: False
    Economy Mode: False
    Welcome to the Gecko shell. Type help or ? to list commands.

    DJMarc75D 1 Antwort Letzte Antwort
    0
    • T tklein

      Hallo,

      wie kann ich die Eingabe von einem Python3 Aufruf nebst Eingabe in der Shell in Blockly per exce simulieren?

      Hintergrund: Durch die Nutzung von der Geckolib (https://github.com/gazoodle/geckolib) kann ich meinen Whirlpool steuern. Über die Kommandozeile / Geckoshell klappt das. Nun möchte ich das am liebsten per Blockly triggern. Zur Not ginge auch ein JS-Script. Wobei ch das noch nie selbst geschrieben habe.

      Mein erfolgloses Blockly sieht so aus:

      7764b625-b58b-4398-b924-8777672eda65-grafik.png

      Hier die Logausgabe:

      javascript.0 (20560) script.js.common.Draussen.Wellis_Whirlpool.Spa_Test: exec: python3 from geckolib import GeckoShell GeckoShell.run() LI ON
      

      Aber es passiert nix am Whirlpool.

      So sieht der Aufruf in der Konsole aus:

      pi@raspberrypi-iob:~ $ python3
      Python 3.7.3 (default, Jan 22 2021, 20:04:44)
      [GCC 8.3.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.

      from geckolib import GeckoShell
      GeckoShell.run()

          <Disclaimer>
          ----------------------------- USE AT YOUR OWN RISK -----------------------------
      
          This code will allow you to make changes to your spa configuration that is
          outside of what the app, top panel and side panel settings allow. I've not
          tested every setting and it might be that you prevent your spa pack from
          operating as it used to do.
      
          I strongly suggest dumping the configuration values with the "config" command
          and recording them somewhere safe.
      
          </Disclaimer>
      

      Starting discovery process...Found 1 spas
      Connecting to spa Wellness at 192.168.0.167 ... connected!
      Heater: Temperature 37.5°C, SetPoint 37.5°C, Real SetPoint 37.5°C, Operation Idle
      Pump 2: OFF
      Pump 1: OFF
      Waterfall: ON
      Lights: OFF
      WaterCare: Waiting...
      Smart Winter Mode:Risk: NO
      Circulating Pump: ON
      Ozone: OFF
      Smart Winter Mode:Active: False
      Filter Status:Clean: True
      Filter Status:Purge: False
      Economy Mode: False
      Welcome to the Gecko shell. Type help or ? to list commands.

      DJMarc75D Offline
      DJMarc75D Offline
      DJMarc75
      schrieb am zuletzt editiert von DJMarc75
      #2

      @tklein sagte in Pythonaufrufe per Blockly:

      GeckoShell.run()

      Nicht schön, aber ein Versuch ists mal Wert: funktioniert leider nicht !!

      Screenshot 2022-12-28 124356.png

      Lehrling seit 1975 !!!
      Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
      https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

      haus-automatisierungH 1 Antwort Letzte Antwort
      0
      • DJMarc75D DJMarc75

        @tklein sagte in Pythonaufrufe per Blockly:

        GeckoShell.run()

        Nicht schön, aber ein Versuch ists mal Wert: funktioniert leider nicht !!

        Screenshot 2022-12-28 124356.png

        haus-automatisierungH Online
        haus-automatisierungH Online
        haus-automatisierung
        Developer Most Active
        schrieb am zuletzt editiert von
        #3

        @djmarc75 So funktioniert das nicht. So wird jeder einzelne Befehl von /bin/sh ausgeführt.

        Am einfachsten ist es ein python Script anzulegen und das auszuführen

        🧑‍🎓 Autor des beliebten ioBroker-Master-Kurses
        🎥 Tutorials rund um das Thema DIY-Smart-Home: https://haus-automatisierung.com/
        📚 Meine inoffizielle ioBroker Dokumentation

        DJMarc75D T 2 Antworten Letzte Antwort
        0
        • haus-automatisierungH haus-automatisierung

          @djmarc75 So funktioniert das nicht. So wird jeder einzelne Befehl von /bin/sh ausgeführt.

          Am einfachsten ist es ein python Script anzulegen und das auszuführen

          DJMarc75D Offline
          DJMarc75D Offline
          DJMarc75
          schrieb am zuletzt editiert von
          #4

          @haus-automatisierung sagte in Pythonaufrufe per Blockly:

          So funktioniert das nicht. So wird jeder einzelne Befehl von /bin/sh ausgeführt.

          Da hast Du Recht - Denkfehler von mir !

          Lehrling seit 1975 !!!
          Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
          https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

          1 Antwort Letzte Antwort
          0
          • haus-automatisierungH haus-automatisierung

            @djmarc75 So funktioniert das nicht. So wird jeder einzelne Befehl von /bin/sh ausgeführt.

            Am einfachsten ist es ein python Script anzulegen und das auszuführen

            T Offline
            T Offline
            tklein
            schrieb am zuletzt editiert von
            #5

            @haus-automatisierung

            danke für den hinweis,

            dann bekomme ich folgendes:

            pi@raspberrypi-iob:~/wellis $ python test.py
              File "test.py", line 5
                LI ON
                    ^
            
            

            Hier der Dateiinhalt:

            from geckolib import GeckoShell
            GeckoShell.run()
            LI ON
            

            Falls das läuft, kann ich ja die Geräte (Licht, Pumpe 1 etc) sowie die Schaltaktion (an/aus/tempwert) bestimmt als parameter beim aufruf mit übergeben

            T 1 Antwort Letzte Antwort
            0
            • T tklein

              @haus-automatisierung

              danke für den hinweis,

              dann bekomme ich folgendes:

              pi@raspberrypi-iob:~/wellis $ python test.py
                File "test.py", line 5
                  LI ON
                      ^
              
              

              Hier der Dateiinhalt:

              from geckolib import GeckoShell
              GeckoShell.run()
              LI ON
              

              Falls das läuft, kann ich ja die Geräte (Licht, Pumpe 1 etc) sowie die Schaltaktion (an/aus/tempwert) bestimmt als parameter beim aufruf mit übergeben

              T Offline
              T Offline
              tklein
              schrieb am zuletzt editiert von tklein
              #6

              wenn ich das "LI ON" auskommentiere, wird etwas ausgeführt. Ein sleep hat auch nix gebracht.

              Skript:

              import sys
              import time
              
              # test argv by commandline
              print(sys.argv[1])
              time.sleep(1)
              print(sys.argv[2])
              
              
              #call of python
              from geckolib import GeckoShell
              GeckoShell.run()
              time.sleep(8)
              #print("LI ON")
              #LI ON
              
              

              Ausgabe bei Aufruf:

              pi@raspberrypi-iob:~/wellis $ python3 test.py aber hallo
              aber
              hallo
              
              
                      <Disclaimer>
                      ----------------------------- USE AT YOUR OWN RISK -----------------------------
              
                      This code will allow you to make changes to your spa configuration that is
                      outside of what the app, top panel and side panel settings allow. I've not
                      tested every setting and it might be that you prevent your spa pack from
                      operating as it used to do.
              
                      I strongly suggest dumping the configuration values with the "config" command
                      and recording them somewhere safe.
              
                      </Disclaimer>
              
              
              Starting discovery process...Found 1 spas
              Connecting to spa `Wellness` at 192.168.0.167 ... connected!
              Heater: Temperature 37.5°C, SetPoint 37.5°C, Real SetPoint 37.5°C, Operation Idle
              Pump 1: OFF
              Pump 2: OFF
              Waterfall: OFF
              Lights: HI
              WaterCare: Waiting...
              Smart Winter Mode:Risk: NO
              Circulating Pump: OFF
              Ozone: OFF
              Smart Winter Mode:Active: False
              Filter Status:Clean: False
              Filter Status:Purge: False
              Economy Mode: False
              Welcome to the Gecko shell. Type help or ? to list commands.
              
              Wellness$
              
              

              Evtl weil ich da in einer Shell (Wellness) in der Pythonshell drin bin?

              OliverIOO 1 Antwort Letzte Antwort
              0
              • T tklein

                wenn ich das "LI ON" auskommentiere, wird etwas ausgeführt. Ein sleep hat auch nix gebracht.

                Skript:

                import sys
                import time
                
                # test argv by commandline
                print(sys.argv[1])
                time.sleep(1)
                print(sys.argv[2])
                
                
                #call of python
                from geckolib import GeckoShell
                GeckoShell.run()
                time.sleep(8)
                #print("LI ON")
                #LI ON
                
                

                Ausgabe bei Aufruf:

                pi@raspberrypi-iob:~/wellis $ python3 test.py aber hallo
                aber
                hallo
                
                
                        <Disclaimer>
                        ----------------------------- USE AT YOUR OWN RISK -----------------------------
                
                        This code will allow you to make changes to your spa configuration that is
                        outside of what the app, top panel and side panel settings allow. I've not
                        tested every setting and it might be that you prevent your spa pack from
                        operating as it used to do.
                
                        I strongly suggest dumping the configuration values with the "config" command
                        and recording them somewhere safe.
                
                        </Disclaimer>
                
                
                Starting discovery process...Found 1 spas
                Connecting to spa `Wellness` at 192.168.0.167 ... connected!
                Heater: Temperature 37.5°C, SetPoint 37.5°C, Real SetPoint 37.5°C, Operation Idle
                Pump 1: OFF
                Pump 2: OFF
                Waterfall: OFF
                Lights: HI
                WaterCare: Waiting...
                Smart Winter Mode:Risk: NO
                Circulating Pump: OFF
                Ozone: OFF
                Smart Winter Mode:Active: False
                Filter Status:Clean: False
                Filter Status:Purge: False
                Economy Mode: False
                Welcome to the Gecko shell. Type help or ? to list commands.
                
                Wellness$
                
                

                Evtl weil ich da in einer Shell (Wellness) in der Pythonshell drin bin?

                OliverIOO Offline
                OliverIOO Offline
                OliverIO
                schrieb am zuletzt editiert von OliverIO
                #7

                @tklein
                Das funktioniert so nicht.
                Gibt es da nur die interaktive Shell?
                Kein echter Shell Befehl an den man dann Parameter dran hängen kann?

                Du könntest mal folgendes probieren
                python test.py < „LI ON“

                Die beiden Anführungsstriche bitte umwandeln in normale . das Handy macht mir daraus immer die lexikalischen

                Meine Adapter und Widgets
                TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                Links im Profil

                T 1 Antwort Letzte Antwort
                0
                • OliverIOO OliverIO

                  @tklein
                  Das funktioniert so nicht.
                  Gibt es da nur die interaktive Shell?
                  Kein echter Shell Befehl an den man dann Parameter dran hängen kann?

                  Du könntest mal folgendes probieren
                  python test.py < „LI ON“

                  Die beiden Anführungsstriche bitte umwandeln in normale . das Handy macht mir daraus immer die lexikalischen

                  T Offline
                  T Offline
                  tklein
                  schrieb am zuletzt editiert von
                  #8

                  @oliverio said in Pythonaufrufe per Blockly:

                  @tklein
                  Das funktioniert so nicht.
                  Gibt es da nur die interaktive Shell?
                  Kein echter Shell Befehl an den man dann Parameter dran hängen kann?

                  Du könntest mal folgendes probieren
                  python test.py < „LI ON“

                  Die beiden Anführungsstriche bitte umwandeln in normale . das Handy macht mir daraus immer die lexikalischen

                  klappt auch leider nicht:

                  pi@raspberrypi-iob:~/wellis $ python3 test.py < "LI ON"
                  -bash: LI ON: No such file or directory
                  
                  
                  OliverIOO 1 Antwort Letzte Antwort
                  0
                  • T tklein

                    @oliverio said in Pythonaufrufe per Blockly:

                    @tklein
                    Das funktioniert so nicht.
                    Gibt es da nur die interaktive Shell?
                    Kein echter Shell Befehl an den man dann Parameter dran hängen kann?

                    Du könntest mal folgendes probieren
                    python test.py < „LI ON“

                    Die beiden Anführungsstriche bitte umwandeln in normale . das Handy macht mir daraus immer die lexikalischen

                    klappt auch leider nicht:

                    pi@raspberrypi-iob:~/wellis $ python3 test.py < "LI ON"
                    -bash: LI ON: No such file or directory
                    
                    
                    OliverIOO Offline
                    OliverIOO Offline
                    OliverIO
                    schrieb am zuletzt editiert von
                    #9

                    @tklein
                    Dann das

                    echo „LI ON“ | python text.py

                    Meine Adapter und Widgets
                    TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                    Links im Profil

                    1 Antwort Letzte Antwort
                    0
                    Antworten
                    • In einem neuen Thema antworten
                    Anmelden zum Antworten
                    • Älteste zuerst
                    • Neuste zuerst
                    • Meiste Stimmen


                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    851

                    Online

                    32.5k

                    Benutzer

                    81.7k

                    Themen

                    1.3m

                    Beiträge
                    Community
                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                    ioBroker Community 2014-2025
                    logo
                    • Anmelden

                    • Du hast noch kein Konto? Registrieren

                    • Anmelden oder registrieren, um zu suchen
                    • Erster Beitrag
                      Letzter Beitrag
                    0
                    • Home
                    • Aktuell
                    • Tags
                    • Ungelesen 0
                    • Kategorien
                    • Unreplied
                    • Beliebt
                    • GitHub
                    • Docu
                    • Hilfe