Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - Anfängerfrage - plugin.conf

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    - √ - Anfängerfrage - plugin.conf

    Ich würde gerne erstmal smartHome als I/O-Connection für die smartVISU einrichten.
    Ich verwende das Image von euch.
    Ip-Schnittstelle ist eine ABB IPS/S2.1 mit der IP 192.168.1.190
    Der RaspberryPi hat die 192.168.1.108
    eibd scheint zu funktionieren da ich die Gruppenadresse ansprechen und schalten kann
    z.B. via groupswrite ip:localhost 0/0/67 1
    Wie müsste jetzt konkret die plugin.conf aussehen?
    Ich habe schon einiges probiert. Jedoch immer ohne Erfolg. Momentan sieht sie so aus.

    Code:
    # plugin.conf
    [knx]
    class_name = KNX
    class_path = plugins.knx
    host = 127.0.0.1
    port = 6720
    # send_time = 600 # update date/time every 600 seconds, default none
    # time_ga = 1/1/1 # default none
    # date_ga = 1/1/2 # default none
    [ow]
    class_name = OneWire
    class_path = plugins.onewire
    # host = 127.0.0.1
    # port = 4304
    [cli]
    class_name = CLI
    class_path = plugins.cli
    update = True
    [visu]
    class_name = WebSocket
    class_path = plugins.visu
    # ip='0.0.0.0'
    # port=2424
    visu_dir = /var/www/smarthome
    smartvisu_dir = /var/www/smartvisu
    [rrd]
    class_name = RRD
    class_path = plugins.rrd
    step = 300
    Noch das log dazu.
    Code:
    2013-03-04 18:27:42 SmartHome.py INFO Stop Plugins
    2013-03-04 18:27:42 SmartHome.py INFO KNX: connection to 127.0.0.1:6720 closed
    2013-03-04 18:27:43 SmartHome.py INFO SmartHome.py stopped
    1970-01-01 01:01:19 SmartHome.py INFO Init SmartHome.py v0.8-4-ga53aaec
    1970-01-01 01:01:19 SmartHome.py INFO Init Scheduler
    1970-01-01 01:01:19 SmartHome.py INFO Init plugins
    1970-01-01 01:01:20 SmartHome.py INFO Init items
    1970-01-01 01:01:20 SmartHome.py INFO Start Plugins
    1970-01-01 01:01:21 sh.con INFO KNX: connected to 127.0.0.1:6720
    2013-03-04 18:29:27 sh.con INFO KNX: connected to 127.0.0.1:6720
    2013-03-04 18:29:28 sh.con ERROR Onewire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused
    2013-03-04 18:29:28 SmartHome.py INFO Starting logics
    2013-03-04 18:29:28 SmartHome.py WARNING hello: Could not access logic file (hello_world.py) => ignoring.
    2013-03-04 18:29:29 SmartHome.py CRITICAL Unhandled exception: (9, 'Bad file descriptor')
    <class 'select.error'>
    File "/usr/local/smarthome/bin/smarthome.py", line 455, in <module>
    sh = SmartHome()
    File "/usr/local/smarthome/bin/smarthome.py", line 235, in __init__
    asyncore.loop(timeout=1, count=1, map=self.socket_map)
    File "/usr/lib/python2.7/asyncore.py", line 220, in loop
    poll_fun(timeout, map)
    File "/usr/lib/python2.7/asyncore.py", line 145, in poll
    r, w, e = select.select(r, w, e, timeout)
    Oder bin ich in der plugin.conf falsch mit meiner Zielstellung?
    Danke

    #2
    Hi Martin,

    die plugin.conf sieht soweit ok aus.

    Das Problem resultiert wahrscheinlich daraus das aus irgendeinem Grund zwei Konnektions zu knx aufgebaut werden.
    Code:
    1970-01-01 01:01:21 sh.con INFO KNX: connected to 127.0.0.1:6720
    2013-03-04 18:29:27 sh.con INFO KNX: connected to 127.0.0.1:6720
    Das kann zu der Exception führen.
    Code:
    2013-03-04 18:29:29 SmartHome.py CRITICAL Unhandled exception: (9, 'Bad file descriptor')
    <class 'select.error'>
    File "/usr/local/smarthome/bin/smarthome.py", line 455, in <module>
    sh = SmartHome()
    File "/usr/local/smarthome/bin/smarthome.py", line 235, in __init__
    asyncore.loop(timeout=1, count=1, map=self.socket_map)
    File "/usr/lib/python2.7/asyncore.py", line 220, in loop
    poll_fun(timeout, map)
    File "/usr/lib/python2.7/asyncore.py", line 145, in poll
    r, w, e = select.select(r, w, e, timeout)
    Dannach passiert wahrscheinlich nicht mehr viel.

    Sieht das Log bei Dir immer so aus? Starte bitte mal mit smarthome.py -n und poste den Output.

    Edit: ich komme wahrscheinlich erst morgen wieder an den Computer...

    Danke

    Marcus

    Kommentar


      #3
      Ob das log immer so aussieht kann ich nicht sagen. Habe gestern erst begonnen zu versuchen die Verbindung herzustellen.
      Ein smarthome.py -n zeigt wohl den Busmonitor.
      Das weitergeführte log sieht verkürzt so aus:
      Code:
      2013-03-04 19:53:37,674 SmartHome.py INFO     Init SmartHome.py v0.8-4-ga53aaec -- smarthome.py:__init__:189
      2013-03-04 19:53:37,682 SmartHome.py INFO     Init Scheduler -- scheduler.py:__init__:51
      2013-03-04 19:53:37,688 SmartHome.py INFO     Init plugins -- smarthome.py:__init__:204
      2013-03-04 19:53:37,696 Scheduler    DEBUG    creating 5 workers -- scheduler.py:run:57
      2013-03-04 19:53:37,711 SmartHome.py DEBUG    Plugin: knx -- plugin.py:__init__:42
      2013-03-04 19:53:37,757 SmartHome.py DEBUG    Plugin: ow -- plugin.py:__init__:42
      2013-03-04 19:53:37,772 SmartHome.py DEBUG    Plugin: cli -- plugin.py:__init__:42
      2013-03-04 19:53:37,785 SmartHome.py DEBUG    Plugin: visu -- plugin.py:__init__:42
      2013-03-04 19:53:37,875 SmartHome.py DEBUG    Plugin: rrd -- plugin.py:__init__:42
      2013-03-04 19:53:37,981 SmartHome.py INFO     Init items -- smarthome.py:__init__:206
      2013-03-04 19:53:38,090 SmartHome.py DEBUG    knx: second.sleeping.light.level listen on 3/2/14 -- __init__.py:parse_item:212
      2013-03-04 19:53:38,095 SmartHome.py DEBUG    knx: Light listen on 3/2/12 -- __init__.py:parse_item:212
      2013-03-04 19:53:38,129 SmartHome.py DEBUG    Item 'second.sleeping.blind': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,137 SmartHome.py DEBUG    Item 'second.sleeping': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,180 SmartHome.py DEBUG    Item 'second.bath.blind': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,187 SmartHome.py DEBUG    Item 'second.bath': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,191 SmartHome.py DEBUG    Item 'second': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,204 SmartHome.py DEBUG    Item 'first.hallway': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,212 SmartHome.py DEBUG    Item 'first.living.light': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,271 SmartHome.py DEBUG    Item 'first.living.blind': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,282 SmartHome.py DEBUG    Item 'first.living': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,287 SmartHome.py DEBUG    Item 'first': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,304 SmartHome.py DEBUG    knx: Flur.Leuchten.LED indirekt listen on 0/0/67 -- __init__.py:parse_item:212
      2013-03-04 19:53:38,309 SmartHome.py DEBUG    knx: Flur.Leuchten.LED indirekt listen on and init with 0/0/67 -- __init__.py:parse_item:221
      2013-03-04 19:53:38,314 SmartHome.py DEBUG    Item 'Flur.Leuchten': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,318 SmartHome.py DEBUG    Item 'Flur': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,426 SmartHome.py DEBUG    Item 'example': No type specified. -- item.py:__init__:100
      2013-03-04 19:53:38,436 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
      2013-03-04 19:53:38,446 ow           DEBUG    ow.bus next time: 2013-03-04 19:53:39+01:00 -- scheduler.py:_next_time:193
      2013-03-04 19:53:38,454 ow           DEBUG    ow next time: 2013-03-04 19:53:42+01:00 -- scheduler.py:_next_time:193
      2013-03-04 19:53:38,476 SmartHome.py INFO     Starting logics -- logic.py:__init__:33
      2013-03-04 19:53:38,480 SmartHome.py DEBUG    reading logics from /usr/local/smarthome/etc/logic.conf -- logic.py:__init__:40
      2013-03-04 19:53:38,503 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:47
      2013-03-04 19:53:38,483 rrd          DEBUG    rrd next time: 2013-03-04 19:55:18+01:00 -- scheduler.py:_next_time:193
      2013-03-04 19:53:38,518 SmartHome.py WARNING  hello: Could not access logic file (hello_world.py) => ignoring. -- logic.py:generate_bytecode:109
      2013-03-04 19:53:38,591 sh.con       INFO     KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:62
      2013-03-04 19:53:38,600 sh.con       DEBUG    knx: read init/cache ga -- __init__.py:handle_connect:102
      2013-03-04 19:53:38,610 sh.con       ERROR    Onewire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused -- __init__.py:connect:62
      2013-03-04 19:53:38,672 sh.gc        DEBUG    Garbage collector: collected 829 objects. -- smarthome.py:_garbage_collection:312
      2013-03-04 19:53:38,806 Scheduler    DEBUG    sh.gc next time: 2013-03-05 02:04:00+01:00 -- scheduler.py:_next_time:193
      2013-03-04 19:53:39,217 Scheduler    DEBUG    ow.bus next time: 2013-03-04 20:03:39+01:00 -- scheduler.py:_next_time:193
      2013-03-04 19:53:39,535 SmartHome.py DEBUG    0.0.0 read 0/0/67 -- __init__.py:parse_telegram:180
      2013-03-04 19:53:41,809 SmartHome.py DEBUG    1.1.11 set 5/2/1 to 44 24 0 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:41,836 SmartHome.py DEBUG    1.1.11 set 5/2/2 to 43 88 80 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:41,862 SmartHome.py DEBUG    1.1.11 set 5/2/3 to 43 34 0 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:41,882 SmartHome.py DEBUG    1.1.13 set 0/0/57 to 1 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:41,908 SmartHome.py DEBUG    1.1.11 set 5/2/4 to 43 4b 0 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,060 SmartHome.py DEBUG    1.1.26 set 0/5/15 to 1 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,082 SmartHome.py DEBUG    1.1.26 set 0/5/16 to 1 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,247 Scheduler    DEBUG    ow next time: 2013-03-04 19:58:42+01:00 -- scheduler.py:_next_time:193
      2013-03-04 19:53:42,330 SmartHome.py DEBUG    1.1.11 set 5/2/5 to 3f a8 f5 c1 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,357 SmartHome.py DEBUG    1.1.11 set 5/2/6 to 3f 54 7a e0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,384 SmartHome.py DEBUG    1.1.11 set 5/2/7 to 3f 82 8f 5b -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,406 SmartHome.py DEBUG    1.2.24 set 5/0/2 to 10 25 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,429 SmartHome.py DEBUG    1.1.13 set 2/0/7 to 18 d2 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,453 SmartHome.py DEBUG    1.2.24 set 5/0/3 to 68 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,476 SmartHome.py DEBUG    1.1.13 set 2/1/7 to 18 c8 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,503 SmartHome.py DEBUG    1.2.24 set 5/0/4 to 68 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,548 SmartHome.py DEBUG    1.2.24 set 5/0/5 to 68 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,592 SmartHome.py DEBUG    1.2.24 set 5/0/7 to 30 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:42,624 SmartHome.py DEBUG    1.2.24 set 5/0/1 to 8 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:43,490 SmartHome.py DEBUG    1.2.24 set 0/4/11 to 34 8 25 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:43,498 SmartHome.py DEBUG    1.2.24 set 5/0/0 to 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:43,503 SmartHome.py DEBUG    1.2.24 set 5/0/8 to 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:53:43,508 SmartHome.py DEBUG    1.2.24 set 5/0/6 to 1 -- __init__.py:parse_telegram:162
      2013-03-04 19:57:15,893 SmartHome.py DEBUG    1.1.7 set 5/1/7 to 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:57:15,979 SmartHome.py DEBUG    1.1.7 set 5/1/7 to 0 -- __init__.py:parse_telegram:162
      2013-03-04 19:57:16,207 SmartHome.py INFO     Stop Plugins -- plugin.py:stop:68
      2013-03-04 19:57:16,239 SmartHome.py INFO     KNX: connection to 127.0.0.1:6720 closed -- my_asynchat.py:handle_close:78
      2013-03-04 19:57:16,258 SmartHome.py DEBUG    Closing listen -- __init__.py:stop:126
      2013-03-04 19:57:16,272 SmartHome.py INFO     Thread: SmartHome.py, still alive -- smarthome.py:stop:301
      2013-03-04 19:57:16,286 SmartHome.py INFO     Thread: idle, still alive -- smarthome.py:stop:301
      2013-03-04 19:57:16,289 SmartHome.py INFO     Thread: Thread-5, still alive -- smarthome.py:stop:301
      2013-03-04 19:57:16,293 SmartHome.py INFO     Thread: idle, still alive -- smarthome.py:stop:301
      2013-03-04 19:57:16,307 SmartHome.py INFO     Thread: Scheduler, still alive -- smarthome.py:stop:301
      2013-03-04 19:57:16,312 SmartHome.py INFO     SmartHome.py stopped -- smarthome.py:stop:306
      2013-03-04 19:58:55 SmartHome.py INFO     Init SmartHome.py v0.8-4-ga53aaec
      2013-03-04 19:58:55 SmartHome.py INFO     Init Scheduler
      2013-03-04 19:58:55 SmartHome.py INFO     Init plugins
      2013-03-04 19:58:55 SmartHome.py INFO     Init items
      2013-03-04 19:58:56 SmartHome.py INFO     Start Plugins
      2013-03-04 19:58:56 SmartHome.py INFO     Starting logics
      2013-03-04 19:58:56 SmartHome.py WARNING  hello: Could not access logic file (hello_world.py) => ignoring.
      2013-03-04 19:58:56 sh.con       INFO     KNX: connected to 127.0.0.1:6720
      2013-03-04 19:58:56 sh.con       ERROR    Onewire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused
      2013-03-04 20:08:57 sh.con       ERROR    Onewire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused



      Nach einem erneuten Neustart scheint jetzt aber nur eine KNX-Verbindung zu bestehen.
      Vieleicht stimmt ja auch was an meinen I/O-Connection Einstellungen was nicht.....
      Angehängte Dateien

      Kommentar


        #4
        Ja: Stell mal die Pages auf "Smarthome" [Save], dann Reload des Browsers.

        Geht dann mehr?

        (Und sicherheitshlaber nochmal 'temp' leer machen)
        Join smartVISU on facebook. Web: smartvisu.de.
        Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

        Kommentar


          #5
          Zitat von Apollo Beitrag anzeigen
          Geht dann mehr?
          Hi Martin,
          Leider nein. Auch wieder die selbe Meldung

          Kommentar


            #6
            Hallo Martin,

            mit -n startet man im Debug Modus und im Vordergrund.
            Was mir im Log aufgefallen ist "Flur.Leuchten.LED indirekt". Ist das ein Leerzeichen? Das muss raus. Komisch das es da keine Fehlermeldung gibt. Muss ich noch einbauen.

            Was ist eigentlich genau Dein Problem?

            Bis morgen

            Marcus

            Kommentar


              #7
              Das Problem war/ist wahrscheinlich mein Firefox. Hab mal ein Update gemacht (20.0), bekomme aber immernoch die Websocket-Fehlermeldung.
              Unter Safarie (Ipad) klappt die Anzeige.

              Kommentar


                #8
                Hi Martin,

                Zitat von macflei Beitrag anzeigen
                bekomme aber immernoch die Websocket-Fehlermeldung.
                das ist leider etwas unspezifisch.

                Bis bald

                Marcus

                Kommentar


                  #9
                  Es ist durchaus möglich, daß die Meldung beim Seitenwechsel kurz kommt. Die kannst du aber ignorieren, wenn die Verbindung hergestellt ist.
                  Join smartVISU on facebook. Web: smartvisu.de.
                  Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

                  Kommentar


                    #10
                    Die Sache ist die, das er sich auf dem PC (Firefox) nicht verbindet.
                    Die Seite(n) wird/werden aufgebaut, aber dann wars das.
                    Via Ipad klappt alles problemlos. Schalten, Dimmen, Rollos etc.
                    Aber passt schon. Ich denke der Fehler liegt hier an dem Rechner. Ich teste das morgen mal auf nem anderen Rechner oder Laptop.
                    Die Kiste hier nervt mich eh schon ne Weile.
                    Sorry für die "Umstände"

                    Kommentar


                      #11
                      Hmmm.
                      irgendwie scheint es doch nicht an dem Rechner alleine zu liegen.
                      Ich habe es nun auf einem anderen Rechner und über Laptop versucht. Einmal mit xp pro + aktueller Firefox und anderer seits Vista pro + akueller Firefoxe.
                      Es ist immer das gleiche. Ich bekomme immer den obigen (in Post3) Websocket-Error.
                      Es funktioniert nur auf dem Ipad im heimischen Netzwerk einwandfrei.
                      Wähle ich mich über das Netztwerk meines Nachbarn ein und gehe über dyndns auf die VISU, scheint er sich auch nicht verbinden zu können. Die Seiten werden exakt aufgebaut. Bei einer Bedienung der Buttons passiert jedoch nichts (auf dem BUS). Die Temp.-Werte werden auch nur als NaN °C angezeigt. Naja und am besten sieht man das am log.
                      Hat jemand eine Idee woran das alles liegen kann?
                      Als Router ist die EasyBox 803 A mit aktueller Firmware im Einsatz.

                      Wo wir eh grad beim Thema Browser sind .....Welchen Browser empfehlt Ihr für Android?

                      Danke
                      Angehängte Dateien

                      Kommentar


                        #12
                        Hallo macflei,

                        sorry hab den threat nicht verfolgt, aber dein Problem ist wahrscheinlich die Firefox-Version. Es gibt da derzeit noch große Unterschiede zwischen den Browsern und beim Firefox brauchst du quasi die letzte Version.

                        Auf Android geht eh nur der Firefox, der Native kann (zumindest mein Kenntnissstand) keine Websockets.

                        Also: Versuch mal ein Update.

                        Gruss
                        Join smartVISU on facebook. Web: smartvisu.de.
                        Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

                        Kommentar


                          #13
                          Hallo Martin (macflei),

                          das sind sehr wahrscheinlich zwei Probleme. Wenn Du über das Internet zugreifst, verwendest Du ein VPN?
                          1. Wäre es aus Sicherheitssicht sehr zu empfehlen.
                          2. Musst Du dann nicht auch noch den SH.py Websocket-Port freigeben.

                          Der Browser baut insgesamt zwei Verbindungen auf, zum Webserver um die HTML Files und Bilder zu holen und zu SH.py.

                          Zu Deinem anderen Problem. Mein Firefox (19.0.2) auf meine Mac kann problemlos die Websockets aufbauen.
                          Welche Version verwendest Du denn genau?

                          Bis bald

                          Marcus

                          Kommentar


                            #14
                            @Apollo
                            Die Firefoxversionen auf dem anderen Rechner und Laptop sind "frisch" installiert und sind v20. Hatte es aber vorher mit der bis dato aktuellsten Version versucht.
                            @mknx
                            SH.py Websocket-Port <<<-- welcher wäre das?
                            Via VPN war ich nicht drauf, da es nur ein "Schnelltests" beim Nachbarn war (vorher am Router Portweiterleitung von 90 auf 80 eingerichtet).

                            Vieleicht bringt der Screen ja einen auf die Lösung? Ich bin damit überfordert
                            Angehängte Dateien

                            Kommentar


                              #15
                              Hi Martin,

                              ich schaue mir das morgen Abend mit Martin mal an.

                              Der Websocket-Port steht u.a. in der Dokumentation und hängt auch ein bisschen von Deiner Konfig ab.

                              Bis bald

                              Marcus

                              Kommentar

                              Lädt...
                              X