update readingsGroup

Begonnen von justme1968, 14 November 2014, 11:36:31

Vorheriges Thema - Nächstes Thema

RoBra81

define rg readingsgroup dev:?room,state


sollte vom Device dev das Attribut room und das Reading state anzeigen (war zumindest früher so). Der room bleibt allerdings in der neuen Version verschwunden...

justme1968

du hast recht. ich habe den fehler gefunden. am ersten beitrag hängt noch mal eine neue version.

wenn es keine weiteren meldungen mehr gibt checke ich diese version demnächst ein.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Spartacus

Hi andre,
kannst du mir noch mal nen Tipp zur Zeilenhöhe geben?
Christian
Fhem-System: 1 x raspberry PI Typ B, 1 x enOcean PI Typ B | Enocean: PTM210, FMS61NP, FAM14, 2 x FSR14-4x, FTS14-EM | LaCrosse: 2 x TX29D über Jeelink V3 | 1-Wire: 2 x DS18B20 über DS9490R

RoBra81

Zitat von: Spartacus am 21 November 2014, 11:02:35
kannst du mir noch mal nen Tipp zur Zeilenhöhe geben?

Probier's mal mit folgendem CellStyle:

{ 'r:3' => 'style="line-height:10;"' }

Spartacus

Hallo Ronny,
ganz lieben Dank für die Hilfe!
Der Befehl heißt "line-height" und nicht "height". Warum heißt das jetzt "line-height" und nicht "height"?
{ 'c:1' => 'style=line-height:3','r:1' => 'style="background:black"','r:2' => 'style=background:black','r:3' => 'style=background:none','r:5' => 'style=background:black','r:6' => 'style=background:black','r:7' => 'style=background:none'}
Die Anführungszeichen braucht man offenbar nicht. die Hochkommata reichen! Ich habe nun die Spalte 1 auf die Höhe gesetzt, der Rest der Zeile wird dann automatisch formatiert. So geht es auf jeden Fall!

Christian
Fhem-System: 1 x raspberry PI Typ B, 1 x enOcean PI Typ B | Enocean: PTM210, FMS61NP, FAM14, 2 x FSR14-4x, FTS14-EM | LaCrosse: 2 x TX29D über Jeelink V3 | 1-Wire: 2 x DS18B20 über DS9490R

justme1968

ich habe diese version eben eingecheckt.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

#36
hallo zusamen,

ich hatte ja angekündigt zusätzlich zum kompletten zusammenklappen noch einen modus einzubauen bei dem der knopf zum einklappen in der readingGroup selber sein kann und eine überschrift mit optionaler zuammenfassung in der zusammengeklappten readingsGroup bestehen bleibt.

hier: http://forum.fhem.de/index.php/topic,27353.msg228670.html#msg228670 gibt es ein kurzes video wie das ganze ausschauen wird. das ganze wird dort zwar von einem speziellen neuen widget verwendet, die funktionalität wird aber in jeder readingsGroup vorhanden sein.

ich checke das demnächst ein.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Blackcat

Klingt gut :)
Freu mich schon drauf
Viele Grüße Sandra - FHEM Style Entwicklerin iOS6+12
-----
ZBox nano, Homematic, Homebridge, Hue + Mi Light, ZWave, Dyson, etc.
https://www.foodcat.de
https://www.youtube.com/c/FoodCat (hier gibt es auch immer mehr Hausautomatisierungsvideos)

Spartacus

Hallo,
ich habe seit ein paar Tagen im Logfile Fehlermeldungen und habe keine Ahnung was das bedeutet:
2014.12.11 22:17:48 3: rg.01.TF.TX29D.cdm: Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$VALUE" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$VALUE" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$VALUE" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$VALUE" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$VALUE" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$VALUE" requires explicit package name at (eval 27) line 1, <> line 120.
Global symbol "$READING" requires explicit package name at (eval 27) line 1, <> line 120.

Ich vermute es liegt am Valuestyle

