Tablet_UI zeigt keine Daten

Begonnen von moerte, 21 Februar 2018, 16:29:54

Vorheriges Thema - Nächstes Thema

moerte

Hallo, muss jetzt mal doch einen Thread aufmachen - hoffe ist OK.
Da ich seit tagen an gewissen Widgets arbeite und ich mit überhaupt keinen zum Ziel komme denke ich das es sich um einen speziellen Fehler handelt bei mir.
Egal was ich machen will .. Temperatursensor, Wetter und jetzt Kalender über das widget Calview
... bei keinen der Widgets zeigt es mir Irgendwelche Daten an - NICHTS - nur leeres Feld.
Ich hoffe jemand hat einen ausschlaggebenden Tipp - woran es liegen könnte.

Das einzigste was geht sind Lichtschalter an aus :/

LG und einen schönen Abend

drhirn

Zitat von: moerte am 21 Februar 2018, 16:29:54
Ich hoffe jemand hat einen ausschlaggebenden Tipp - woran es liegen könnte.

Sehr wahrscheinlich am schlechten Wetter.

Aber im Ernst, du musst schon genauere Infos rüber rücken.
Spontaner Tipp wäre die Entwicklerkonsole im Browser (meistens F12) zu bemühen und nachzusehen, ob beim Reload von FTUI irgendwelche Fehler auftreten.
Dann könnte man noch einen simplen Dummy in FHEM anlegen und in FTUI ein ganz einfaches Label-Widget.
Und so weiter

moerte

Danke vorerst für die Antwort..
meine index sieht so aus:


<!DOCTYPE html>
<html>

<head>
    <!--
     /* FHEM tablet ui */
     /*
     * UI builder framework for FHEM
     *
     * Version: 2.5.*
     * URL: https://github.com/knowthelist/fhem-tablet-ui
     *
     * Copyright (c) 2015-2017 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 TABLETUI HTTPSRV ftui ./www/tablet Tablet' in fhem.cfg
     * - Tadaaa! A new fhem ui in http://<fhem-url>:8083/fhem/tablet/
     */
    -->
    <link rel="icon" href="favicon.ico" type="image/x-icon" />

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

    <script src="js/fhem-tablet-ui.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="../pgm2/cordova-2.3.0.js" defer></script>
    <script src="../pgm2/webviewcontrol.js" defer></script>
    <!-- End for WebViewControl -->

    <title>FHEM-Tablet-UI</title>
</head>

<body>

    <div class="gridster">
        <ul>
<li data-row="2" data-col="2" data-sizex="3" data-sizey="2">
<header>Kalender</header>

<div data-type="calview"
     data-device="Markus_Linda"
     data-get="all"
     data-detail='["bdate","btime","summary"]'
     data-detailwidth='["30","30","40"]'></div>

</li>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="2">
<header>Lichtschalter</header>
<div data-type="switch"
            data-device="Hauslicht"
            data-get-on="on"
            data-get-off="off"></div>
<div data-type="label" class="">Hauslicht</div>

<div data-type="switch"
            data-device="Beckenlampe"
            data-get-on="on"
            data-get-off="off"></div>
<div data-type="label" class="">Beckenlampe</div>

</li>

<li data-row="2" data-col="2" data-sizex="1" data-sizey="2">
<header>Wetter</header>
           <div data-type="weather"
             data-device="Wetter"
             data-get="fc1_condition"
             data-imageset="kleinklima">
           </div>
   <div data-type="label" data-device="Wetter" data-get="temp_c" data-unit=" &deg;C" class="cell medium"></div>
<div class="centered top-space">
   <div data-type="label" span class="inline big blue cell medium" data-device="Wetter" data-get="fc1_low_c" data-unit=" &deg;C"></div>
  &nbsp;/&nbsp;&nbsp;
  <div data-type="label" span class="inline big orange cell medium" data-device="Wetter" data-get="fc1_high_c" data-unit=" &deg;C"></div>   
    </div>
        </li>

<li data-row="1" data-col="3" data-sizex="2" data-sizey="1">
    <header>Heizraum</header>
    <div data-type="thermostat" data-device="Heizraum" data-get="temperature" data-temp=""
         data-min="-10" data-max="30" data-step=".1" data-unit="°"
         class="readonly top-space"></div>
         <div class="top-narrow-2x darker">Innen</div>

</li>



<li data-row="2" data-col="1" data-sizex="1" data-sizey="1">
<div data-type="clock" data-format="H:i"></div>
</li>

        </ul>
    </div>
</body>

</html>


Wie zu sehen erstmal nur egtl simple widgets; weather, calview, termostat..
bei keinem zeigt es wert - siehe anhang.

drhirn

OT aber:
<div data-type="label" class="">Hauslicht</div>
Den "Fehler" macht doch auch wirklich jeder. Inklusive mir damals  ;D
Ein
<div>Hauslicht</div>
reicht vollkommen für statischen Text. Kein Grund, extra das Widget-Label zu bemühen.

Aber, zurück zum Thema.
Erstell doch bitte mal einen Dummy

defmod Test01 dummy
set Test01 on

Dann in FTUI ein simples Label:
<div data-type="label" data-device="Test01"></div>
Dann erzähl, was das Widget anzeigt.

Und ruf bitte mal die index_state.html auf und mach ein Screenshot davon.

moerte

vielen dank dass du hilft..
hab ich mal gemacht und hier auch noch die index dazu


<title>FHEM-Tablet-UI</title>
</head>

<body>

    <div class="gridster">
        <ul>
<li data-row="2" data-col="2" data-sizex="3" data-sizey="2">
<header>Kalender</header>

<div data-type="label" data-device="Test01"></div>
</li>


        </ul>
    </div>
