Ankündigung

Einklappen
Keine Ankündigung bisher.

smartVISU Pages werden mit SmartHomeNG 1.1 unvollständig generiert

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

    smartVISU Pages werden mit SmartHomeNG 1.1 unvollständig generiert

    Hallo erstmal

    Ich lese hier nun schon seit langem mit und konnte bisher alle meine Fragen per SuFu klären.
    Nun weiss ich aber nicht mehr weiter.

    In letzter Zeit hat sich ja gegenüber dem Image von 2013 einiges getan. Deshalb habe ich meinen RasPi 2 gemäss https://github.com/smarthomeNG/smart...plettanleitung neu aufgesetzt (mit Jessie Lite, knxd, SmartHomeNG 1.1, smartVISU 2.7).

    Nun werden aber in den smartVISU Pages keine Widgets mehr generiert.
    Die navigation.html und die einzelnen Pages werden erstellt, aber die Pages bestehen immer nur aus Icon und Titel und haben keine Blöcke und Widgets.
    Dies sieht dann etwa so aus: Screenshot.png


    Die generierte TreppeEG.html hat folgenden Inhalt:
    HTML-Code:
    /**
    * -----------------------------------------------------------------------------
    * @package     smartVISU
    * @author      Martin Gleiß
    * @copyright   2012
    * @license     GPL [http://www.gnu.de]
    * -----------------------------------------------------------------------------
    */
    
    
    {% extends "rooms.html" %}
    
    {% block content %}
    
        <h1><img class="icon" src='{{ icon0 }}scene_stairs.png' />Treppe EG</h1>
    
        
    
    {% endblock %}
    Die zu Testzwecken einzige Item conf habe ich vom alten funktionierenden System kopiert und lautet folgendermassen (als Original auch im Anhang):
    Code:
    [TreppeEG]
        name = Treppe EG
        sv_page = TreppeEG
        sv_img = scene_stairs.png
        
        [[Licht]]
            name = Licht
            sv_widget = {{ device.dimmer('item', '', 'item.ein_aus', 'item.Wert', 0, 100) }}
            visu_acl = rw
    
    #        [[[dim]]]
    #            knx_dpt = 3
    #            knx_listen = 10/1/1
    #            knx_send = 10/1/1
    #            name = dim
    #            type = list
    #            visu_acl = rw
                
            [[[ein_aus]]]
                knx_dpt = 1
                knx_cache = 10/1/3
                knx_send = 10/1/0
                name = ein/aus
                type = bool
                visu_acl = rw
                
            [[[Wert]]]
                knx_dpt = 5.001
                knx_cache = 10/1/4
                knx_send = 10/1/2
                name = Wert
                type = num
                visu_acl = rw
    Ich habe auch versucht alle Leerzeilen, Einrückungen und Kommentare zu löschen. Dies hat aber auch nichts geändert.

    Auch mit anderen Räumen hat es nicht funktioniert.


    Per CLI werden alle Items aufgelistet und lassen sich auch bedienen:
    Code:
    > la
    Items:
    ======
    env.core.version = 1.1.1
    env.core.update = False
    env.core.upgrade = False
    env.core.start = 2016-07-13 22:39:25.580992+02:00
    env.core.memory = 13643776
    env.core.threads = 7.0
    env.core.garbage = 0.0
    env.core
    env.location.day = False
    env.location.night = True
    env.location.sunrise = 2016-07-14 05:45:32.135816+02:00
    env.location.sunset = 2016-07-14 21:21:19.553323+02:00
    env.location.moonrise = 2016-07-14 16:13:31.161247+02:00
    env.location.moonset = 2016-07-14 01:55:45.202941+02:00
    env.location.moonphase = 3
    env.location.moonlight = 67
    env.location
    env.system.start = 2016-07-12 21:58:19.645673+02:00
    env.system.load = 0.01
    env.system.name = raspberrypi
    env.system
    env
    TreppeEG.Licht.ein_aus = False
    TreppeEG.Licht.Wert = 0
    TreppeEG.Licht
    TreppeEG
    
    > update TreppeEG.Licht.ein_aus = True

    Zu guter Letzt hier noch das Debug-Log. Ich sehe darin nichts verdächtiges.
    Code:
    smarthome@raspberrypi:/usr/local/smarthome/bin $ python3 smarthome.py -d
    2016-07-13 22:35:59,720 INFO     Main         Start SmartHome.py 1.1.1 -- smarthome.py:__init__:245
    2016-07-13 22:35:59,721 DEBUG    Main         Python 3.4.2 -- smarthome.py:__init__:246
    2016-07-13 22:35:59,723 INFO     Main         Init Scheduler -- scheduler.py:__init__:86
    2016-07-13 22:35:59,725 DEBUG    Scheduler    creating 5 workers -- scheduler.py:run:93
    2016-07-13 22:35:59,726 INFO     Main         Init Plugins -- smarthome.py:start:291
    2016-07-13 22:35:59,735 DEBUG    Main         Plugin: knx -- plugin.py:__init__:43
    2016-07-13 22:35:59,751 DEBUG    Main         Plugin: visu -- plugin.py:__init__:43
    2016-07-13 22:35:59,779 DEBUG    Main         Plugin: cli -- plugin.py:__init__:43
    2016-07-13 22:35:59,785 DEBUG    Main         Plugin: sql -- plugin.py:__init__:43
    2016-07-13 22:35:59,804 DEBUG    Main         SQLite 3.8.7.1 -- __init__.py:__init__:62
    2016-07-13 22:35:59,848 DEBUG    Main         SQLite: database integrity ok -- __init__.py:__init__:78
    2016-07-13 22:35:59,858 DEBUG    Main         SQLite pack next time: 2016-07-14 03:02:00+02:00 -- scheduler.py:_next_time:303
    2016-07-13 22:35:59,860 INFO     Main         Init Items -- smarthome.py:start:297
    2016-07-13 22:35:59,900 DEBUG    Main         Item env.core.memory = 16924672.0 via SQLite None None -- item.py:set:476
    2016-07-13 22:35:59,911 DEBUG    Main         Item env.core.threads = 7.0 via SQLite None None -- item.py:set:476
    2016-07-13 22:35:59,921 DEBUG    Main         Item env.core.garbage = 0.0 via SQLite None None -- item.py:set:476
    2016-07-13 22:35:59,923 DEBUG    Main         Item env.core: no type specified. -- item.py:__init__:242
    2016-07-13 22:35:59,943 DEBUG    Main         Item env.location: no type specified. -- item.py:__init__:242
    2016-07-13 22:35:59,956 DEBUG    Main         Item env.system.load = 0.04 via SQLite None None -- item.py:set:476
    2016-07-13 22:35:59,961 DEBUG    Main         Item env.system: no type specified. -- item.py:__init__:242
    2016-07-13 22:35:59,962 DEBUG    Main         Item env: no type specified. -- item.py:__init__:242
    2016-07-13 22:35:59,969 DEBUG    Main         KNX: ein/aus listen on and init with cache 10/1/3 -- __init__.py:parse_item:262
    2016-07-13 22:35:59,973 DEBUG    Main         KNX: Wert listen on and init with cache 10/1/4 -- __init__.py:parse_item:262
    2016-07-13 22:35:59,974 DEBUG    Main         Item TreppeEG.Licht: no type specified. -- item.py:__init__:242
    2016-07-13 22:35:59,975 DEBUG    Main         Item TreppeEG: no type specified. -- item.py:__init__:242
    2016-07-13 22:35:59,977 INFO     Main         Items: 26 -- smarthome.py:start:329
    2016-07-13 22:35:59,978 INFO     Main         Start Logics -- logic.py:__init__:33
    2016-07-13 22:35:59,979 DEBUG    Main         Reading Logics from /usr/local/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64
    2016-07-13 22:35:59,982 DEBUG    Main         Reading Logics from /usr/local/smarthome/etc/logic.conf -- logic.py:_read_logics:64
    2016-07-13 22:35:59,984 DEBUG    Main         Logic: env_daily -- logic.py:__init__:44
    2016-07-13 22:36:00,008 DEBUG    Main         env_daily next time: 2016-07-14 06:00:00+02:00 -- scheduler.py:_next_time:303
    2016-07-13 22:36:00,009 DEBUG    Main         Logic: env_init -- logic.py:__init__:44
    2016-07-13 22:36:00,013 DEBUG    Main         Logic: env_stat -- logic.py:__init__:44
    2016-07-13 22:36:00,018 DEBUG    Main         env_stat next time: 2016-07-13 22:36:10+02:00 -- scheduler.py:_next_time:303
    2016-07-13 22:36:00,020 DEBUG    Main         Logic: env_loc -- logic.py:__init__:44
    2016-07-13 22:36:00,025 INFO     Main         Start Plugins -- plugin.py:start:65
    2016-07-13 22:36:00,026 DEBUG    Main         Starting knx Plugin -- plugin.py:start:67
    2016-07-13 22:36:00,028 DEBUG    Main         Starting visu Plugin -- plugin.py:start:67
    2016-07-13 22:36:00,030 DEBUG    Main         Starting cli Plugin -- plugin.py:start:67
    2016-07-13 22:36:00,034 DEBUG    Main         Starting sql Plugin -- plugin.py:start:67
    2016-07-13 22:36:00,265 DEBUG    Connections  KNX: connected to 127.0.0.1:6720 -- connection.py:connect:392
    2016-07-13 22:36:00,267 DEBUG    Connections  KNX: reading eibd cache -- __init__.py:handle_connect:121
    2016-07-13 22:36:00,270 DEBUG    Connections  KNX: enable group monitor -- __init__.py:handle_connect:125
    2016-07-13 22:36:00,272 DEBUG    Connections  WebSocket: binding to 0.0.0.0:2424 (TCP) -- connection.py:connect:160
    2016-07-13 22:36:00,274 DEBUG    Connections  CLI: binding to 0.0.0.0:2323 (TCP) -- connection.py:connect:160
    2016-07-13 22:36:05,261 DEBUG    env_init     Item env.core.version = 1.1.1 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,317 DEBUG    env_init     Item env.core.start = 2016-07-13 22:36:05.314981+02:00 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,321 DEBUG    env_loc      Item env.location.sunrise = 2016-07-14 05:45:32.135816+02:00 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,326 DEBUG    env_init     Item env.system.name = raspberrypi via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,327 DEBUG    sh.gc        Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:522
    2016-07-13 22:36:05,364 DEBUG    env_loc      Item env.location.sunset = 2016-07-14 21:21:19.553323+02:00 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,373 DEBUG    env_init     Item env.system.start = 2016-07-12 21:58:19.370448+02:00 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,430 DEBUG    env_loc      Item env.location.moonrise = 2016-07-14 16:13:31.161247+02:00 via Logic None None -- item.py:__update:37  3
    2016-07-13 22:36:05,436 DEBUG    sh.gc        Object references: 10989 -- smarthome.py:_maintenance:514
    2016-07-13 22:36:05,452 DEBUG    env_loc      Item env.location.moonset = 2016-07-14 01:55:45.202941+02:00 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,461 DEBUG    env_loc      Item env.location.moonphase = 3 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,480 DEBUG    env_loc      Item env.location.night = True via Logic None None -- item.py:__update:373
    2016-07-13 22:36:05,800 DEBUG    Scheduler    env_loc next time: 2016-07-13 23:06:05+02:00 -- scheduler.py:_next_time:303
    2016-07-13 22:36:05,808 DEBUG    Scheduler    sh.gc next time: 2016-07-14 02:04:00+02:00 -- scheduler.py:_next_time:303
    2016-07-13 22:36:10,364 DEBUG    env_stat     Item env.core.memory = 15650816 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:10,375 DEBUG    env_stat     Item env.system.load = 0.01 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:10,381 DEBUG    env_stat     Item env.location.moonlight = 67 via Logic None None -- item.py:__update:373
    2016-07-13 22:36:10,839 DEBUG    Scheduler    env_stat next time: 2016-07-13 22:41:10+02:00 -- scheduler.py:_next_time:303
    2016-07-13 22:36:28,774 INFO     Main         knx: 1.0.100 set 20/3/13 to 0ca1 -- __init__.py:parse_telegram:189
    2016-07-13 22:36:29,583 DEBUG    Main         WebSocket: incoming connection from 192.168.0.179:61861 to 0.0.0.0:2424 -- connection.py:accept:187
    2016-07-13 22:36:29,585 DEBUG    Main         rfc6455 Handshake -- __init__.py:rfc6455_handshake:392
    2016-07-13 22:36:29,642 DEBUG    Main         192.168.0.179:61861 sent '{"cmd":"proto","ver":3}' -- __init__.py:json_parse:273

    Hat jemand eine Idee, woran dies liegen könnte?
    Ich weiss nicht mehr, wo ich noch suchen soll.

    Danke und Gruss
    Stefan
    Angehängte Dateien
    Zuletzt geändert von smai; 15.07.2016, 15:56. Grund: gelöst

    #2
    Hi Stefan,

    Deine Konfiguration enthält einen einfachen Fehler. Es muss

    Code:
    sv_page = room
    in der TreppeEG.conf lauten
    Viele Grüße
    Martin

    There is no cloud. It's only someone else's computer.

    Kommentar


      #3
      Achso, vielen Dank Martin.

      Ich dachte, das "room" in der Doku sei ein Platzhalter für den Namen des Raumes.

      Mit Smarthome.py 1.0 hat das noch funktioniert. Wenn ich mir den Sourcecode im im GIT anschaue, hat es da anscheinend gar keine Rolle gespielt, welchen Wert das Attribut sv_page hatte - es musste einfach vorhanden sein. Dies wurde erst im develop-Branch geändert, der dann wohl für SmartHomeNG 1.1 gemerged wurde.

      Kommentar

      Lädt...
      X