Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. So eine Art XML Parser?

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    So eine Art XML Parser?

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Schnutexxl last edited by

      Hallo Zusammen,

      ist es mit einfachen Boardmitteln möglich folgendes in ein json Format, oder so zu parsen, damit man es

      erstens: als Datenpunkte nutzen kann

      zweitens: in einer Tabelle in VIS darstellen kann

       <cgi_result><result>0</result> <ioalarm>0</ioalarm> <motiondetectalarm>1</motiondetectalarm> <soundalarm>0</soundalarm> <record>0</record> <sdstate>0</sdstate> <sdfreespace>0k</sdfreespace> <sdtotalspace>0k</sdtotalspace> <ntpstate>1</ntpstate> <ddnsstate>0</ddnsstate>  <upnpstate>1</upnpstate> <iswificonnected>1</iswificonnected> <wificonnectedap>QSH</wificonnectedap> <infraledstate>0</infraledstate></cgi_result> 
      

      Den String bekomme ich aus einem NodeRed Flow, der in einen Datenpunkt "String" geschrieben wird.

      Danke und schöne Grüße

      1 Reply Last reply Reply Quote 0
      • Jey Cee
        Jey Cee Developer last edited by

        Japp gibt es:

        Das Nodejs modul xml2js im Javascript Adapter eintragen.

        Und hier ein Beispiel zur Nutzung: http://forum.iobroker.net/viewtopic.php?t=860#p6397

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate
        FAQ Cloud / IOT
        HowTo: Node.js-Update
        HowTo: Backup/Restore
        Downloads
        BLOG

        434
        Online

        31.8k
        Users

        79.9k
        Topics

        1.3m
        Posts

        2
        2
        1599
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo