Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [gelöst] Zeilenumbruch in Text

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    18
    1
    625

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

[gelöst] Zeilenumbruch in Text

Scheduled Pinned Locked Moved Skripten / Logik
6 Posts 4 Posters 3.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HKF8770
    wrote on last edited by
    #1

    Hallo,

    möchte mir für meine Startseite einen Text von verschiedenen Werten zusammensetzten, was soweit auch klappt.

    Ich habe jedoch derzeit das Problem dass ich keinen Zeilenumbruch hin bekomme.

    Ich dachte immer "\n" ist der Zeilenumbruch aber da tut sich nichts.

    Hat jemand ne Idee???

    string = " Temperatur Ostseite:  "  + tempOstseite + " °C" + "\n" + " Zeile 2 " + "\n" + " Ende Test " + "\n";
    

    Freddy

    1 Reply Last reply
    0
    • Jey CeeJ Online
      Jey CeeJ Online
      Jey Cee
      Developer
      wrote on last edited by
      #2

      War auch mein erste Gedanke gerade. Such mal bei google nach Chr10 oder Chr13.

      Gesendet von meinem Jolla mit Tapatalk

      Persönlicher Support
      Spenden -> paypal.me/J3YC33

      1 Reply Last reply
      0
      • V Offline
        V Offline
        versteckt
        wrote on last edited by
        #3

        Als was stellst du es dar? Ev.

        wenn es als HTML interpretiert wird.

        Gesendet von meinem iPhone mit Tapatalk

        Raspi 1, Raspi 2, iobroker, Mac Mini: alles mit aktueller ioBroker Version

        homegear für Homematic und MAX!

        occ, zWave, rpi, hmm und homekit Entwickler

        1 Reply Last reply
        0
        • H Offline
          H Offline
          HKF8770
          wrote on last edited by
          #4

          Meinst du den Widget?

          Als val string (unescaped)…habe ich bei ICAL auch und da geht es ja.

          Ist aber richtig dass Ical hier html als Format hat.

          Muss ich dann auch meinen Text als html darstellen? Wie geht dass :(

          Freddy

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pix
            wrote on last edited by
            #5

            @HKF8770:

            Muss ich dann auch meinen Text als html darstellen? Wie geht dass `
            Beispiel aus meiner Terminübersicht (inkl. Feiertage):

            ! [{"tpl":"tplValueStringRaw","data":{"oid":"ical.0.data.html","visibility-cond":"!=","visibility-val":1,"name":"iCal Kalenderdaten","html_prepend":" ! Termine: ! ","html_append":" ! Nächster Feiertag: {javascript.0.Feiertag.naechster_Datum} {javascript.0.Feiertag.naechster_Name}","visibility-oid":""},"style":{"left":"10px","top":"510px","width":"248px","height":"218px","font-size":"13px","z-index":"20","background":"","background-color":"rgba(0,0,100,0.0)","background-repeat":"","padding":"","border-width":"","border-style":"none","border-radius":"0px","padding-left":"10px","padding-top":"5px","padding-right":"5px","padding-bottom":"10px","border-color":"rgba(0,0,200,0.5);","font-family":"RobotoCondensed-Regular, Futura"},"widgetSet":"basic"}] !

            Gruß,

            Pix

            ioBroker auf Ubuntu in Proxmox (früher Mac mini (bis OS X 10.12.6 Sierra), VIS via iOS; angeschlossen: Homematic CCU2, Homepilot 1, ConBee II, einige Wemos, Sonos, Unifi CK+Protect, Homekit, Homebridge; KEIN blockly! Github-Profil

            1 Reply Last reply
            0
            • H Offline
              H Offline
              HKF8770
              wrote on last edited by
              #6

              Danke Pix…..

              Gesendet von meinem Lenovo TAB 2 A10-70L mit Tapatalk

              Freddy

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Support us

              ioBroker
              Community Adapters
              Donate

              591

              Online

              32.5k

              Users

              81.6k

              Topics

              1.3m

              Posts
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
              ioBroker Community 2014-2025
              logo
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Home
              • Recent
              • Tags
              • Unread 0
              • Categories
              • Unreplied
              • Popular
              • GitHub
              • Docu
              • Hilfe