From 6bc0e9406ee00e0fb4caa857867db9499cbbabb8 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 23 Aug 2013 13:29:58 +0000 Subject: [PATCH] weblink readings going to separate module, by justme1986 http://forum.fhem.de/index.php?t=msg&th=13734&goto=91410&rid=0#msg_91410 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3770 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_weblink.pm | 21 +++------------------ docs/commandref_frame.html | 1 + docs/commandref_frame_DE.html | 3 ++- www/pgm2/fhemweb.js | 4 ++-- 4 files changed, 8 insertions(+), 21 deletions(-) diff --git a/FHEM/98_weblink.pm b/FHEM/98_weblink.pm index 6f7944c1c..fe3da47ed 100755 --- a/FHEM/98_weblink.pm +++ b/FHEM/98_weblink.pm @@ -194,6 +194,7 @@ weblink_FwFn($$$$) } } $ret .= ""; + $ret .= "
weblink readings is deprecated. please use readingsGroup instead.
"; $ret .= ""; $ret .= "
"; @@ -213,7 +214,7 @@ weblink_FwFn($$$$) Define
Notes: diff --git a/docs/commandref_frame.html b/docs/commandref_frame.html index 5973018a3..b15319725 100644 --- a/docs/commandref_frame.html +++ b/docs/commandref_frame.html @@ -100,6 +100,7 @@ PID   PRESENCE   PachLog   + readingsGroup   remotecontrol   SUNRISE_EL   sequence   diff --git a/docs/commandref_frame_DE.html b/docs/commandref_frame_DE.html index 96acc4853..05dd16021 100644 --- a/docs/commandref_frame_DE.html +++ b/docs/commandref_frame_DE.html @@ -98,7 +98,8 @@ PID   PRESENCE   PachLog   - remotecontrol   + readingsGroup   + remotecontrol   SUNRISE_EL   sequence   speedtest   diff --git a/www/pgm2/fhemweb.js b/www/pgm2/fhemweb.js index 0affeafc3..c241bca97 100644 --- a/www/pgm2/fhemweb.js +++ b/www/pgm2/fhemweb.js @@ -33,7 +33,7 @@ FW_doUpdate() var devs = new Array(); for(var i=FW_curLine; i < lines.length; i++) { var d = lines[i].split("<<", 3); // Complete arg - //console.log("Got "+lines[i]); + console.log("Got "+lines[i]); if(d.length != 3) continue; var elArr = document.querySelectorAll("[informId='"+d[0]+"']"); @@ -48,7 +48,7 @@ FW_doUpdate() } else { el.innerHTML=d[2]; - if(d[0].indexOf("-") >= 0) // readings / timestamps + if(d[0].match(/-ts$/)) // timestamps el.setAttribute('class', 'changed'); }