{ if($READING eq "temperature" && $VALUE > 30) { 'style="color:red"'}  elsif($READING eq "temperature" && $VALUE > 20) { 'style="color:orange"'}  elsif($READING eq "temperature" && $VALUE < 3) { 'style="color:RoyalBlue"'}  elsif($READING eq "dewpoint" && $VALUE <= 0) { 'style="color:RoyalBlue"'}  elsif($READING eq "humidity" && $VALUE > 90) { 'style="color:red"'}  elsif($READING eq "humidity" && $VALUE > 70) { 'style="color:orange"'} elsif($READING eq "absFeuchte") { 'style="color:lightblue"'} else{'style="color:lightgreen"'} }

Funktioniert aber eigentlich alles! Hat jemand eine Idee?
Christian
Fhem-System: 1 x raspberry PI Typ B, 1 x enOcean PI Typ B | Enocean: PTM210, FMS61NP, FAM14, 2 x FSR14-4x, FTS14-EM | LaCrosse: 2 x TX29D über Jeelink V3 | 1-Wire: 2 x DS18B20 über DS9490R

fruit

I have spent a lot of time trying to resolve similar valueStyle errors but have found no solution other than restoring the previous version
Global symbol "$VALUE" requires explicit package name at (eval 16) line 1, <$fh> line 536.
Global symbol "$READING" requires explicit package name at (eval 16) line 1, <$fh> line 536.
Global symbol "$VALUE" requires explicit package name at (eval 16) line 1, <$fh> line 536.
Global symbol "$READING" requires explicit package name at (eval 16) line 1, <$fh> line 536.
Global symbol "$VALUE" requires explicit package name at (eval 16) line 1, <$fh> line 536.
Global symbol "$READING" requires explicit package name at (eval 16) line 1, <$fh> line 536.
2014.12.08 07:46:24 3: rg_Heating: Global symbol "$VALUE" requires explicit package name at (eval 16) line 1, <$fh> line 536.

The line causing problems is
attr rg_Heating valueStyle { if ($VALUE eq "00"){'style="visibility:hidden"'}elsif($READING eq "valveposition" && $VALUE == 0){ 'style="color:blue"' }elsif( $READING eq "valveposition" && $VALUE >= 0 ){ 'style="color:red;;;;;;;;font-weight:bold"' }elsif( $READING eq "temperature" && $VALUE > 23 ){ 'style="color:red"' }else{ 'style="color:black"' } }
Feel free to follow up in German if you prefer

justme1968

ich denke ich weiß woran es liegt. bitte versucht mal das ganze valueStyle attribut in einfache ' zu stecken. also so: '{...}'

please tray to endlose the attribute in single quotes like so: '{...}'
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

stromer-12

Bei mir kommt bei valueFormat mit $VALUE der Fehler:

valueFormat  {($VALUE =~ m/Closed/)?"&nbsp;offen seit&nbsp;":undef }

2014.12.13 13:14:44 3: CUL_FHTTK_status: Global symbol "$VALUE" requires explicit package name at (eval 618) line 1.
FHEM (SVN) auf RPi1B mit HMser | ESPLink
FHEM (SVN) virtuell mit HMLAN | HMUSB | CUL

Spartacus

Hallo,
habe das mit dem '{...}' probiert. Das nimmt fhem zwar an, aber die Formatierung der Values ist dann futsch!

Habe ich doch richtig verstanden, dass vor den gesamte Ausdruck das Hochkomma kommt, richtig?

Christian
Fhem-System: 1 x raspberry PI Typ B, 1 x enOcean PI Typ B | Enocean: PTM210, FMS61NP, FAM14, 2 x FSR14-4x, FTS14-EM | LaCrosse: 2 x TX29D über Jeelink V3 | 1-Wire: 2 x DS18B20 über DS9490R

justme1968

bitte testet mal mit der angehängten version. damit sollten die warnungen weg sein.

danke
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Spartacus

Hallo Andre,
super! Fehlermeldungen sind weg!

Christian
Fhem-System: 1 x raspberry PI Typ B, 1 x enOcean PI Typ B | Enocean: PTM210, FMS61NP, FAM14, 2 x FSR14-4x, FTS14-EM | LaCrosse: 2 x TX29D über Jeelink V3 | 1-Wire: 2 x DS18B20 über DS9490R