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. English
  3. Visualization
  4. Bindung Anzahl Objekte im JSON

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.2k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Bindung Anzahl Objekte im JSON

Scheduled Pinned Locked Moved Visualization
3 Posts 2 Posters 666 Views 2 Watching
  • 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.
  • S Offline
    S Offline
    SpacerX
    wrote on last edited by
    #1

    Eine Frage zu Binding im Widget.
    Ich möchte die Anzahl der Objekte im JSON ermitteln und darstellen.
    So in der Art:

    {dp:0_userdata.0.datenpunkt;dp.length}
    

    dp ist ein JSON Datenpunkt.

    Jemand sowas schon mal umgesetzt?

    DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

    OliverIOO 1 Reply Last reply
    0
    • S SpacerX

      Eine Frage zu Binding im Widget.
      Ich möchte die Anzahl der Objekte im JSON ermitteln und darstellen.
      So in der Art:

      {dp:0_userdata.0.datenpunkt;dp.length}
      

      dp ist ein JSON Datenpunkt.

      Jemand sowas schon mal umgesetzt?

      OliverIOO Offline
      OliverIOO Offline
      OliverIO
      wrote on last edited by
      #2

      @spacerx
      Das müsste gehen. ggfs. musst du aber dp erst in ein Objekt mit JSON.parse umwandeln.
      In manchen fällen hat das Binding mit JSON ein Problem.

      Alternativ kannst du auch das verwenden
      https://forum.iobroker.net/topic/31521/test-widget-json-template?_=1673860471798

      Meine Adapter und Widgets
      TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
      Links im Profil

      S 1 Reply Last reply
      0
      • OliverIOO OliverIO

        @spacerx
        Das müsste gehen. ggfs. musst du aber dp erst in ein Objekt mit JSON.parse umwandeln.
        In manchen fällen hat das Binding mit JSON ein Problem.

        Alternativ kannst du auch das verwenden
        https://forum.iobroker.net/topic/31521/test-widget-json-template?_=1673860471798

        S Offline
        S Offline
        SpacerX
        wrote on last edited by
        #3

        @oliverio folgendes habe ich probiert:

        {dp:0_userdata.0.datenpunkt;dp.length}
        {dp:0_userdata.0.datenpunkt;JSON.parse(dp).length}
        {JSON.parse(0_userdata.0.Datenpunkt).length}
        

        Das scheint genau der Fall zu sein wo das mit dem JSON nicht funktioniert.

        DS720|Nuc8i3BEH|Proxmox|RaspberryMatic|ioBroker|influxDB2|Grafana

        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

        610

        Online

        32.7k

        Users

        82.4k

        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