</body>


es zeigt zumindest "on" an

hab noch paar bilder gemacht...wie gewünscht

fireb1676

Hi - ich habe das gleiche Problem - seitdem ich vor zwei wochen ein Update gemacht habe.

auch dummy angelegt - zeigt auch ON.

Magst du bei mir bitte auch mal reinschauen - habe auch nach langem suchen und viel ausprobieren keine weitere Idee mehr.
DANKE!

Output von Index_state anbei:

Base dir: ./
fhem-tablet-ui.js:2289:1
jQuery dynamically loaded
fhem-tablet-ui.js:2298:17
Filename: index_state.html
fhem-tablet-ui.js:1942:13
FHEM dir: http://192.168.1.7:8083/fhem/
fhem-tablet-ui.js:1942:13
Got csrf from FHEM:null
fhem-tablet-ui.js:1942:13
fhem-tablet-ui.css dynamically loaded. Waiting until it is ready to use...
fhem-tablet-ui.js:1942:13
fhem-tablet-ui.css dynamically loaded. Waiting until it is ready to use...
fhem-tablet-ui.js:1942:13
fhem-tablet-ui.css is ready to use.
fhem-tablet-ui.js:1942:13
initPage - area=
fhem-tablet-ui.js:1942:13
initWidgets - area=
fhem-tablet-ui.js:1942:13
init templates - Done
fhem-tablet-ui.js:1942:13
initWidgets - Done
fhem-tablet-ui.js:1942:13
initPage: 7.2ms
fhem-tablet-ui.js:771:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1942:13
restartLongpoll
fhem-tablet-ui.js:1942:13
stopLongpoll
fhem-tablet-ui.js:1942:13
start shortpoll
fhem-tablet-ui.js:1942:13
send to FHEM: jsonlist2 WEB STATE longpoll
fhem-tablet-ui.js:1942:13
start shortpoll in (ms):30000
fhem-tablet-ui.js:1942:13
get jsonlist2: 49.5ms
fhem-tablet-ui.js:878:17
shortpoll: fhemJSON.Results.length=1
fhem-tablet-ui.js:1942:13
shortPoll - Done
fhem-tablet-ui.js:1942:13
TypeError: ftui.deviceStates.WEB.longpoll is undefined
[Weitere Informationen]
fhem-tablet-ui.js%20line%201317%20%3E%20eval:1:1
startLongpoll: true
fhem-tablet-ui.js:1942:13
longpoll: websockets not supportetd or not activated > fall back to AJAX
fhem-tablet-ui.js:1942:13
Longpoll re-started
fhem-tablet-ui.js:1942:13
ajax lomgpoll responseURL=
fhem-tablet-ui.js:1942:13
ajax longpol  statusText=
fhem-tablet-ui.js:1942:13
start shortpoll in (ms):900000
fhem-tablet-ui.js:1942:13
Page became visible again -> start healthCheck in 3 secondes
fhem-tablet-ui.js:1942:13
--------- start healthCheck --------------
fhem-tablet-ui.js:1530:13
now: Wed Feb 21 2018 21:01:14 GMT+0100
fhem-tablet-ui.js:1531:13
FTUI version: 2.6.40
fhem-tablet-ui.js:1532:13
Longpoll: true
fhem-tablet-ui.js:1533:13
Longpoll type: websocket
fhem-tablet-ui.js:1534:13
Longpoll objects there: true
fhem-tablet-ui.js:1535:13
Longpoll current line: 1
fhem-tablet-ui.js:1537:13
Longpoll last event before: 39 Sekunde(n)
fhem-tablet-ui.js:1538:13
Longpoll last reading update before: 42 Sekunde(n)
fhem-tablet-ui.js:1539:13
Shortpoll interval: 900
fhem-tablet-ui.js:1540:13
Shortpoll last run before: 41 Sekunde(n)
fhem-tablet-ui.js:1541:13
FHEM dev/par count: 1
fhem-tablet-ui.js:1542:13
FTUI known devices count: 3
fhem-tablet-ui.js:1543:13
Current modules count: 0
fhem-tablet-ui.js:1544:13
Current subscriptions count: 0
fhem-tablet-ui.js:1556:13
Page length: 7269
fhem-tablet-ui.js:1578:13
Widgets count: 0
fhem-tablet-ui.js:1579:13
--------- end healthCheck ---------------

Und screenshot mit Fehler anbei.

drhirn

Tja, ehrlich gesagt steh ich da jetzt auch an. Eure JavaScript-Fehler sind merkwürdig.

Was mich interessieren würde wäre, ob die auch kommen, wenn ihr auf AJAX umstellt. Dazu in der FTUI index.html bitte

<meta name="longpoll" content="1">
<meta name="longpoll_type" content="ajax">


Und beim zugehörigen FHEMWEB Device:
attr <DeviceName> longpoll 1

Dann FTUI mit STRG+F5 mal neu laden.

Ich gehe richtig davon aus, dass FTUI + FHEM aktuell sind und zwischenzeitlich mal ein Neustart von FHEM gemacht wurde?

moerte

Tja was soll ich sagen ?? :/
...trau mich gar nicht :-)

- hab fhem und tablet UI update gemacht und jetzt geht alles wie gewollt.
also sag ich an dieser Stelle - Vielen Dank und Problem gelöst :D

DANKE DANKE DANKE

fireb1676

same here....nochmal update gemacht und schon sind die Werte wieder da. Letztes update war letztes Wochenende...strange. Anyway...it's working. Danke fürs checken!

pillem98

Hallöhen

ich habe das selbe Problem wie oben ...
nur bei mir kommt nichmal das "on" beim dummy device