Endlosschleife bei Einsatz von data-template

Begonnen von mrabdip, 11 Januar 2018, 14:00:49

Vorheriges Thema - Nächstes Thema

kleineslichtHH

folgende Zeile hat Blödsinn generiert (in der index.html und in einer menueleiste.html:


<div data-type="pagetab" data-url="index.html"  data-icon="fa-home" data-on-background-color="#aa6900" class="big">

Da wird wohl, wie du vermutest hast, ein Zirkelbezug entstanden sein.

mrabdip

ZitatDa wird wohl, wie du vermutest hast, ein Zirkelbezug entstanden sein.[

Dachte ich zuerst auch, da ich in meiner home.html wieder auf die index.html referenziert habe, allerdings nach dem abändern ist das Verhalten immer noch so.

Ich habe mir nun mal eine Test-UI gebaut. Nur mit der Seite index.html, in der werden die beiden Menüseiten (home.html und top.html) eingebunden. In jeder ist ein Pagetab
enthalten, der auf die jeweilige Seite verweist. (start.html und energie.html). Alles ganz einfache Seiten ohne Widgets und sowas.

Also index.html --> home.html --> Pagetab auf start.html
                        --> top.html --> Pagetab auf energie.html

Trotzdem erhalte ich meine Endlossschleife.

index.html:
<!DOCTYPE html>
<html>
<head>
    <!--
     /* FHEM tablet ui */
     /*
     * Just another dashboard for FHEM
     *
     * Version: 1.4.4
     * Requires: jQuery v1.7+, font-awesome, jquery.gridster, jquery.toast
     * URL: https://github.com/knowthelist/fhem-tablet-ui
     *
     * Copyright (c) 2015 Mario Stephan <mstephan@shared-files.de>
     * Under MIT License (http://www.opensource.org/licenses/mit-license.php)
     *
     * - create a new folder named 'tablet' in /<fhem-path>/www
     * - copy all files incl. sub folders into /<fhem-path>/www/tablet
     * - add 'define tablet_ui HTTPSRV tablet www/tablet Tablet Frontend' in fhem.cfg
     * - Tadaaa! A new fhem ui in http://<fhem-url>:8083/fhem/tablet/
     */
    -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="widget_base_width" content="166">
   <meta name="widget_margin" content="2">
    <meta name="widget_base_height" content="95">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="longpoll" content="1"> <!-- 1=longpoll;0=shortpoll every 30sec -->
    <!-- <meta name="longpoll_maxage" content="0"> / -->
    <!--    <meta name="longpoll_type" content="ajax"> / -->
    <meta name="debug" content="0"> <!-- 1=output to console;0=no output -->

    <link rel="stylesheet" href="/fhem/tablet/lib/jquery.gridster.min.css" />
    <link rel="stylesheet" href="/fhem/tablet/css/fhem-tablet-ui.css" />
    <link rel="stylesheet" href="/fhem/tablet/lib/font-awesome.min.css" />
    <link rel="stylesheet" href="/fhem/tablet/lib/jquery.toast.min.css" />

    <!-- define your personal style here, it wont be overwritten  -->
    <!-- link rel="stylesheet" href="/fhem/tablet/css/fhem-green-ui.css" / -->
    <!-- <link rel="stylesheet" href="/fhem/tablet/css/fhem-tablet-ui-user.css" /> / -->

    <script src="/fhem/pgm2/jquery.min.js" defer></script>
    <script src="/fhem/tablet/lib/jquery.toast.min.js" defer></script>
    <script src="/fhem/tablet/lib/jquery.gridster.min.js" defer></script>
    <script src="/fhem/tablet/js/fhem-tablet-ui.min.js" defer></script>

    <!-- Remove this line to enable for usage with WebViewControl
    <script defer>var wvcDevices = {'12345': 'Tablet'}; var wvcUserCssFile="webviewcontrol.css"</script>
    <script src="/fhem/pgm2/cordova-2.3.0.js" defer></script>
    <script src="/fhem/pgm2/webviewcontrol.js" defer></script>
    <!-- End for WebViewControl -->

    <title>FHEM-Tablet-UI</title>
</head>
<body>
<div class="gridster">
        <ul>
          <li data-row="1" data-col="1" data-sizex="1" data-sizey="2" data-template="home.html"></li>   
         <li data-row="1" data-col="2" data-sizex="1" data-sizey="2" data-template="top.html"></li>
        </ul>
</div>
</body>
</html>


home.html:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="gridster">
<ul>
   <header class="large">HOME</header>
   <div data-type="pagetab"
       data-url="start.html"
       data-background-icon="fa-circle-thin"
       data-on-background-color="#0040FF"
       data-on-color="#808080"
       data-off-color="#808080"
       data-icon="fa-home"
       class="default bigger top-space">
   </div>
</ul>
</div>
</body>
</html>



top.html:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="gridster">
<ul>
   <header class="large">TOP</header>
   <div data-type="pagetab"
       data-url="energie.html"
       data-background-icon="fa-circle-thin"
       data-on-background-color="#0040FF"
       data-on-color="#808080"
       data-off-color="#808080"
       data-icon="fa-home"
       class="default bigger top-space">
   </div>
</ul>
</div>
</body>
</html>



start.html:
<!DOCTYPE html>
<html>
<head>
    <title>Start</title>
</head>
<body>
<div class="gridster">
        <ul>
          <li data-row="1" data-col="1" data-sizex="1" data-sizey="2" data-template="home.html"></li>   
         <li data-row="1" data-col="2" data-sizex="1" data-sizey="2" data-template="top.html"></li>
        </ul>
</div>
</body>
</html>


energie.html:
<!DOCTYPE html>
<html>
<head>
    <title>Energie</title>
</head>
<body>
<div class="gridster">
        <ul>
          <li data-row="1" data-col="1" data-sizex="1" data-sizey="2" data-template="home.html"></li>   
         <li data-row="1" data-col="2" data-sizex="1" data-sizey="2" data-template="top.html"></li>
        </ul>
</div>
</body>
</html>
[/quote]
Fhem 5.8 auf Raspberry 3, KNX-Vollinstallation, Weinzierl-IP/KNX-Interface über KNXD, USB-RFXTRX, Youless110, SmartPI2, IP-Cams, FritzBox/DECT200, Tablet UI

setstate

#17
Du hast eine  doppelte Schleife

Die erste Endlos-Kette sieht so aus:

home > start > home > start > home > start usw.

die zweite ist top > energie > top > energie usw.

Oder ist das falsch reinkopiert?

mrabdip

#18
Nein, sieht schon so aus. Oder ich sehe vor lauter testen den Wald nicht mehr.  Ich dachte aber, dass ich in meinen Unterseiten, um meine "Menüleisten" anzuzeigen, die entsprechenden Seiten einbinden muss. Und zwar die, die ich in der index.html auch habe.

Habe mich dort orientiert, aber vielleicht verrannt? https://wiki.fhem.de/wiki/FTUI_Widget_Pagetab
Fhem 5.8 auf Raspberry 3, KNX-Vollinstallation, Weinzierl-IP/KNX-Interface über KNXD, USB-RFXTRX, Youless110, SmartPI2, IP-Cams, FritzBox/DECT200, Tablet UI

throbin

Hi, anbei ein Log vom Firefox, vielleicht kannst Du mir anhand des Logs einen Tip geben.

Longpoll steht auf "websocket"

<meta name="longpoll" content="1">
<meta name='toast' content='0'>
<meta name="gridster_disable" content="1">
<meta name="debug" content="2">


Log:

Finished load plugin "datetimepicker" for area "[data-uuid="37dfa870-9ff8-48a0-a7a8-391476d8cde0"]"
fhem-tablet-ui.js:1902:13
Load plugin "spinner" for area "[data-uuid="37dfa870-9ff8-48a0-a7a8-391476d8cde0"]"
fhem-tablet-ui.js:1902:13
Start load plugin "spinner" for area "[data-uuid="37dfa870-9ff8-48a0-a7a8-391476d8cde0"]"
fhem-tablet-ui.js:1902:13
function depends_spinner not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: spinner
fhem-tablet-ui.js:1902:13
init widget: name=spinner area=[data-uuid="37dfa870-9ff8-48a0-a7a8-391476d8cde0"]
fhem-tablet-ui.js:1902:13
Finished load plugin "spinner" for area "[data-uuid="37dfa870-9ff8-48a0-a7a8-391476d8cde0"]"
fhem-tablet-ui.js:1902:13
initWidgets - Done
fhem-tablet-ui.js:1902:13
initPage: 1169.32ms
fhem-tablet-ui.js:733:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
initPage - area=[data-uuid="7320ea74-764b-40b2-8acb-7bbc87a5a53c"]
fhem-tablet-ui.js:1902:13
initWidgets - area=[data-uuid="7320ea74-764b-40b2-8acb-7bbc87a5a53c"]
fhem-tablet-ui.js:1902:13
Load plugin "clock" for area "[data-uuid="7320ea74-764b-40b2-8acb-7bbc87a5a53c"]"
fhem-tablet-ui.js:1902:13
Start load plugin "clock" for area "[data-uuid="7320ea74-764b-40b2-8acb-7bbc87a5a53c"]"
fhem-tablet-ui.js:1902:13
function depends_clock not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: clock
fhem-tablet-ui.js:1902:13
init widget: name=clock area=[data-uuid="7320ea74-764b-40b2-8acb-7bbc87a5a53c"]
fhem-tablet-ui.js:1902:13
Finished load plugin "clock" for area "[data-uuid="7320ea74-764b-40b2-8acb-7bbc87a5a53c"]"
fhem-tablet-ui.js:1902:13
initWidgets - Done
fhem-tablet-ui.js:1902:13
initPage: 130.21ms
fhem-tablet-ui.js:733:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
initPage - area=[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]
fhem-tablet-ui.js:1902:13
initWidgets - area=[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]
fhem-tablet-ui.js:1902:13
Load plugin "switch" for area "[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]"
fhem-tablet-ui.js:1902:13
Start load plugin "switch" for area "[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: switch
fhem-tablet-ui.js:1902:13
Finished load plugin "switch" for area "[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]"
fhem-tablet-ui.js:1902:13
Load plugin "label" for area "[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: label
fhem-tablet-ui.js:1902:13
init widget: name=label area=[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "[data-uuid="368c9e8c-ec9e-426b-b1ca-dc425ee78fe6"]"
fhem-tablet-ui.js:1902:13
initWidgets - Done
fhem-tablet-ui.js:1902:13
initPage: 201.26ms
fhem-tablet-ui.js:733:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
initPage - area=[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]
fhem-tablet-ui.js:1902:13
initWidgets - area=[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]
fhem-tablet-ui.js:1902:13
Load plugin "label" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: label
fhem-tablet-ui.js:1902:13
init widget: name=label area=[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Load plugin "symbol" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Start load plugin "symbol" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: symbol
fhem-tablet-ui.js:1902:13
Finished load plugin "symbol" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Load plugin "push" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Start load plugin "push" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: push
fhem-tablet-ui.js:1902:13
Finished load plugin "push" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Load plugin "slider" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Start load plugin "slider" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: slider
fhem-tablet-ui.js:1902:13
init widget: name=slider area=[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]
fhem-tablet-ui.js:1902:13
slider dev:zw_Terrace_Markiese par:statePosition changed to:0
fhem-tablet-ui.js:1902:13
Finished load plugin "slider" for area "[data-uuid="ac95caf9-d54b-4db6-8bf9-d1a3abdc5c72"]"
fhem-tablet-ui.js:1902:13
initWidgets - Done
fhem-tablet-ui.js:1902:13
initPage: 300.18ms
fhem-tablet-ui.js:733:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
initPage - area=[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]
fhem-tablet-ui.js:1902:13
initWidgets - area=[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]
fhem-tablet-ui.js:1902:13
Load plugin "symbol" for area "[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]"
fhem-tablet-ui.js:1902:13
Start load plugin "symbol" for area "[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: symbol
fhem-tablet-ui.js:1902:13
Finished load plugin "symbol" for area "[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]"
fhem-tablet-ui.js:1902:13
Load plugin "label" for area "[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: label
fhem-tablet-ui.js:1902:13
init widget: name=label area=[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "[data-uuid="c1d3311f-16ab-4cac-8319-af7566c0dc85"]"
fhem-tablet-ui.js:1902:13
initWidgets - Done
fhem-tablet-ui.js:1902:13
initPage: 198.39ms
fhem-tablet-ui.js:733:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
initPage - area=[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]
fhem-tablet-ui.js:1902:13
initWidgets - area=[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]
fhem-tablet-ui.js:1902:13
Load plugin "switch" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Start load plugin "switch" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: switch
fhem-tablet-ui.js:1902:13
Finished load plugin "switch" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Load plugin "label" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: label
fhem-tablet-ui.js:1902:13
init widget: name=label area=[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Load plugin "spinner" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Start load plugin "spinner" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
function depends_spinner not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: spinner
fhem-tablet-ui.js:1902:13
init widget: name=spinner area=[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]
fhem-tablet-ui.js:1902:13
Finished load plugin "spinner" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Load plugin "datetimepicker" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Start load plugin "datetimepicker" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "undefined"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "undefined"
fhem-tablet-ui.js:1902:13
Try to init plugin: datetimepicker
fhem-tablet-ui.js:1902:13
Finished load plugin "datetimepicker" for area "[data-uuid="5b44f3c1-3ec8-4c11-b514-a73c8a856970"]"
fhem-tablet-ui.js:1902:13
initWidgets - Done
fhem-tablet-ui.js:1902:13
initPage: 784.86ms
fhem-tablet-ui.js:733:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1902:13
restartLongpoll
fhem-tablet-ui.js:1902:13
stopLongpoll
fhem-tablet-ui.js:1902:13
initPage - area=[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]
fhem-tablet-ui.js:1902:13
initWidgets - area=[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]
fhem-tablet-ui.js:1902:13
Load plugin "switch" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Start load plugin "switch" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: switch
fhem-tablet-ui.js:1902:13
Finished load plugin "switch" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Load plugin "push" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Start load plugin "push" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Try to init plugin: push
fhem-tablet-ui.js:1902:13
Finished load plugin "push" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Load plugin "label" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Try to init plugin: label
fhem-tablet-ui.js:1902:13
init widget: name=label area=[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Load plugin "datetimepicker" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Start load plugin "datetimepicker" for area "[data-uuid="1168d2c2-fb51-4d30-9365-0c941f1e7d67"]"
fhem-tablet-ui.js:1902:13
Start load plugin "label" for area "undefined"
fhem-tablet-ui.js:1902:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1902:13
Finished load plugin "label" for area "undefined"
fhem-tablet-ui.js:1902:13
Try to init plugin: datetimepicker
fhem-tablet-ui.js:1902:13


Danke!

dadoc

@mrandip: Schmeiss mal versuchsweise eines der beiden data-templates raus. Das war bei mir - nach den heute gemachten Updates von fhem und ftui - der Grund für ständige Reloads (https://forum.fhem.de/index.php/topic,82809.msg750872.html#msg750872)
Standort 1: FS20 mit CUL und FHEM auf Raspi. HM-Komponenten (Heizung, Rollladen, Schalter). HM IP über Raspimatic (testweise)
Standort 2: Homematic (Wired) über CCU2 und PocketHome HD
3 x Raspi3 mit piCorePlayer/Kodi für Multiroom Audio (+ Tablets/iPeng/iPods

mrabdip

#21
Ich haben nun in meiner index.html die beiden data-templates drin (home.html und top.html, in denen sind jeweils ein pagetab (start.html und seite1.html)). In den beiden Seiten (start und seite1) habe ich nun nur noch ein data-template (egal ob home oder top). Die Seite flackert einmal kurz und dann ist Ruhe.

Kurz:
Also wenn in der pagetab-Zielseite nur ein data-template drin ist, geht es.
Fhem 5.8 auf Raspberry 3, KNX-Vollinstallation, Weinzierl-IP/KNX-Interface über KNXD, USB-RFXTRX, Youless110, SmartPI2, IP-Cams, FritzBox/DECT200, Tablet UI

dadoc

Standort 1: FS20 mit CUL und FHEM auf Raspi. HM-Komponenten (Heizung, Rollladen, Schalter). HM IP über Raspimatic (testweise)
Standort 2: Homematic (Wired) über CCU2 und PocketHome HD
3 x Raspi3 mit piCorePlayer/Kodi für Multiroom Audio (+ Tablets/iPeng/iPods

mrabdip

ZitatSachichdoch!

Bringt mich aber leider dennoch nicht weiter  ;D

Vor dem Update hat das noch funktioniert. Da hatte ich sogar 5 data-templates eingebunden  :-\
Fhem 5.8 auf Raspberry 3, KNX-Vollinstallation, Weinzierl-IP/KNX-Interface über KNXD, USB-RFXTRX, Youless110, SmartPI2, IP-Cams, FritzBox/DECT200, Tablet UI

throbin

Hi,

dann darf man doch einiges umbauen - warum nimmt man denn nicht einfach die Änderung mit dem "include" Widget nicht wieder heraus, mann kann das für den Widget doch getrennt implementieren, dann sind die data-templates davon nicht betroffen und man hat keine Seiteneffekte zu befürchten?

LG

setstate

#25
Wäre auch ne Möglichkeit. Aber dann werden die Unsauberkeiten wieder verschleiert und es geht irgendwie zufällig.

https://wiki.fhem.de/wiki/FTUI_Widget_Pagetab


throbin

ZitatAlso wenn in der pagetab-Zielseite nur ein data-template drin ist, geht es.
Ok, das muss man sich merken! Ich probiere es mal mit dem Pagebutton aus.

throbin

Sieht Euch die letzten Posts aus https://forum.fhem.de/index.php/topic,82568.0/all.html#lastPost an, momentan gibt es noch keine Lösung dafür, außer dass man auf das data-template verzichtet.

setstate

ich habe die alte template Variante wieder eingebaut. Damit sollte das Thema jetzt beendet sein

throbin

Hi,

ich habe es leider erst jetzt geschafft das ganze mit pagebutton zu testen. Folgendes kann ich VOR dem Update von setstate
Zitatich habe die alte template Variante wieder eingebaut. Damit sollte das Thema jetzt beendet sein
und NACH dem update beobachten:
- Performance ist wieder deutlich besser geworden
- Includes funktionieren (zumindest mit pagebutton) wie früher
Datei 1:

<div data-type="include" data-url="4_wohnen_inc_kueche.html"></div>

Datei 2:

<div data-type="include" data-url="templates/template_shutters_v1.html" data-parameter='{"par01":"zw_Kueche_Rollo_FL","par02":"Küchenfenster (links)"}'></div>
<div data-type="include" data-url="templates/template_shutters_v1.html" data-parameter='{"par01":"zw_Kueche_Rollo_FR","par02":"Küchenfenster (rechts)"}'></div>


@setstate Danke!!!