Hauptmenü

FTUI 2.6

Begonnen von setstate, 11 Februar 2017, 14:59:21

Vorheriges Thema - Nächstes Thema

michaelfhem

wenn ich richtig verstanden habe ist es ohne meta name Filter aber schneller oder weniger Daten, korrekt?

Was muss man dann machen daamit readings auch auf neue Arte und Weise aktualisiert werden?

Grüße
raspberry Pi 3 + jessie + fhem
Devices: Fritz Dect 200, Homematic (HMLan-Gateway), FS20 (CUL-Stick), Hue-Gateay, Sonos

setstate

Richtig.
Du muss rausbekommen, warum der Filter nicht von FHEM verstanden wird. Was gesendet wird steht im fhemlog oder siehst du in den Developertools. Ich vermute deine Namensgleichheit von Type und Device Name.

michaelfhem

Namensgleichheit war es nicht. Habe ja gleiches Verhalten bei HMS_Keller (siehe auch 461). Aber ich werd es trotzdem nochmal testen.
raspberry Pi 3 + jessie + fhem
Devices: Fritz Dect 200, Homematic (HMLan-Gateway), FS20 (CUL-Stick), Hue-Gateay, Sonos

Nobby1805

Zitat von: setstate am 19 März 2017, 16:42:06
Ich vermute deine Namensgleichheit von Type und Device Name.
... aber das ist bei mir nicht so

wo steht das denn im fhemlog?
FHEM-Featurelevel: 6.2   (fhem.pl:28227/2023-11-29) auf Windows 10 Pro mit Strawberry Perl 5.32.1.1-32bit
TabletUI: 2.7.15
IO: 2xHMLAN(0.965)|HMUSB2(0.967)

Nobby1805

