Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - smartvisu bekommt ohne pagerefresh nicht alle Daten von smarthome.py

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

    - √ - smartvisu bekommt ohne pagerefresh nicht alle Daten von smarthome.py

    Hallo,

    Vorweg, ich bin mir nicht sicher, ob smarthome.py oder smartvisu subforum das Richtige ist.

    Ich versuche mal mein Problem zu erklären.

    RaspberryPi mit dem Combo-Image smarthome.py + smartVisu.
    KNX Teststellung
    1 Raum "Kinderzimmer Nicolas" fertig konfiguriert
    In der Navigation befinden sich Übersichtsicons (Licht, Heizung, Temperatur)

    Mache ich nun das Hauptbild sehe ich die Werte meist bei der Übersicht des Raumes (Bild1), machmal aber auch erst nach "F5" im Browser.
    Klicke ich nun auf "Kinderzimmer Nicolas" werden einige Symbole nicht dargestellt und die Temperatur fehlt auch (Bild2). Ändert sich nun ein Wert (zB Heizung schaltet sich ein), wird dieser dann plötzlich angezeigt. Drücke ich F5 wird alles richtig angezeigt (Bild3).

    Mir ist folgendes aufgefallen

    Bei F5 wird eine neue Verbindung aufgebaut:
    Code:
    2013-03-29 11:10:19,268 SmartHome.py DEBUG    Websocket: incoming connection from 192.168.33.253:37932 -- __init__.py:handle_accept:107
    2013-03-29 11:10:19,390 SmartHome.py DEBUG    192.168.33.253:37932 sent '{"cmd":"proto","ver":2}' -- __init__.py:json_parse:206
    2013-03-29 11:10:19,409 SmartHome.py DEBUG    192.168.33.253:37932 sent '{"cmd":"monitor","items":["og.kz_nicolas.temperatur.ist","og.kz_nicolas.li_sued.setrm","og.kz_nicolas.li_nord.setrm","og.kz_nicolas.temperatur.stellwert","og.kz_eric.temperatur.ist","og.kz_eric.li_sued.setrm","og.kz_eric.li_nord.setrm"]}' -- __init__.py:json_parse:206
    und ich bekomme für meine noch nicht existierenden Items in smarthome.py einen Fehler (ist auch aktuell OK, muss ich erst machen):
    Code:
    2013-03-29 11:10:19,417 SmartHome.py INFO     Client 192.168.33.253:37932 requested invalid item: og.kz_eric.li_nord.setrm -- __init__.py:json_parse:230
    2013-03-29 11:10:19,425 SmartHome.py INFO     Client 192.168.33.253:37932 requested invalid item: og.kz_eric.temperatur.ist -- __init__.py:json_parse:230
    2013-03-29 11:10:19,429 SmartHome.py INFO     Client 192.168.33.253:37932 requested invalid item: og.kz_eric.li_sued.setrm -- __init__.py:json_parse:230
    Die gelieferten Daten in der Javascriptconsole sind:
    Code:
    [io.smarthome.py] receiving data: {"cmd":"proto","ver":2} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.li_sued.setrm",0]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.stellwert",0]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.li_nord.setrm",0]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.ist",22.14]],"cmd":"item"} io_smarthome.py.js:98
    Beim Seitenwechsel wird keine neue Verbindung aufgebaut, nur ein Monitor-Aufruf:
    Code:
    2013-03-29 11:11:47,792 SmartHome.py DEBUG    192.168.33.253:37932 sent '{"cmd":"monitor","items":["og.kz_nicolas.temperatur.ist","og.kz_nicolas.li_sued.setrm","og.kz_nicolas.li_nord.setrm","og.kz_nicolas.temperatur.stellwert","og.kz_eric.temperatur.ist","og.kz_eric.li_sued.setrm","og.kz_eric.li_nord.setrm","og.kz_nicolas.temperatur.soll","og.kz_nicolas.temperatur.betriebsart","og.kz_nicolas.rollo.move","og.kz_nicolas.rollo.pos","og.kz_nicolas.rollo.stop"]}' -- __init__.py:json_parse:206
    Die Fehlermeldung wegen den nicht existierenden Items kommen nicht.
    Code:
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.ist",22.12]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.rollo.pos",0]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.rollo.move",0]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.betriebsart",40]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.rollo.stop",0]],"cmd":"item"} io_smarthome.py.js:98
    [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.soll",7.0]],"cmd":"item"} io_smarthome.py.js:98
    Hier noch das komplette Log des Tests:
    Code:
    root@smarthome:/smartvisu# /usr/local/smarthome/bin/smarthome.py --start --debug -n
    2013-03-29 11:10:05,320 SmartHome.py INFO     Init SmartHome.py v0.8-83-g0990026 -- smarthome.py:__init__:192
    2013-03-29 11:10:05,327 SmartHome.py INFO     Init Scheduler -- scheduler.py:__init__:53
    2013-03-29 11:10:05,332 SmartHome.py INFO     Init Plugins -- smarthome.py:__init__:207
    2013-03-29 11:10:05,346 Scheduler    DEBUG    creating 5 workers -- scheduler.py:run:59
    2013-03-29 11:10:05,353 SmartHome.py DEBUG    Plugin: knx -- plugin.py:__init__:42
    2013-03-29 11:10:05,390 SmartHome.py DEBUG    Plugin: ow -- plugin.py:__init__:42
    2013-03-29 11:10:05,408 SmartHome.py ERROR    Onewire: could not connect to 127.0.0.1:4304: [Errno 111] Connection refused -- __init__.py:connect:62
    2013-03-29 11:10:05,414 SmartHome.py DEBUG    Plugin: cli -- plugin.py:__init__:42
    2013-03-29 11:10:05,426 SmartHome.py DEBUG    Plugin: visu -- plugin.py:__init__:42
    2013-03-29 11:10:05,510 SmartHome.py DEBUG    Plugin: rrd -- plugin.py:__init__:42
    2013-03-29 11:10:05,608 SmartHome.py INFO     Init Items -- smarthome.py:__init__:209
    2013-03-29 11:10:05,737 SmartHome.py DEBUG    knx: og.kz_nicolas.li_sued.setrm listen on 1/0/8 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,804 SmartHome.py DEBUG    knx: og.kz_nicolas.li_sued.setrm listen on and init with 1/0/8 -- __init__.py:parse_item:219
    2013-03-29 11:10:05,820 SmartHome.py DEBUG    knx: og.kz_nicolas.li_nord.setrm listen on 1/0/9 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,824 SmartHome.py DEBUG    knx: og.kz_nicolas.li_nord.setrm listen on and init with 1/0/9 -- __init__.py:parse_item:219
    2013-03-29 11:10:05,833 SmartHome.py DEBUG    knx: og.kz_nicolas.rollo.move listen on 1/0/1 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,841 SmartHome.py DEBUG    knx: og.kz_nicolas.rollo.stop listen on 1/0/0 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,854 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.ist listen on 1/0/5 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,863 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.soll listen on 1/0/7 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,867 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.soll listen on and init with 1/0/7 -- __init__.py:parse_item:219
    2013-03-29 11:10:05,876 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.betriebsart listen on 1/0/10 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,881 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.betriebsart listen on and init with 1/0/10 -- __init__.py:parse_item:219
    2013-03-29 11:10:05,891 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.stellwert listen on 1/0/12 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,896 SmartHome.py DEBUG    knx: og.kz_nicolas.temperatur.stellwert listen on and init with 1/0/12 -- __init__.py:parse_item:219
    2013-03-29 11:10:05,913 SmartHome.py DEBUG    knx: second.sleeping.light.level listen on 3/2/14 -- __init__.py:parse_item:210
    2013-03-29 11:10:05,918 SmartHome.py DEBUG    knx: Light listen on 3/2/12 -- __init__.py:parse_item:210
    2013-03-29 11:10:06,160 SmartHome.py INFO     Start Plugins -- plugin.py:start:63
    2013-03-29 11:10:06,169 ow           DEBUG    1w-disc next time: 2013-03-29 11:10:06+01:00 -- scheduler.py:_next_time:224
    2013-03-29 11:10:06,188 SmartHome.py INFO     Start Logics -- logic.py:__init__:32
    2013-03-29 11:10:06,192 SmartHome.py DEBUG    reading logics from /usr/local/smarthome/etc/logic.conf -- logic.py:__init__:38
    2013-03-29 11:10:06,187 rrd          DEBUG    rrd next time: 2013-03-29 11:11:46+01:00 -- scheduler.py:_next_time:224
    2013-03-29 11:10:06,225 SmartHome.py DEBUG    Logic: hello -- logic.py:__init__:45
    2013-03-29 11:10:06,231 SmartHome.py WARNING  hello: Could not access logic file (hello_world.py) => ignoring. -- logic.py:generate_bytecode:106
    2013-03-29 11:10:06,256 sh.con       DEBUG    knx: read init/cache ga -- __init__.py:handle_connect:100
    2013-03-29 11:10:06,278 SmartHome.py DEBUG    0.0.0 read 1/0/12 -- __init__.py:parse_telegram:178
    2013-03-29 11:10:06,283 sh.con       INFO     KNX: connected to 127.0.0.1:6720 -- my_asynchat.py:connect:69
    2013-03-29 11:10:06,311 SmartHome.py DEBUG    0.0.0 read 1/0/7 -- __init__.py:parse_telegram:178
    2013-03-29 11:10:06,319 SmartHome.py DEBUG    0.0.0 read 1/0/8 -- __init__.py:parse_telegram:178
    2013-03-29 11:10:06,326 SmartHome.py DEBUG    0.0.0 read 1/0/9 -- __init__.py:parse_telegram:178
    2013-03-29 11:10:06,341 SmartHome.py DEBUG    0.0.0 read 1/0/10 -- __init__.py:parse_telegram:178
    2013-03-29 11:10:06,357 SmartHome.py DEBUG    1.1.15 set 1/0/12 to 0 -- __init__.py:parse_telegram:165
    2013-03-29 11:10:06,396 SmartHome.py DEBUG    1.1.15 set 1/0/7 to 7.0 -- __init__.py:parse_telegram:165
    2013-03-29 11:10:06,404 SmartHome.py INFO     og.kz_nicolas.temperatur.soll = 7.0 via KNX 1.1.15 -- item.py:_update:210
    2013-03-29 11:10:06,489 Scheduler    DEBUG    1w-disc next time: 2013-03-29 11:20:06+01:00 -- scheduler.py:_next_time:224
    2013-03-29 11:10:06,491 SmartHome.py DEBUG    1.1.2 set 1/0/8 to False -- __init__.py:parse_telegram:165
    2013-03-29 11:10:06,499 SmartHome.py DEBUG    1.1.2 set 1/0/9 to False -- __init__.py:parse_telegram:165
    2013-03-29 11:10:06,501 sh.gc        DEBUG    Garbage collector: collected 1009 objects. -- smarthome.py:_garbage_collection:343
    2013-03-29 11:10:06,510 SmartHome.py DEBUG    1.1.15 set 1/0/10 to 40 -- __init__.py:parse_telegram:165
    2013-03-29 11:10:06,514 SmartHome.py INFO     og.kz_nicolas.temperatur.betriebsart = 40 via KNX 1.1.15 -- item.py:_update:210
    2013-03-29 11:10:06,711 Scheduler    DEBUG    sh.gc next time: 2013-03-30 02:04:00+01:00 -- scheduler.py:_next_time:224
    2013-03-29 11:10:19,268 SmartHome.py DEBUG    Websocket: incoming connection from 192.168.33.253:37932 -- __init__.py:handle_accept:107
    2013-03-29 11:10:19,390 SmartHome.py DEBUG    192.168.33.253:37932 sent '{"cmd":"proto","ver":2}' -- __init__.py:json_parse:206
    2013-03-29 11:10:19,409 SmartHome.py DEBUG    192.168.33.253:37932 sent '{"cmd":"monitor","items":["og.kz_nicolas.temperatur.ist","og.kz_nicolas.li_sued.setrm","og.kz_nicolas.li_nord.setrm","og.kz_nicolas.temperatur.stellwert","og.kz_eric.temperatur.ist","og.kz_eric.li_sued.setrm","og.kz_eric.li_nord.setrm"]}' -- __init__.py:json_parse:206
    2013-03-29 11:10:19,417 SmartHome.py INFO     Client 192.168.33.253:37932 requested invalid item: og.kz_eric.li_nord.setrm -- __init__.py:json_parse:230
    2013-03-29 11:10:19,425 SmartHome.py INFO     Client 192.168.33.253:37932 requested invalid item: og.kz_eric.temperatur.ist -- __init__.py:json_parse:230
    2013-03-29 11:10:19,429 SmartHome.py INFO     Client 192.168.33.253:37932 requested invalid item: og.kz_eric.li_sued.setrm -- __init__.py:json_parse:230
    2013-03-29 11:10:50,085 SmartHome.py DEBUG    1.1.50 set 1/0/5 to 22.06 -- __init__.py:parse_telegram:165
    2013-03-29 11:10:50,089 SmartHome.py INFO     og.kz_nicolas.temperatur.ist = 22.06 via KNX 1.1.50 -- item.py:_update:210
    2013-03-29 11:11:46,364 Scheduler    DEBUG    rrd next time: 2013-03-29 11:16:46+01:00 -- scheduler.py:_next_time:224
    2013-03-29 11:11:47,792 SmartHome.py DEBUG    192.168.33.253:37932 sent '{"cmd":"monitor","items":["og.kz_nicolas.temperatur.ist","og.kz_nicolas.li_sued.setrm","og.kz_nicolas.li_nord.setrm","og.kz_nicolas.temperatur.stellwert","og.kz_eric.temperatur.ist","og.kz_eric.li_sued.setrm","og.kz_eric.li_nord.setrm","og.kz_nicolas.temperatur.soll","og.kz_nicolas.temperatur.betriebsart","og.kz_nicolas.rollo.move","og.kz_nicolas.rollo.pos","og.kz_nicolas.rollo.stop"]}' -- __init__.py:json_parse:206
    2013-03-29 11:11:50,079 SmartHome.py DEBUG    1.1.50 set 1/0/5 to 22.06 -- __init__.py:parse_telegram:165
    ^C2013-03-29 11:11:57,607 SmartHome.py INFO     Stop Plugins -- plugin.py:stop:68
    2013-03-29 11:11:57,611 SmartHome.py INFO     KNX: connection to 127.0.0.1:6720 closed -- my_asynchat.py:handle_close:103
    2013-03-29 11:11:57,615 SmartHome.py DEBUG    Closing listen -- __init__.py:stop:125
    2013-03-29 11:11:58,121 SmartHome.py INFO     SmartHome.py stopped -- smarthome.py:stop:337
    Habe ich etwas falsch gemacht?

    lg,
    Andreas
    Angehängte Dateien

    #2
    Hallo Andreas,

    sieht von meiner Seite (SH.py) alles gut aus. Mal sehen was Martin dazu sagt.

    EDIT: deswegen habe ich es auch hierhin verschoben...

    (Wir treffen uns heute Abend, spätestens dann können wir Dir eine hilfreiche Antwort geben).

    Interessant wäre noch Dein verwendeter Browser inkl. Verisonsnummer und Betriebssystem.

    Bis bald

    Marcus

    Kommentar


      #3
      Hallo,

      Danke schon mal. Find ich toll, wie ihr das macht.

      Browser ist Chrome 25.0.1364.172 unter Windows bzw. Chrome unter Android.

      Vielleicht noch eine Information.

      Ich habe jetzt im smarthome driver testweise eingebaut, dass er bei jedem Seitenwechsel eine neue Verbindung aufbaut. Das macht er auch, dennoch werden die Daten nicht angezeigt (also so wie im Bild2 oben), obwohl die Daten empfangen werden:
      Code:
      [io.smarthome.py] close connection io_smarthome.py.js:215
      [io.smarthome.py] receiving data: {"cmd":"proto","ver":2} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.li_sued.setrm",0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.stellwert",0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.rollo.pos",0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.betriebsart",40]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.rollo.stop",0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.rollo.move",0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.li_nord.setrm",0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.soll",7.0]],"cmd":"item"} io_smarthome.py.js:98
      [io.smarthome.py] receiving data: {"items":[["og.kz_nicolas.temperatur.ist",22.1]],"cmd":"item"}
      Die Werte die doppelt angezeigt werden haben unterschiedliche IDs, natürlich aber dieselbe GAID.
      Beispiel aus rooms_menu:
      Code:
      {{ basic.symbol('overview.og.kz_nicolas.stellwertoff', 'og.kz_nicolas.temperatur.stellwert', '', icon0~'sani_floor_heating.png', '0') }}
      Beispiel aus Zimmerseite:
      Code:
      {{ basic.symbol(id~'stellwertoff', gad_stellwert, '', icon0~'sani_floor_heating.png', '0') }}
      Wobei id~'stellwertoff' in der "echten" Webseite zu: "og_kz_nicolas-og_kz_nicolas_temperaturstellwertoff" wird.

      Ich habe auch nochmal den Negativtest gemacht, kommentiere ich in rooms_menu.html die Anzeigen der Werte aus, werden in der Zimmerseite die Werte perfekt angezeigt.

      Version von smarthome.py und smartvisu sollte die aktuellsten sein (vor 2 Tagen das update_script laufen lassen).

      lg,
      Andreas

      Kommentar


        #4
        Das ist erstmal korrekt, jedes widget MUSS eine eindeutige ID haben. Das ist ein häufiger Fehler. Klar: sonst kann der Browser das widget ja nicht "greifen".

        Wenn der Wert aber nach einer Zeit "richtig" aktualisiert wird scheint es ein Timing-Problem bei der Seitenerstellung zu sein.
        Join smartVISU on facebook. Web: smartvisu.de.
        Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

        Kommentar


          #5
          Hallo Andreas,

          haben die letzten Tage was eingecheckt, könntest du damit mal testen (also svn-version)?

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

          Kommentar


            #6
            Hallo,

            Ich habe vorhin mit dem SVN von heute getestet, leider ohne Erfolg.

            Vielleicht arbeite ich mich noch in linknx ein und teste damit, oder ich lass es mit den Status in der Übersicht (obwohl mir das schon sehr gefällt).

            lg,
            Andreas

            Kommentar


              #7
              Welcher Wert (item) bleibt denn unverändert? (als Beispiel) Ändert er sich, wenn du direkt mit der ETS einen Wert auf den Bus sendest?

              Seltsam ist, dass es mit dem offline-Treiber funktioniert, und mit smarthome.py scheibar nicht. Normalweise wird eine Statusänderung (z. B. Mouseklick auf einen Button sofort gesendet, und das Icon ändert sich, wenn das Senden abgeschlossen ist). Zeitgleich werden alle anderen "Schalter" die auf das gleiche Item hören auch umgesetzt.

              Vielleicht kannst du die Reihenfolge nochmal ganz genau beschreiben.
              Join smartVISU on facebook. Web: smartvisu.de.
              Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

              Kommentar


                #8
                Hallo,

                Nehmen wir als Beispiel die Ist-Temperatur.

                Ich habe die Ist-Temperatur in der Übersichtsseite (also dem linken Teil auf den Screenshots oben) sowie auch in der RTR des Raumes (also dem rechten Teil einer "Raum"-Seite).

                Schalte ich die Haupt-Webseite auf sehe ich noch alle Werte. Dann klicke ich auf das Kinderzimmer. Die Werte, die zuvor auf der Hauptseite ebenfalls zu sehen waren und nun auch auf der "Raum"-Seite zu sehen sind, werden nicht initialisiert (bei Temperatur zB "--.-").

                Sobald sich der Wert ändert wird er auch angezeigt. Wertänderungen sind also kein Problem.

                lg,
                Andreas

                Kommentar


                  #9
                  Danke. Jetzt hab ichs verstanden.

                  Probier mal testhalber in die pages/base/base.html Zeile 66:

                  Code:
                  widget.refresh();
                  Join smartVISU on facebook. Web: smartvisu.de.
                  Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

                  Kommentar


                    #10
                    Habs mal ins svn getan, kannst ja mal testen
                    Join smartVISU on facebook. Web: smartvisu.de.
                    Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

                    Kommentar


                      #11
                      Zitat von Apollo Beitrag anzeigen
                      Danke. Jetzt hab ichs verstanden.

                      Probier mal testhalber in die pages/base/base.html Zeile 66:

                      Code:
                      widget.refresh();
                      Hi,

                      Ich habs jetzt mal testweise eingebaut und es sieht gut aus.

                      Danke für die Unterstützung.

                      lg,
                      Andreas

                      Kommentar


                        #12
                        Wenns geht dann Haken
                        Join smartVISU on facebook. Web: smartvisu.de.
                        Dir gefällt smartVISU? Bitte spenden für die Weiterentwicklung.

                        Kommentar


                          #13
                          Hehe, jetzt habe ich ein anderes Problem, gibt aber einen eigene Thread dazu.

                          Den betrachte ich als gelöst. Danke nochmals für die Unterstützung.

                          lg,
                          Andreas

                          Kommentar


                            #14
                            Moin zusammen,

                            dieser Thread passt so gut auf mein aktuelles Problem, dass ich ihn einfach mal kapere.
                            Lösungsuchende finden dann hoffentlich gleich mehrere hilfreiche Tips.

                            Die smartvisu Webseite stellt häufig bei Aufruf (auch bei Refresh) sämtliche Werte häufig mit -.- dar und Zustände werden ebenfalls nicht dargestellt. Nach mehreren PageRefresh Versuchen klappts dann zwischendurch auch wieder.
                            Eine Regelmäßigkeit ist erstmal nicht feststellbar.

                            Das eingesetzte System ist ein RapsBerry Pi mit smarthome.py image (Btw: läuft ansonsten super. Herzlichen Dank an alle Beteiligten!)
                            Das mit dem widget.refresh(); habe ich probiert, liefert jedoch nur eine Fehlermeldung.

                            Funktionierender PageRefresh:
                            Code:
                            2014-10-12 15:05:02,629 DEBUG    Main         WebSocket: incoming connection from 192.168.178.54:54925 to 0.0.0.0:2424 -- connection.py:accept:188
                            2014-10-12 15:05:02,883 DEBUG    Main         192.168.178.54:54925 sent '{"cmd":"proto","ver":3}' -- __init__.py:json_parse:270
                            2014-10-12 15:05:02,912 DEBUG    Main         192.168.178.54:54925 sent '{"cmd":"monitor","items":["gf.room01.switch1.temp","gf.room01.window.closed","gf.room01.window.tilt","gf.room02.window.closed","gf.room02.window.tilt","gf.room03.switch1.temp","gf.room03.window.closed","gf.room03.window.tilt","gf.room04.switch1.temp","gf.room04.door.closed","gf.room04.door.lock","gf.room06.switch1.temp","gf.room06.switch2.temp","gf.room06.slidedoorclosed","gf.room07.switch1.temp","gf.room07.switch2.temp","gf.room07.door.closed","gf.room07.door.tilt","gf.room07.window.closed","gf.room07.window.tilt","gf.room08.switch1.temp","gf.room08.window.closed","gf.room08.window.tilt","gf.room09.switch1.temp","gf.room09.window.closed","gf.room09.window.tilt","gf.room10.switch1.temp","gf.room10.door.closed","gf.room10.door.tilt","gf.room10.window.closed","gf.room10.window.tilt","gf.room99.switch1.temp","env.location.moonphase","env.location.moonlight"]}' -- __init__.py:json_parse:270
                            Erfolgloser PageRefresh (2x F5):
                            Code:
                            2014-10-12 15:05:16,040 DEBUG    Main         WebSocket: closing connection to 192.168.178.54:54925. -- __init__.py:rfc6455_parse:402
                            2014-10-12 15:05:16,044 DEBUG    Main         WebSocketHandler: closing socket 192.168.178.54:54925 -- connection.py:close:303
                            2014-10-12 15:05:17,102 DEBUG    Main         WebSocket: incoming connection from 192.168.178.54:54968 to 0.0.0.0:2424 -- connection.py:accept:188
                            2014-10-12 15:05:21,535 DEBUG    Main         WebSocketHandler: closing socket 192.168.178.54:54901 -- connection.py:close:303
                            Vielen Dank fürs anschauen und kommentieren.

                            Pietz

                            Kommentar


                              #15
                              Bei mir leider das Gleiche

                              Kommentar

                              Lädt...
                              X