Ankündigung

Einklappen
Keine Ankündigung bisher.

Exeptions nach HS Umstellung auf neue SW

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

    Exeptions nach HS Umstellung auf neue SW

    Hallo,

    kaum gibt es eine neue HS Software, schon bauche ich wieder das Forum.

    Ich habe meinen homeserver auf die neue Software umgestellt.
    Nun habe ich, ohne das Projekt geändert habe folgendes:
    Stamm-Error

    CGatterItem SpeicherID : [6001L, 330L, 19376L, 1038L, 3L]CGatterItem SpeicherID : [6001L, 332L, 19957L, 1039L, 0L]

    Exceptions

    01.07.2007 14:01:35 (1)
    File "/hs/compile/hs_logik.py", line 119, in addFormel
    File "[string]", line 1
    ))
    ^
    SyntaxError: invalid syntax
    [5012L, 19965L, 0L, 'EN[1]]0 and EN[1][24', '))', '', 0L, 0L, 1L, 0L]

    d.h. das Projekt lief auf der letzten HS Software ohne Fehlermeldungen, jetzt mit Exeptions.

    Könnte es sein das hier der Baustein 19965L, Probleme
    macht? Hatte den Bautein von Thilo Kuehn geladen (19965_Uhrzeit_to_14ByteText.hsl).

    Freue mich auf Hilfe.

    Gruß Stefan

    #2
    sicher, das du die letzte Version des Logikbausteines hast?

    Lade ihn dir noch mal von Thilos Seite und vergleiche ihn mit deiner Version.

    Ansonsten sieht es aus als ob in dem Baustein ein "Syntaxerror" ist.

    ( " oder sowas falsch...

    Kommentar


      #3
      Könnte es sein das hier der Baustein 19965L, Probleme
      macht? Hatte den Bautein von Thilo Kuehn geladen (19965_Uhrzeit_to_14ByteText.hsl).
      Nein, der Baustein an sich nicht. Er ist nur in dem jetzigem Update implementiert und Du bekommst nun wahrscheinlich "Identifikationsprobleme", weil doppelt...
      Gruß
      Mein
      EIB
      Ist
      KNX

      Kommentar


        #4
        Hallo,

        vielen Dank.
        Ich habe den aktuellsten Baustein.
        Doppelt ist hier auch nichts. Habe mit WinMerge
        schon bei der Installation alles überprüft.

        Kann man aus der Exeption Meldung einen Rückschluss
        auf die Ursache machen?

        Gruß Stefan

        Kommentar


          #5
          Ich sehe da noch zwei weitere evtl. beteiligte Bausteine:
          19957 und 19376

          Aber poste mal die 5012 Zeilen aus deinem Baustein.
          Gruss aus Radevormwald
          Michel

          Kommentar


            #6
            hallo,

            der einfachheitshalber poste ich hier einen beitrag vom logikmeister matthias:

            -------------------

            Das ist die alte Version mit den " " anstelle der ' ' in der Zeile:

            5012|0|"EN[1]>0 and EN[1]<24"|"EN[1]*3600+(__import__('time').altzone-__import__('time').timezone)+__import__('time').mk time(__import__('time').strptime(__import__("strin g").join([str(int(__import__('time').gmtime()[2])),str(int(__import__('time').gmtime()[1])),str(int(__import__('time').gmtime()[0]))],'.'),"%d.%m.%Y"))"|""|0|0|1|0


            hinten bei der Datumsmaskierung.

            ----------------------

            das problem hatte ich bei mir auch.
            glück auf

            günther

            Kommentar


              #7
              Habe mir mal im \HSFS\exp22\tsrc die Stamm.dat angesehen ,die fehlerhafte Zeile ist da:

              5012|19965|0|"EN[1]>0 and EN[1]<24"|"))"|""|0|0|1|0

              die orginale Zeile aus dem Modul

              19965_Uhrzeit_to_14ByteText.hsl sieht so aus:
              5012|0|"EN[1]>0 and EN[1]<24"|"__import__('time').mktime(__import__('time') .strptime(__import__("string").join([str(int(EN[1])%24),str(int(EN[1]*60)%60),str(int(EN[1]*3600)%60),str(int(__import__('time').gmtime()[2])),str(int(__import__('time').gmtime()[1])),str(int(__import__('time').gmtime()[0]))],' '),"%H %M %S %d %m %Y"))"|""|0|0|1|0

              Hier hat also der Experte etwas verändert.

              Ihr sagt also das ich:
              "%H %M %S %d %m %Y"
              in
              ´%H %M %S %d %m %Y´
              anden soll und dann solltes es gehen?
              Ich kann es leider erst nächstes Wochenende
              ausprobieren.

              Gruß Stefan


              ### IMPORT-BS : 19965/19965_Uhrzeit_to_14ByteText.hsl
              5001|19965|4|4|1|8|1
              5002|19965|1|0
              5002|19965|2|0
              5002|19965|3|1
              5002|19965|4|0
              5004|19965|1|""|0|2
              5004|19965|2|""|0|2
              5004|19965|3|""|0|2
              5004|19965|4|""|0|2
              5003|19965|1|0|0
              5003|19965|2|0|0
              5003|19965|3|0|0
              5003|19965|4|0|0
              5003|19965|5|0|0
              5003|19965|6|0|0
              5003|19965|7|0|0
              5003|19965|8|0|0
              5012|19965|0|"EI==1"|"['Januar','Februar','März','April','Mai','Juni','Ju li','August','September','Oktober','November','Dez ember']"|""|0|0|6|0
              5012|19965|0|"EI==1"|"['Jan.','Feb.','März','Apr.','Mai','Juni','Juli','A ug.','Sep.','Okt.','Nov.','Dez.']"|""|0|0|8|0
              5012|19965|0|"(EI==1 or EC[2])"|"'%d.%m.%Y'"|""|0|0|4|0
              5012|19965|0|"(EI==1 or EC[2]) and EN[2]==1"|"'%d.%m.%y'"|""|0|0|4|0
              5012|19965|0|"(EI==1 or EC[2]) and EN[2]==2"|"'%d. %mm %Y'"|""|0|0|4|0
              5012|19965|0|"(EI==1 or EC[2]) and EN[2]==3"|"'%d. %mm %y'"|""|0|0|4|0
              5012|19965|0|"(EI==1 or EC[2]) and EN[2]==4"|"'%d. %mmm %Y'"|""|0|0|4|0
              5012|19965|0|"(EI==1 or EC[2]) and EN[2]==5"|"'%d. %mmm %y'"|""|0|0|4|0
              5012|19965|0|"(EI==1 or EC[4])"|"'%H:%M:%S'"|""|0|0|5|0
              5012|19965|0|"(EI==1 or EC[4]) and EN[4]==1"|"'%H:%M'"|""|0|0|5|0
              5012|19965|0|"EN[1]==0"|"__import__('time').time()"|""|0|0|1|0
              5012|19965|0|"EN[1]==0"|"__import__('time').time()"|""|0|0|2|0
              5012|19965|0|"EN[1]!=0"|"EN[1]"|""|0|0|1|0
              5012|19965|0|"EN[1]!=0"|"__import__('time').time()-EN[1]"|""|0|0|2|0
              # JS da ist der Fehler x (unten)
              5012|19965|0|"EN[1]>0 and EN[1]<24"|"))"|""|0|0|1|0
              5012|19965|0|"EN[1]>0 and EN[1]<24"|"SN[1]"|""|0|0|2|0
              5012|19965|0|"EI==1 or OC[1] or EC[1] or EC[2]"|"__import__('string').replace(SN[4],'%mmm',SN[6][__import__('time').localtime(SN[1])[1]-1])"|""|0|0|7|0
              5012|19965|0|"EI==1 or OC[1] or EC[1] or EC[2]"|"__import__('string').replace(SN[7],'%mm' ,SN[8][__import__('time').localtime(SN[1])[1]-1])"|""|0|0|7|0
              5012|19965|0|"EI==1 or OC[1] or EC[1] or EC[2]"|"__import__('time').strftime(SN[7],__import__('time').localtime(SN[1]))"|""|3|0|0|0
              5012|19965|0|"EI==1 or OC[1] or EC[1] or EC[4]"|"__import__('time').strftime(SN[5],__import__('time').localtime(SN[1]))"|""|4|0|0|0
              5012|19965|0|"EI==1 or AC[3] or AC[4]"|"__import__('string').join([AN[3],AN[4]],', ')"|""|1|0|0|0
              5012|19965|0|"1"|"''"|""|0|0|3|0
              5012|19965|0|"SN[2] and int(SN[2]/86400)>0"|"__import__('string').join([str(int(SN[2]/86400)),' d, '],'')"|""|0|0|3|0
              5012|19965|0|"SN[2] and (EI==1 or OC[1] or EC[1])"|"__import__('string').join([SN[3],__import__('time').strftime('%H:%M:%S',__import__ ('time').gmtime(SN[2]))],'')"|""|2|0|0|0
              5012|19965|0|"not SN[2] and (EI==1 or OC[1] or EC[1])"|"'---'"|""|2|0|0|0
              5012|19965|0|"EN[3] and (EI==1 or OC[1] or EC[1])"|""|"EN[3]"|0|1|0|0

              Kommentar


                #8
                So ist es. Die " sind falsch an der Stelle.
                Gruß Matthias
                EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
                - PN nur für PERSÖNLICHES!

                Kommentar


                  #9
                  Zitat von AScherff Beitrag anzeigen
                  ( " oder sowas falsch...
                  Habe ich was anderes gesagt?!

                  Kommentar


                    #10
                    Moin zusammen,

                    bei mir hat das ändern der " in ' leider nicht geholfen

                    Code:
                    [B]Stamm-Error[/B]
                    
                      CExtDatItem Daten : [8001L, 'sys/cobjects.xml', 'sys/cobjects.xml', 'text/xml']  ([URL="http://192.168.10.100:8080/hslist?lst=debug&user=Hiele&pw=rooter#start"]back[/URL])
                    [B]Exceptions[/B]
                    
                      [B]02.07.2007 09:26:16 (1)[/B]
                      File "/hs/compile/hs_logik.py", line 119, in addFormel
                      File "[string]", line 1
                    ).join([str(int(EN[1])%24),str(int(EN[1]*60)%60),str(int(EN[1]*3600)%60),str(int(__import__('time').gmtime()[2])),str(int(__import__('time').gmtime()[1])),str(int(__import__('time').gmtime()[0]))],' '),'%H %M %S %d %m %Y'))
                        ^
                    SyntaxError: invalid syntax
                    [5012L, 19965L, 0L, 'EN[1]]0 and EN[1][24', ").join([str(int(EN[1])%24),str(int(EN[1]*60)%60),str(int(EN[1]*3600)%60),str(int(__import__('time').gmtime()[2])),str(int(__import__('time').gmtime()[1])),str(int(__import__('time').gmtime()[0]))],' '),'%H %M %S %d %m %Y'))", '', 0L, 0L, 1L, 0L]
                    Was mir aber mehr sorgen macht, ist der Stamm-Error. Leider erstellt der HS die xml Datei bei mir nicht.

                    Konnte in der Hilfe leider auch dazu nichts finden.

                    Habt ihr da eine Idee?
                    Gruß Hiele
                    ______________________________________________
                    EIB Stuff:
                    Gira Homeserver V2 / Gira 15" Touch-Panel / Info-Display2 / Wiregate / Wetterstation

                    Kommentar


                      #11
                      Hallo Hiele,

                      sieht so aus, als ob du die alte Version des Bausteines hast. Habe gerade mal hier in den Downloadbereich eine bereinigte Version eingestellt.
                      Gruß Matthias
                      EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
                      - PN nur für PERSÖNLICHES!

                      Kommentar


                        #12
                        Ich hatte das gleiche Bild wie Hiele.
                        Stamm-Error

                        CExtDatItem Daten : [8001L, 'sys/cobjects.xml', 'sys/cobjects.xml', 'text/xml']CBefehlItem Popup Client : 1CMeldungBSItem SpeicherID : [4122L, 2L, 5L, 'HS2START0', 'HS2 wurde gestartet 0', 'HS2 wurde gestartet 0', 10L, 115L]

                        Exceptions

                        01.07.2007 21:57:07 (1)
                        File "/hs/compile/hs_logik.py", line 119, in addFormel
                        File "[string]", line 1
                        ))
                        ^
                        SyntaxError: invalid syntax
                        [5012L, 19965L, 0L, 'EN[1]]0 and EN[1][24', '))', '', 0L, 0L, 1L, 0L]01.07.2007 21:57:07 (1)
                        File "/hs/compile/hs_logik.py", line 119, in addFormel
                        File "[string]", line 1
                        )[6]+2)%7
                        ^
                        SyntaxError: invalid syntax
                        [5012L, 19997L, 0L, '1', ')[6]+2)%7', '', 0L, 0L, 1L, 0L]01.07.2007 21:57:09 (1)
                        File "/hs/compile/hs_logik.py", line 119, in addFormel
                        File "[string]", line 1
                        + str(EN[3])
                        ^
                        SyntaxError: invalid syntax
                        [5012L, 18014L, 1L, '(len(EN[1])]0) and EC[3] and (EN[3]]0)', ' + str(EN[3])', '', 1L, 0L, 0L, 0L]01.07.2007 23:00:32 (6)
                        File "/hs/compile/hs_event.py", line 984, in doSend
                        File "/hs/compile/hs_fkt.py", line 283, in SockConnect
                        error: Timeout Connect




                        Nach dem Einspielen des aktuellen Bausteins von Matthias bleiben folgende Meldungen übrig:

                        Stamm-Error

                        CBefehlItem Popup Client : 1CMeldungBSItem SpeicherID : [4122L, 2L, 5L, 'HS2START0', 'HS2 wurde gestartet 0', 'HS2 wurde gestartet 0', 10L, 115L]

                        Exceptions

                        02.07.2007 11:27:28 (1)
                        File "/hs/compile/hs_logik.py", line 119, in addFormel
                        File "[string]", line 1
                        )[6]+2)%7
                        ^
                        SyntaxError: invalid syntax
                        [5012L, 19997L, 0L, '1', ')[6]+2)%7', '', 0L, 0L, 1L, 0L]02.07.2007 11:27:30 (1)
                        File "/hs/compile/hs_logik.py", line 119, in addFormel
                        File "[string]", line 1
                        + str(EN[3])
                        ^
                        SyntaxError: invalid syntax
                        [5012L, 18014L, 1L, '(len(EN[1])]0) and EC[3] and (EN[3]]0)', ' + str(EN[3])', '', 1L, 0L, 0L, 0L]

                        Komisch ist, das der XML Fehler damit auch weg ist. Im HS Monitor erscheinen jetzt auch die Texte für die KO's.

                        Der 19997 ist auch von Tilo. Kann es sein das dieser Baustein den gleichen Fehler enthält?

                        Hier meine Version:

                        ###################################
                        ### (C) 2004, Tilo Kühn, v1.0
                        ###################################
                        ### BS : Kalenderwoche
                        ###################################
                        5000|"#Zeitfunktionen\Kalenderwoche"|1|1|"Trigger" |1|"Kalenderwoche"
                        5001|1|1|0|1|1
                        5002|1|0|0 # Trigger
                        5003|1|0|1 # Storage1
                        5004|1|0|0|2|0 # KalenderWoche
                        # SN[1]==wochentag des 1.1. des jahres, Mo==0 ... So==6
                        5012|0|"1"|"(__import__('time').strptime(str(int(_ _import__('time').localtime()[0])),"%Y")[6]+2)%7"|""|0|0|1|0
                        # AN[1]==Kalenderwoche
                        5012|0|"1"|"(((__import__('time').localtime()[7]-1)+SN[1]-1)/7)+(SN[1]<6)"|""|1|0|0|0

                        Der 18014 ist von DACOM. Meine Version ist:

                        ###################################
                        ### BS : SLIMDeviceAUDISLIMSERV
                        ###################################
                        #5000|"Text"|Remanent(1/0)|Anz.Eingänge|.n.|Anzahl Ausgänge|.n.|.n.
                        #5001|Anzahl Eingänge|Ausgänge|Offset|Speicher|Berechnung bei Start
                        #5002|Index Eingang|Default Wert|0=numerisch 1=alphanummerisch
                        #5003|Speicher|Initwert|Remanent
                        #5004|ausgang|Initwert|runden binär (0/1)|typ (1-send/2-sbc)|0=numerisch 1=alphanummerisch
                        #5012|abbruch bei bed. (0/1)|bedingung|formel|zeit|pin-ausgang|pin-offset|pin-speicher|pin-neg.ausgang
                        5000|"DaCom Erweiterungen HSSlim\SlimDeviceBasicFunc"|0|8|"E1 Player"|"E2 Play/Stop"|"E3 Vol Rel +/-"|"E4 Vol Abs"|"E5 Skip/Back"|"E6 Shuffle On/Off"|"E7 Pause/Unpause"|"E8 Repeat (0=Off/1=Single/2=Playlist)"|1|"A1 Data"
                        # bei Start nicht berechnen
                        5001|8|1|0|0|0
                        # EN[x]
                        5002|1|""|1
                        5002|2|0|0
                        5002|3|0|0
                        5002|4|0|0
                        5002|5|0|0
                        5002|6|0|0
                        5002|7|0|0
                        5002|8|0|0
                        # Ausgänge
                        5004|1|""|0|1|1
                        #################################################
                        5012|1|"(len(EN[1])>0) and EC[2] and EN[2]"|"EN[1] + chr(124) + 'play'"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[2] and (EN[2]==0)"|"EN[1] + chr(124) + 'stop'"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[3] and (EN[3]>0)"|"EN[1] + chr(124) + 'volRel' + chr(124) + "+" + str(EN[3])"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[3]"|"EN[1] + chr(124) + 'volRel' + chr(124) + str(EN[3])"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[4] and (EN[4]>0)"|"EN[1] + chr(124) + 'volAbs' + chr(124) + str(EN[4])"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[5] and EN[5]"|"EN[1] + chr(124) + 'skip'"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[5] and (EN[5]==0)"|"EN[1] + chr(124) + 'back'"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[6]"|"EN[1] + chr(124) + 'shuffle' + chr(124) + str( int(EN[6]) )"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[7] and EN[7]"|"EN[1] + chr(124) + 'pause'"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[7] and EN[7]==0"|"EN[1] + chr(124) + 'unpause'"|""|1|0|0|0
                        5012|1|"(len(EN[1])>0) and EC[8]"|"EN[1] + chr(124) + 'repeat' + chr(124) + str( int(EN[8]) )"|""|1|0|0|0
                        ##

                        ist der nicht aktuell?

                        Gruß Bruno
                        HS2.0,Wetterstation,Microvis,DALI-GW,Funk-GW,FM446,Mobotix, Squeezebox3,Irtrans,Nevo,Fritz!Box 6360,Dreambox 8k,DOM Butler,Somfy ILT,Qnap TS-509 Pro,Musicpal,AirPort,Neu: 1-wire incl Luftfeuchte,DMX,autom. Wanneneinlauf incl. Ablaufventils, WC Belegung, Anbindung RainBrain, ipad-inWall, Fritzphone

                        Kommentar


                          #13
                          Da liegt der Hund:

                          localtime()[0])),"%Y")[6]+2)%7"|""|0|0|


                          "%Y"

                          zu

                          '%Y'

                          machen!
                          Gruß Matthias
                          EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
                          - PN nur für PERSÖNLICHES!

                          Kommentar


                            #14
                            ...und im 18014 in der Zeile

                            5012|1|"(len(EN[1])>0) and EC[3] and (EN[3]>0)"|"EN[1] + chr(124) + 'volRel' + chr(124) + "+" + str(EN[3])"|""|1|0|0|0

                            das "+" zu '+' machen!

                            Kommentar


                              #15
                              Alle Exceptions weg. Danke für die Hinweise. Spielen nachfolgende Errors noch eine Rolle?
                              Stamm-Error

                              CBefehlItem Popup Client : 1CMeldungBSItem SpeicherID : [4122L, 2L, 5L, 'HS2START0', 'HS2 wurde gestartet 0', 'HS2 wurde gestartet 0', 10L, 115L]

                              Ps: Ups gerade zum Zauberer erklärt worden.

                              Gruß Bruno
                              HS2.0,Wetterstation,Microvis,DALI-GW,Funk-GW,FM446,Mobotix, Squeezebox3,Irtrans,Nevo,Fritz!Box 6360,Dreambox 8k,DOM Butler,Somfy ILT,Qnap TS-509 Pro,Musicpal,AirPort,Neu: 1-wire incl Luftfeuchte,DMX,autom. Wanneneinlauf incl. Ablaufventils, WC Belegung, Anbindung RainBrain, ipad-inWall, Fritzphone

                              Kommentar

                              Lädt...
                              X