@setstate: Sorry, aber irgendwas kapiere ich nicht :(

Ich habe jetzt eine Testseite auf der nur 1 Sonos Player angezeigt wird ... wenn ich diesen starte dann sieht man im FHEM direkt das der transportState auf PLAYING wechselt ... auf der FTUI-Seite tut sich nix

Ich habe jetzt mal etwas herumgespielt und jetzt steht    <meta name="longpoll" content="1"> <!-- 1=longpoll;0=shortpoll every 30sec -->
   <meta name="shortpoll_interval" content="10"> 


Jetzt ändert sich etwas, aber erst nach etlicher Verzögerung ... es kann doch nicht sein, dass man das Interball auf 1 stellen muss, bei anderen Readings, z.B. Temperaturen, ändert der Wert sich doch sofort (das ist zumindest bisher immer mein Eindruck gewesen)

start shortpoll in (ms):10000
send to FHEM: set Sonos_Wohnzimmer Play
start shortpoll
send to FHEM: jsonlist2 .*
start shortpoll in (ms):10000
start shortpoll
send to FHEM: jsonlist2 .*
start shortpoll in (ms):10000
--------- start healthCheck --------------
now: Sun Mar 19 2017 23:27:20 GMT+0100 (Mitteleuropäische Zeit)
   "now:"
   [date] Sun Mar 19 2017 23:27:20 GMT+0100 (Mitteleuropäische Zeit)

FTUI version: 2.6.14
Longpoll: true
Longpoll type: websocket
Longpoll objects there: true
Longpoll curent line: 0
Longpoll last event before: 49 Sekunde(n)
Longpoll last reading update before: 17213 Tag(e) 23 Stunde(n) 27 Minute(n) 20 Sekunde(n)
Shortpoll interval: 10
Shortpoll last run before: 28 Sekunde(n)
FHEM dev/par count: 4928
FTUI known devices count: 224
Page length: 17090
Widgets count: 27
--------- end healthCheck ---------------
get jsonlist2: 17.735,218ms
shortpoll: fhemJSON.Results.length=235
update done for "Sonos_Wohnzimmer:transportState"
shortPoll - Done
read jsonlist2: 78,758ms
shortpoll: fhemJSON.Results.length=235
shortPoll - Done
read jsonlist2: 40,179ms
start shortpoll in (ms):10000
start shortpoll
send to FHEM: jsonlist2 .*
start shortpoll in (ms):10000
start shortpoll in (ms):10000
send to FHEM: set Sonos_Wohnzimmer Pause
get jsonlist2: 1.885,504ms
shortpoll: fhemJSON.Results.length=234
update done for "Sonos_Wohnzimmer:currentTrackPosition"
slider dev:Sonos_Wohnzimmer par:currentTrackPositionSec changed to:272
slider dev:Sonos_Wohnzimmer par:currentTrackPositionSec changed to:272
slider dev:Sonos_Wohnzimmer par:currentTrackPositionSec changed to:272
update done for "Sonos_Wohnzimmer:currentTrackPositionSec"
shortPoll - Done
read jsonlist2: 77,017ms
start shortpoll
send to FHEM: jsonlist2 .*
start shortpoll in (ms):10000
get jsonlist2: 1.670,82ms
shortpoll: fhemJSON.Results.length=234
update done for "Sonos_Wohnzimmer:currentTrackPosition"
slider dev:Sonos_Wohnzimmer par:currentTrackPositionSec changed to:281
slider dev:Sonos_Wohnzimmer par:currentTrackPositionSec changed to:281
slider dev:Sonos_Wohnzimmer par:currentTrackPositionSec changed to:281
update done for "Sonos_Wohnzimmer:currentTrackPositionSec"
update done for "Sonos_Wohnzimmer:transportState"
shortPoll - Done
read jsonlist2: 75ms
start shortpoll in (ms):10000
FHEM-Featurelevel: 6.2   (fhem.pl:28227/2023-11-29) auf Windows 10 Pro mit Strawberry Perl 5.32.1.1-32bit
TabletUI: 2.7.15
IO: 2xHMLAN(0.965)|HMUSB2(0.967)

setstate

#470
nimm das shortpoll_intervall wieder raus und setzte

<meta name="longpoll_filter" content=".*">

Zur Erklärung:

Wenn shortpoll_filter bzw. longpoll_filter nicht gesetzt sind, werden die Filter automatisch anhand der gegebenen Definition gebildet. Diese bestehen aus einer Liste Devices mit Komma separiert gefolgt von einer Liste aller Readings mit Space separiert. Die Filter müssen einer gültigen DevSpec entsprechen.
Wenn damit dann aber ein Synchronisieren mit FHEM nicht mehr funktioniert, könnte es an einer ungültigen Devspec liegen (z.B. Sonderzeichen in Liste).

n4rrOx

Habe mit dem neuesten Update auf 2.6.14 das Problem, dass das longpoll bei jedem zweiten Aufruf "ins Leere" läuft?

Konsolenausgabe:

GET
https://...........net/fhem/ [HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ) 92ms]
GET
https://...........net/fhem/ [HTTP/1.1 200 Connection established 547ms]
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: kz_Thermostat_Climate:STATE" widget_chart.js:68:34
"update done for "kz_Thermostat_Climate:STATE"" fhem-tablet-ui.js:1716:12
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: kz_Thermostat_Climate:desired-temp" widget_chart.js:68:34
"update done for "kz_Thermostat_Climate:desired-temp"" fhem-tablet-ui.js:1716:12
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: rr_Mathias:STATE" widget_chart.js:68:34
"update done for "rr_Mathias:STATE"" fhem-tablet-ui.js:1716:12
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: rr_Anna:STATE" widget_chart.js:68:34
"update done for "rr_Anna:STATE"" fhem-tablet-ui.js:1716:12
"Error while longpoll" fhem-tablet-ui.js:1716:12
"websocket closed: The connection was closed abnormally, e.g., without sending or receiving a Close control frame" fhem-tablet-ui.js:1716:12
"restartLongpoll" fhem-tablet-ui.js:1716:12
"stopLongpoll" fhem-tablet-ui.js:1716:12
"startLongpoll: true" fhem-tablet-ui.js:1716:12
"websockets URL=wss://...........net/fhem/?XHR=1&inform=type=status;addglobal=1;filter=WEB,,TV_Programm,sz_Fenster_links,sz_Fenster_rechts,wz_Tuer_links,bad_Heizung_Clima,bad_Thermostat_Weather,ku_Heizung_Clima,ku_Thermostat_Weather,kz_Heizung_Clima,kz_Thermostat_Weather,sz_Heizung_Clima,sz_Thermostat_Weather,wz_Heizung_Clima,wz_Thermostat_Weather,bad_Thermostat_Climate,ku_Thermostat_Climate,kz_Thermostat_Climate,sz_Thermostat_Climate,wz_Thermostat_Climate,PartyControl,FileLog_Prologue_145,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,rgr_Bewohner,rr_Mathias,rr_Anna,MuellterminDummy,Wetter_Pforzheim,Fahrzeiten_Arbeit,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,Termine_aktuell,FensterStatus STATE longpoll  ARD_time ARD ARD_next_time ARD_next ZDF_time ZDF ZDF_next_time ZDF_next Sat1_time Sat1 Sat1_next_time Sat1_next RTL_time RTL RTL_next_time RTL_next RTL2_time RTL2 RTL2_next_time RTL2_next Pro7_time Pro7 Pro7_next_time Pro7_next VOX_time VOX VOX_next_time VOX_next Kabel eins_time Kabel eins Kabel eins_next_time Kabel eins_next DMAX_time DMAX DMAX_next_time DMAX_next NTV_time NTV NTV_next_time NTV_next N24_time N24 N24_next_time N24_next Phoenix_time Phoenix Phoenix_next_time Phoenix_next ServusTV_time ServusTV ServusTV_next_time ServusTV_next SuperRTL_time SuperRTL SuperRTL_next_time SuperRTL_next ValvePosition temperature humidity desired-temp Device setList Temp Dauer state GelbeTonne GrueneTonne fc1_condition fc2_condition fc3_condition fc4_condition fc1_low_c fc1_high_c wind wind_condition pressure pressure_trend_sym visibility fc2_day_of_week fc2_low_c fc2_high_c fc3_day_of_week fc3_low_c fc3_high_c fc4_day_of_week fc4_low_c fc4_high_c duration_in_traffic return_duration_in_traffic Diesel SuperE5 SuperE10 Summe offen;fmt=JSON&fwcsrf=csrf_192141849996496227008" fhem-tablet-ui.js:1716:12
GET
https://...........net/fhem/ [HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ) 78ms]
GET
https://...........net/fhem/ [HTTP/1.1 200 Connection established 583ms]
"--------- start healthCheck --------------" fhem-tablet-ui.js:1358:12
"now:" Date 2017-03-20T10:54:53.159Z fhem-tablet-ui.js:1359:0
"FTUI version: 2.6.14" fhem-tablet-ui.js:1360:12
"Longpoll: true" fhem-tablet-ui.js:1361:12
"Longpoll type: websocket" fhem-tablet-ui.js:1362:12
"Longpoll objects there: true" fhem-tablet-ui.js:1363:0
"Longpoll curent line: 0" fhem-tablet-ui.js:1364:12
"Longpoll last event before: 15 Sekunde(n)" fhem-tablet-ui.js:1365:0
"Longpoll last reading update before: 18 Sekunde(n)" fhem-tablet-ui.js:1366:0
"Shortpoll interval: 900" fhem-tablet-ui.js:1367:12
"Shortpoll last run before: 3 Minute(n) 44 Sekunde(n)" fhem-tablet-ui.js:1368:0
"FHEM dev/par count: 185" fhem-tablet-ui.js:1369:0
"FTUI known devices count: 108" fhem-tablet-ui.js:1370:0
"Page length: 251084" fhem-tablet-ui.js:1371:0
"Widgets count: 239" fhem-tablet-ui.js:1372:0
"--------- end healthCheck ---------------" fhem-tablet-ui.js:1373:12
"Error while longpoll" fhem-tablet-ui.js:1716:12
"websocket closed: The connection was closed abnormally, e.g., without sending or receiving a Close control frame" fhem-tablet-ui.js:1716:12
"restartLongpoll" fhem-tablet-ui.js:1716:12
"stopLongpoll" fhem-tablet-ui.js:1716:12
"startLongpoll: true" fhem-tablet-ui.js:1716:12
"websockets URL=wss://...........net/fhem/?XHR=1&inform=type=status;addglobal=1;filter=WEB,,TV_Programm,sz_Fenster_links,sz_Fenster_rechts,wz_Tuer_links,bad_Heizung_Clima,bad_Thermostat_Weather,ku_Heizung_Clima,ku_Thermostat_Weather,kz_Heizung_Clima,kz_Thermostat_Weather,sz_Heizung_Clima,sz_Thermostat_Weather,wz_Heizung_Clima,wz_Thermostat_Weather,bad_Thermostat_Climate,ku_Thermostat_Climate,kz_Thermostat_Climate,sz_Thermostat_Climate,wz_Thermostat_Climate,PartyControl,FileLog_Prologue_145,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,rgr_Bewohner,rr_Mathias,rr_Anna,MuellterminDummy,Wetter_Pforzheim,Fahrzeiten_Arbeit,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,Termine_aktuell,FensterStatus STATE longpoll  ARD_time ARD ARD_next_time ARD_next ZDF_time ZDF ZDF_next_time ZDF_next Sat1_time Sat1 Sat1_next_time Sat1_next RTL_time RTL RTL_next_time RTL_next RTL2_time RTL2 RTL2_next_time RTL2_next Pro7_time Pro7 Pro7_next_time Pro7_next VOX_time VOX VOX_next_time VOX_next Kabel eins_time Kabel eins Kabel eins_next_time Kabel eins_next DMAX_time DMAX DMAX_next_time DMAX_next NTV_time NTV NTV_next_time NTV_next N24_time N24 N24_next_time N24_next Phoenix_time Phoenix Phoenix_next_time Phoenix_next ServusTV_time ServusTV ServusTV_next_time ServusTV_next SuperRTL_time SuperRTL SuperRTL_next_time SuperRTL_next ValvePosition temperature humidity desired-temp Device setList Temp Dauer state GelbeTonne GrueneTonne fc1_condition fc2_condition fc3_condition fc4_condition fc1_low_c fc1_high_c wind wind_condition pressure pressure_trend_sym visibility fc2_day_of_week fc2_low_c fc2_high_c fc3_day_of_week fc3_low_c fc3_high_c fc4_day_of_week fc4_low_c fc4_high_c duration_in_traffic return_duration_in_traffic Diesel SuperE5 SuperE10 Summe offen;fmt=JSON&fwcsrf=csrf_192141849996496227008" fhem-tablet-ui.js:1716:12
GET
https://...........net/fhem/ [HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ) 53ms]
GET
https://...........net/fhem/


Siehe auch das Screenshot.
Es werden ständig die Popups mit den Fehlermeldungen und den Hinweisen auf Neustart von Longpoll angezeigt.
Was läuft da schief?

Gruß
Mathias

Nobby1805

ja, mit beiden Einträgen
     <meta name="longpoll_filter" content=".*"> 
     <meta name="shortpoll_filter" content=".*"> 
funktioniert es jetzt

Jetzt wieder zurück zu dem Problem, warum ich diese Testseite gebaut habe ... data-timer im slider-widget scheint nicht richtig zu funktionieren
<div data-type="slider"
data-device="Sonos_Wohnzimmer"
data-set="CurrentTrackPosition"
data-get="currentTrackPositionSec"
data-max="currentTrackDurationSec" data-min="0"
data-step="1"
data-handle-diameter="3"
        data-width="520"
        data-timer-state="Sonos_Wohnzimmer:transportState"
        data-timer-state-on="PLAYING"
        data-timer-state-off="!on"
        data-timer-step="1"
        data-timer-interval="1000"
class="horizontal">
</div>

manchmal wird der Slider korrekt jede Sekunde um 1 verschoben ... aber manchmal klappt es nur ruckweise wenn der position-Wert sich ändert

Und Beides, poll und timed-slider, hat m.E. bei einer älteren 2.6.x-Version funktioniert
FHEM-Featurelevel: 6.2   (fhem.pl:28227/2023-11-29) auf Windows 10 Pro mit Strawberry Perl 5.32.1.1-32bit
TabletUI: 2.7.15
IO: 2xHMLAN(0.965)|HMUSB2(0.967)

Nobby1805

@setstate: ich habe in widget_slider.js ein paar logs eingebaut und weiß jetzt was passiert, verstehe aber nicht warum

    function setTimer(elem, state) {
                         console.log(1, 'slider setTimer:' +state+" "+elem.isValidData('timer-id'));
       if (state === 'on' && !elem.isValidData('timer-id')) {

wenn es funktioniert ist state on und elem.isValidData('timer-id') ist falsch und der Timer wird aufgesetzt ...
wenn es nicht funktioniert ist elem.isValidData('timer-id') wahr und der Timer wird nicht gestartet

hier        if (state === 'off' && elem.isValidData('timer-id')) {
           clearInterval(elem.data('timer-id'));

wird beim Stoppen des Players der Timer zwar gestoppt, aber elem.isValidData('timer-id') ist danach weiterhin wahr
FHEM-Featurelevel: 6.2   (fhem.pl:28227/2023-11-29) auf Windows 10 Pro mit Strawberry Perl 5.32.1.1-32bit
TabletUI: 2.7.15
IO: 2xHMLAN(0.965)|HMUSB2(0.967)

Paul.baumann

Zitat von: n4rrOx am 20 März 2017, 12:04:48
Habe mit dem neuesten Update auf 2.6.14 das Problem, dass das longpoll bei jedem zweiten Aufruf "ins Leere" läuft?

Konsolenausgabe:

GET
https://...........net/fhem/ [HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ) 92ms]
GET
https://...........net/fhem/ [HTTP/1.1 200 Connection established 547ms]
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: kz_Thermostat_Climate:STATE" widget_chart.js:68:34
"update done for "kz_Thermostat_Climate:STATE"" fhem-tablet-ui.js:1716:12
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: kz_Thermostat_Climate:desired-temp" widget_chart.js:68:34
"update done for "kz_Thermostat_Climate:desired-temp"" fhem-tablet-ui.js:1716:12
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: rr_Mathias:STATE" widget_chart.js:68:34
"update done for "rr_Mathias:STATE"" fhem-tablet-ui.js:1716:12
"warning: loading has not implemented update function" fhem-tablet-ui.js:1716:12
"Function: widget_chart.update" "Update triggered with: rr_Anna:STATE" widget_chart.js:68:34
"update done for "rr_Anna:STATE"" fhem-tablet-ui.js:1716:12
"Error while longpoll" fhem-tablet-ui.js:1716:12
"websocket closed: The connection was closed abnormally, e.g., without sending or receiving a Close control frame" fhem-tablet-ui.js:1716:12
"restartLongpoll" fhem-tablet-ui.js:1716:12
"stopLongpoll" fhem-tablet-ui.js:1716:12
"startLongpoll: true" fhem-tablet-ui.js:1716:12
"websockets URL=wss://...........net/fhem/?XHR=1&inform=type=status;addglobal=1;filter=WEB,,TV_Programm,sz_Fenster_links,sz_Fenster_rechts,wz_Tuer_links,bad_Heizung_Clima,bad_Thermostat_Weather,ku_Heizung_Clima,ku_Thermostat_Weather,kz_Heizung_Clima,kz_Thermostat_Weather,sz_Heizung_Clima,sz_Thermostat_Weather,wz_Heizung_Clima,wz_Thermostat_Weather,bad_Thermostat_Climate,ku_Thermostat_Climate,kz_Thermostat_Climate,sz_Thermostat_Climate,wz_Thermostat_Climate,PartyControl,FileLog_Prologue_145,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,rgr_Bewohner,rr_Mathias,rr_Anna,MuellterminDummy,Wetter_Pforzheim,Fahrzeiten_Arbeit,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,Termine_aktuell,FensterStatus STATE longpoll  ARD_time ARD ARD_next_time ARD_next ZDF_time ZDF ZDF_next_time ZDF_next Sat1_time Sat1 Sat1_next_time Sat1_next RTL_time RTL RTL_next_time RTL_next RTL2_time RTL2 RTL2_next_time RTL2_next Pro7_time Pro7 Pro7_next_time Pro7_next VOX_time VOX VOX_next_time VOX_next Kabel eins_time Kabel eins Kabel eins_next_time Kabel eins_next DMAX_time DMAX DMAX_next_time DMAX_next NTV_time NTV NTV_next_time NTV_next N24_time N24 N24_next_time N24_next Phoenix_time Phoenix Phoenix_next_time Phoenix_next ServusTV_time ServusTV ServusTV_next_time ServusTV_next SuperRTL_time SuperRTL SuperRTL_next_time SuperRTL_next ValvePosition temperature humidity desired-temp Device setList Temp Dauer state GelbeTonne GrueneTonne fc1_condition fc2_condition fc3_condition fc4_condition fc1_low_c fc1_high_c wind wind_condition pressure pressure_trend_sym visibility fc2_day_of_week fc2_low_c fc2_high_c fc3_day_of_week fc3_low_c fc3_high_c fc4_day_of_week fc4_low_c fc4_high_c duration_in_traffic return_duration_in_traffic Diesel SuperE5 SuperE10 Summe offen;fmt=JSON&fwcsrf=csrf_192141849996496227008" fhem-tablet-ui.js:1716:12
GET
https://...........net/fhem/ [HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ) 78ms]
GET
https://...........net/fhem/ [HTTP/1.1 200 Connection established 583ms]
"--------- start healthCheck --------------" fhem-tablet-ui.js:1358:12
"now:" Date 2017-03-20T10:54:53.159Z fhem-tablet-ui.js:1359:0
"FTUI version: 2.6.14" fhem-tablet-ui.js:1360:12
"Longpoll: true" fhem-tablet-ui.js:1361:12
"Longpoll type: websocket" fhem-tablet-ui.js:1362:12
"Longpoll objects there: true" fhem-tablet-ui.js:1363:0
"Longpoll curent line: 0" fhem-tablet-ui.js:1364:12
"Longpoll last event before: 15 Sekunde(n)" fhem-tablet-ui.js:1365:0
"Longpoll last reading update before: 18 Sekunde(n)" fhem-tablet-ui.js:1366:0
"Shortpoll interval: 900" fhem-tablet-ui.js:1367:12
"Shortpoll last run before: 3 Minute(n) 44 Sekunde(n)" fhem-tablet-ui.js:1368:0
"FHEM dev/par count: 185" fhem-tablet-ui.js:1369:0
"FTUI known devices count: 108" fhem-tablet-ui.js:1370:0
"Page length: 251084" fhem-tablet-ui.js:1371:0
"Widgets count: 239" fhem-tablet-ui.js:1372:0
"--------- end healthCheck ---------------" fhem-tablet-ui.js:1373:12
"Error while longpoll" fhem-tablet-ui.js:1716:12
"websocket closed: The connection was closed abnormally, e.g., without sending or receiving a Close control frame" fhem-tablet-ui.js:1716:12
"restartLongpoll" fhem-tablet-ui.js:1716:12
"stopLongpoll" fhem-tablet-ui.js:1716:12
"startLongpoll: true" fhem-tablet-ui.js:1716:12
"websockets URL=wss://...........net/fhem/?XHR=1&inform=type=status;addglobal=1;filter=WEB,,TV_Programm,sz_Fenster_links,sz_Fenster_rechts,wz_Tuer_links,bad_Heizung_Clima,bad_Thermostat_Weather,ku_Heizung_Clima,ku_Thermostat_Weather,kz_Heizung_Clima,kz_Thermostat_Weather,sz_Heizung_Clima,sz_Thermostat_Weather,wz_Heizung_Clima,wz_Thermostat_Weather,bad_Thermostat_Climate,ku_Thermostat_Climate,kz_Thermostat_Climate,sz_Thermostat_Climate,wz_Thermostat_Climate,PartyControl,FileLog_Prologue_145,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,rgr_Bewohner,rr_Mathias,rr_Anna,MuellterminDummy,Wetter_Pforzheim,Fahrzeiten_Arbeit,Total_Haidach,Shell_Enzberg,Aral_Muehlacker,Termine_aktuell,FensterStatus STATE longpoll  ARD_time ARD ARD_next_time ARD_next ZDF_time ZDF ZDF_next_time ZDF_next Sat1_time Sat1 Sat1_next_time Sat1_next RTL_time RTL RTL_next_time RTL_next RTL2_time RTL2 RTL2_next_time RTL2_next Pro7_time Pro7 Pro7_next_time Pro7_next VOX_time VOX VOX_next_time VOX_next Kabel eins_time Kabel eins Kabel eins_next_time Kabel eins_next DMAX_time DMAX DMAX_next_time DMAX_next NTV_time NTV NTV_next_time NTV_next N24_time N24 N24_next_time N24_next Phoenix_time Phoenix Phoenix_next_time Phoenix_next ServusTV_time ServusTV ServusTV_next_time ServusTV_next SuperRTL_time SuperRTL SuperRTL_next_time SuperRTL_next ValvePosition temperature humidity desired-temp Device setList Temp Dauer state GelbeTonne GrueneTonne fc1_condition fc2_condition fc3_condition fc4_condition fc1_low_c fc1_high_c wind wind_condition pressure pressure_trend_sym visibility fc2_day_of_week fc2_low_c fc2_high_c fc3_day_of_week fc3_low_c fc3_high_c fc4_day_of_week fc4_low_c fc4_high_c duration_in_traffic return_duration_in_traffic Diesel SuperE5 SuperE10 Summe offen;fmt=JSON&fwcsrf=csrf_192141849996496227008" fhem-tablet-ui.js:1716:12
GET
https://...........net/fhem/ [HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ) 53ms]
GET
https://...........net/fhem/


Siehe auch das Screenshot.
Es werden ständig die Popups mit den Fehlermeldungen und den Hinweisen auf Neustart von Longpoll angezeigt.
Was läuft da schief?

Gruß
Mathias


Hallo Mathias,

wie ist der Status bei dir? Ich bekomme auch ständig die Meldung:

websocket closed:
The connection was closed abnormally,
e.g., without sending or receiving a Close
control frame


Ich nutze vorwiegend IOS Safari auf IPAD2+4, bekomme die Meldung aber auch im Chrome-Browser. Websocket ist im TabletUI und FHEMWEB-Device aktiviert.


Paul 
FHEM auf Raspberry 3
MaxCube (V1.20.04 a-culfw) für HM, MaxCube (V1.20.04 a-culfw) für diverse Max!, NanoCul 433/868, TinyTX-Nachbauten
Multiroom: mehrere Squeezelite-Clients auf Raspberry B+ und LMS auf QNap
Huger WM918 Wetterstation integriert
Tiao-Sprinkler (Open-Sprinkler) integriert

n4rrOx

Hallo Paul,

hab bereits alles versucht, was so vorgeschlagen wurde .... <head> Bereich ist Folgendes definiert:
  <meta name="longpoll" content="websocket">
  <meta name="longpoll_filter" content=".*">
  <meta name="longpoll_maxage" content="600">


Habe auch wie hier angemerkt ( Thema: longpoll über websocket, Datenlänge bei Readings>64K falsch):
https://forum.fhem.de/index.php/topic,69362.0/topicseen.html
...heute nochmals ein Update von FHEM gemacht.

Alles ohne Änderungen ..... in den Namensgebungen meiner Devices kann ich mich auch nicht an Punkte, Umlaute oder ähnliche Sonderzeichen erinnern....

Ich bin momentan ratlos.....??

setstate

Geht mir genauso  ::)

Paul.baumann

Update: Aktuell bei mir keine Websocket-Closed Meldungen mehr.

Leider habe ich k.A. warum, ich habe eigentlich nur im FHEMWEB-Device CORS deaktiviert. Das hatte ich irgendwann mal reingenommen.

Ich werde weiter beobachten.


Paul

FHEM auf Raspberry 3
MaxCube (V1.20.04 a-culfw) für HM, MaxCube (V1.20.04 a-culfw) für diverse Max!, NanoCul 433/868, TinyTX-Nachbauten
Multiroom: mehrere Squeezelite-Clients auf Raspberry B+ und LMS auf QNap
Huger WM918 Wetterstation integriert
Tiao-Sprinkler (Open-Sprinkler) integriert

setstate

Zitat von: Paul.baumann am 21 März 2017, 08:20:18

Hallo Mathias,

wie ist der Status bei dir? Ich bekomme auch ständig die Meldung:

websocket closed:
The connection was closed abnormally,
e.g., without sending or receiving a Close
control frame


Ich nutze vorwiegend IOS Safari auf IPAD2+4, bekomme die Meldung aber auch im Chrome-Browser. Websocket ist im TabletUI und FHEMWEB-Device aktiviert.


Paul

Es könnte noch Probleme bei der Kombination: WebSocket-Longpoll + Pagetab + Pagetab-Seite umgeschaltet geben.
Vermutlich wird die Connection nicht sauber beim Umschalten beendet und dann einfach neu (doppelt) aufgebaut.
Dann bricht die Gegenseite (FHEM) immer wieder die Verbindung von sich ab + Neuaufbau von FTUI-Seite und wieder Abbruch als Endlosschleife

Dann muss man erst einmal auf AJAX-Longpoll zurück

<meta name='longpoll_type' content='ajax'>

Kuzl

Zitat von: setstate am 22 März 2017, 07:03:33
Es könnte noch Probleme bei der Kombination: WebSocket-Longpoll + Pagetab + Pagetab-Seite umgeschaltet geben.
Vermutlich wird die Connection nicht sauber beim Umschalten beendet und dann einfach neu (doppelt) aufgebaut.
Dann bricht die Gegenseite (FHEM) immer wieder die Verbindung von sich ab + Neuaufbau von FTUI-Seite und wieder Abbruch als Endlosschleife

Ich habe bei meinem FTUI gar keine Schaltflächen, da ich es als Infobildschirm benutze. Auch hier das gleiche Problem. Daher würde ich Pagetab eher ausschließen.
Evtl. schließt FHEM den Socket, wenn eine bestimmte Zeit nichts übertragen wird   ???

Gruß,
Kuzl