Zahlenwerte in Tabelle verkleinern

Begonnen von Kusselin, 25 August 2020, 23:38:08

Vorheriges Thema - Nächstes Thema

Kusselin

Hallo Zusammen,

ich möchte geren die Spritpreiszahlen meiner Tabelle in TabletUI verkleinern. Könnt Ihr mir bitte sagen wie der Code dafür heissen muss?

<table width="100%">
<tr>
<td>
<img src="/fhem/tablet/images/Aral.png" height="40" width="40"></div>
<!--div class="bigger left-align">Aral</div-->
</td>
<td>Schriesheim</td>
<td>
<div data-type="label"
data-device="ARAL_Schriese"
data-get="SuperE10"
data-limits='["0","1.30","1.50"]'
data-colors='["green","#f9f8f7","firebrick"]'
data-unit="9 &euro;"
class="tall thin">
</div>
</td>
</tr>
<tr>
<td>
                                            </table>


Über ne kurze Rückinfo herzlichen Dank.

Eisix

Hallo,

Hier sind die Standard-CSS-Einstellungen dokumentiert

https://wiki.fhem.de/wiki/FHEM_Tablet_UI


Class="mini"

Ist das kleinste. Wenn du was anderes brauchst muss du an die css.

Gruß
Eisix

Kusselin

#2
O.K. danke das mit der Größe hat funktioniert..

Und ie bekommt man noch die zweite kleinere Hochzahl weg?
Gruss

hier mal das list der Tanke:
Internals:
   BUSY       0
   DEF        https://www.clever-tanken.de/tankstelle_details/6170 600
   FUUID      5f076f7d-f33f-7d29-9dcf-b53a1394a47ea4f3
   Interval   600
   LASTSEND   1598392894.69693
   MainURL    https://www.clever-tanken.de/tankstelle_details/6170
   ModuleVersion 3.5.22 - 7.2.2020
   NAME       ARAL_Schriese
   NOTIFYDEV  global
   NR         77
   NTFY_ORDER 50-ARAL_Schriese
   STATE      Preis: 1.19</span>
                                            <sup id="suffix-price-2">9 €
   TRIGGERTIME 1598393494.69595
   TRIGGERTIME_FMT 2020-08-26 00:11:34
   TYPE       HTTPMOD
   addr       https://www.clever-tanken.de:443
   auth       0
   buf       
   code       200
   compress   1
   conn       
   data       
   displayurl https://www.clever-tanken.de/tankstelle_details/6170
   header     Cookie: csrftoken=uW0ME98hIlnpH4jajnKt4R8Nw7jw2FZdml5O1IgJUwnJk7DcCKyzgiBp49gTs3SX
   host       www.clever-tanken.de
   httpheader HTTP/1.1 200 OK
Date: Tue, 25 Aug 2020 22:01:34 GMT
Server: Apache/2.4.18 (Ubuntu)
Vary: Cookie,Accept-Encoding
Content-Encoding: gzip
Content-Length: 24569
Content-Type: text/html; charset=utf-8
Set-Cookie: csrftoken=uW0ME98hIlnpH4jajnKt4R8Nw7jw2FZdml5O1IgJUwnJk7DcCKyzgiBp49gTs3SX; expires=Tue, 24-Aug-2021 22:01:34 GMT; Max-Age=31449600; Path=/
Connection: close
   httpversion 1.0
   hu_blocking 0
   hu_filecount 9
   hu_port    443
   hu_portSfx
   ignoreredirects 1
   loglevel   4
   path       /tankstelle_details/6170
   protocol   https
   redirects  0
   timeout    2
   url        https://www.clever-tanken.de/tankstelle_details/6170
   value      0
   CompiledRegexes:
   HTTPCookieHash:
     csrftoken;:
       Name       csrftoken
       Options    expires=Tue, 24-Aug-2021 22:01:34 GMT; Max-Age=31449600; Path=/
       Path       
       Value      uW0ME98hIlnpH4jajnKt4R8Nw7jw2FZdml5O1IgJUwnJk7DcCKyzgiBp49gTs3SX
   QUEUE:
   READINGS:
     2020-08-26 00:01:34   SuperE10        1.19</span>
                                            <sup id="suffix-price-2">9
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        https://www.clever-tanken.de/tankstelle_details/6170
     value      0
   defptr:
     readingBase:
       SuperE10   reading
     readingNum:
       SuperE10   01
     readingOutdated:
     requestReadings:
       update:
         SuperE10   reading 01
   sslargs:
Attributes:
   alias      ARAL_Schriese
   enableControlSet 1
   group      Spritpreise
   icon       tanken
   reading01Name SuperE10
   reading01Regex "price-type-name">Super.E10</div>[\d\D]{700,900}"current-price-.">([0-9\.]+[^0-9]+suffix-price-.">[0-9])
   stateFormat Preis: SuperE10 €
   userattr   reading01Name reading01Regex readingsExpr_SuperE10

Eisix

Was soll den nachher zu sehen sein
1.19 oder 1.199

Gruß
Eisix

Kusselin

Ok verstehe..die Hochzahl kann über HTML nicht realisiert werden..

Dann sollte 1.19 angezeigt werden.
Gruss

yersinia

Zitat von: Kusselin am 26 August 2020, 08:36:29Ok verstehe..die Hochzahl kann über HTML nicht realisiert werden..
Das stimmt nicht. Es geht schon mit HTML mit <sup>-tag - oder via CSS und vertical-align: super;.

In FTUI könnte man das in der data-unit mitgeben, wenn das reading x,xx ist:
<div data-type="label"
data-device="ARAL_Schriese"
data-get="SuperE10"
data-limits='["0","1.30","1.50"]'
data-colors='["green","#f9f8f7","firebrick"]'
data-unit="<sup>9</sup> &euro;"
class="tall thin">
</div>

Ob das einem gefällt ist eine andere Sache.
viele Grüße, yersinia
----
FHEM 6.4 (SVN) on RPi 4B with RasPi OS Bookworm (perl 5.36.0) | FTUI
nanoCUL->2x868(1x ser2net)@tsculfw, 1x433@Sduino | MQTT2 | Tasmota | ESPEasy
VCCU->14xSEC-SCo, 7xCC-RT-DN, 5xLC-Bl1PBU-FM, 3xTC-IT-WM-W-EU, 1xPB-2-WM55, 1xLC-Sw1PBU-FM, 1xES-PMSw1-Pl

Kusselin