Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. [Vorlage] HP Drucker Füllstände (Javascript).

    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

    [Vorlage] HP Drucker Füllstände (Javascript).

    This topic has been deleted. Only users with topic management privileges can see it.
    • mickym
      mickym Most Active @Christian 4 last edited by mickym

      @christian-4 Danke - ich habe schon was ähnliches gemacht, aber über snmp und NodeRed.

      788e99bb-393b-4097-923a-309816138ddd-image.png

      Nun nur noch die Frage - Du machst das über http- Abfrage. Sind diese Punkte für alle HP Drucker gleich?

      C 1 Reply Last reply Reply Quote 0
      • C
        Christian 4 @mickym last edited by

        Hallo @mickym,

        ja, die "Nodes" sollten alle gleich sein. Was variieren könnte ist die Anzahl der Patronen. Bei mir sind es vier. Natürlich könnte man in der "each" Schleife auch Dynamisch einfach alle Patronen auslesen, und die Datenpunkte automatisch generieren lassen. Dann wäre es egal, ob 2 oder 6 Patronen drin sind.

        VG Christian

        mickym 1 Reply Last reply Reply Quote 0
        • mickym
          mickym Most Active @Christian 4 last edited by mickym

          Ich habe Deine Abfrage mal der mit Node Red gegenüber der SNMP Abfrage gemacht:

          232c0341-ed2e-457b-87ad-5861954bdcca-image.png
          Dabei habe ich nur festgestellt, dass

          1. Im Family Name ein Abkürzung aber nicht wie bei Dir der vollständige Name drin steht
          2. Die Tintenfüllstände gegenüber der SNMP Abfrage ungenauer bzw. halt gerundet sind auf jeweils 10%.

          [
             {
                 "id": "1e4e17cd.0816f8",
                 "type": "debug",
                 "z": "6442fb39.022744",
                 "name": "",
                 "active": true,
                 "tosidebar": true,
                 "console": false,
                 "tostatus": false,
                 "complete": "false",
                 "statusVal": "",
                 "statusType": "auto",
                 "x": 730,
                 "y": 1060,
                 "wires": []
             },
             {
                 "id": "77406fe.1a4869",
                 "type": "xml",
                 "z": "6442fb39.022744",
                 "name": "",
                 "property": "payload",
                 "attr": "",
                 "chr": "",
                 "x": 510,
                 "y": 1060,
                 "wires": [
                     [
                         "1e4e17cd.0816f8"
                     ]
                 ]
             },
             {
                 "id": "fe09b59f.718b18",
                 "type": "http request",
                 "z": "6442fb39.022744",
                 "name": "",
                 "method": "GET",
                 "ret": "txt",
                 "paytoqs": "ignore",
                 "url": "",
                 "tls": "",
                 "persist": false,
                 "proxy": "",
                 "authType": "",
                 "x": 330,
                 "y": 1060,
                 "wires": [
                     [
                         "77406fe.1a4869"
                     ]
                 ]
             },
             {
                 "id": "1a525240.768fee",
                 "type": "inject",
                 "z": "6442fb39.022744",
                 "name": "Url",
                 "props": [
                     {
                         "p": "url",
                         "v": "http://xxx.xxx.xxx.xx/DevMgmt/ConsumableConfigDyn.xml",
                         "vt": "str"
                     }
                 ],
                 "repeat": "",
                 "crontab": "",
                 "once": false,
                 "onceDelay": 0.1,
                 "topic": "",
                 "x": 160,
                 "y": 1060,
                 "wires": [
                     [
                         "fe09b59f.718b18"
                     ]
                 ]
             }
          ]
          

          1 Reply Last reply Reply Quote 0
          • Latzi
            Latzi @Christian 4 last edited by Latzi

            @christian-4
            Danke für das Script.
            Ich bekomme folgende warnings (Datenpunkte werden aber korrekt befüllt):

            javascript.0	2021-04-16 17:55:18.619	warn	(8722) at processTicksAndRejections (internal/process/task_queues.js:84:21)
            javascript.0	2021-04-16 17:55:18.619	warn	(8722) at endReadableNT (_stream_readable.js:1241:12)
            javascript.0	2021-04-16 17:55:18.619	warn	(8722) at IncomingMessage.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.619	warn	(8722) at IncomingMessage.emit (events.js:326:22)
            javascript.0	2021-04-16 17:55:18.618	warn	(8722) at Object.onceWrapper (events.js:420:28)
            javascript.0	2021-04-16 17:55:18.618	warn	(8722) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1076:12)
            javascript.0	2021-04-16 17:55:18.618	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.618	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.618	warn	(8722) at Request.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1154:10)
            javascript.0	2021-04-16 17:55:18.618	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.617	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.617	warn	(8722) at Request.self.callback (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:185:22)
            javascript.0	2021-04-16 17:55:18.617	warn	(8722) at Request._callback (/opt/iobroker/node_modules/iobroker.javascript/lib/request.js:27:17)
            javascript.0	2021-04-16 17:55:18.617	warn	(8722) at script.js.common.HP_Drucker_Status:31:9
            javascript.0	2021-04-16 17:55:18.617	warn	(8722) at exports.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:369:19)
            javascript.0	2021-04-16 17:55:18.617	warn	(8722) at Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:5:59)
            javascript.0	2021-04-16 17:55:18.616	warn	(8722) at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:323:31)
            javascript.0	2021-04-16 17:55:18.616	warn	(8722) at SAXParser.write (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:1436:13)
            javascript.0	2021-04-16 17:55:18.616	warn	(8722) at closeTag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:889:7)
            javascript.0	2021-04-16 17:55:18.616	warn	(8722) at emitNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:629:5)
            javascript.0	2021-04-16 17:55:18.616	warn	(8722) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:624:35)
            javascript.0	2021-04-16 17:55:18.615	warn	(8722) at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:262:26)
            javascript.0	2021-04-16 17:55:18.615	warn	(8722) at Parser.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.615	warn	(8722) at Parser.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.615	warn	(8722) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:304:18)
            javascript.0	2021-04-16 17:55:18.615	warn	(8722) at script.js.common.HP_Drucker_Status:60:17
            javascript.0	2021-04-16 17:55:18.614	warn	(8722) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20)
            javascript.0	2021-04-16 17:55:18.612	warn	(8722) State "javascript.0.Drucker.HP.OJ_Pro_8600..ProductNumber" not found
            javascript.0	2021-04-16 17:55:18.611	warn	(8722) at processTicksAndRejections (internal/process/task_queues.js:84:21)
            javascript.0	2021-04-16 17:55:18.611	warn	(8722) at endReadableNT (_stream_readable.js:1241:12)
            javascript.0	2021-04-16 17:55:18.611	warn	(8722) at IncomingMessage.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.611	warn	(8722) at IncomingMessage.emit (events.js:326:22)
            javascript.0	2021-04-16 17:55:18.611	warn	(8722) at Object.onceWrapper (events.js:420:28)
            javascript.0	2021-04-16 17:55:18.611	warn	(8722) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1076:12)
            javascript.0	2021-04-16 17:55:18.610	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.610	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.610	warn	(8722) at Request.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1154:10)
            javascript.0	2021-04-16 17:55:18.610	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.610	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.610	warn	(8722) at Request.self.callback (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:185:22)
            javascript.0	2021-04-16 17:55:18.609	warn	(8722) at Request._callback (/opt/iobroker/node_modules/iobroker.javascript/lib/request.js:27:17)
            javascript.0	2021-04-16 17:55:18.609	warn	(8722) at script.js.common.HP_Drucker_Status:31:9
            javascript.0	2021-04-16 17:55:18.609	warn	(8722) at exports.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:369:19)
            javascript.0	2021-04-16 17:55:18.609	warn	(8722) at Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:5:59)
            javascript.0	2021-04-16 17:55:18.609	warn	(8722) at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:323:31)
            javascript.0	2021-04-16 17:55:18.609	warn	(8722) at SAXParser.write (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:1436:13)
            javascript.0	2021-04-16 17:55:18.608	warn	(8722) at closeTag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:889:7)
            javascript.0	2021-04-16 17:55:18.608	warn	(8722) at emitNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:629:5)
            javascript.0	2021-04-16 17:55:18.608	warn	(8722) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:624:35)
            javascript.0	2021-04-16 17:55:18.608	warn	(8722) at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:262:26)
            javascript.0	2021-04-16 17:55:18.608	warn	(8722) at Parser.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.608	warn	(8722) at Parser.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.607	warn	(8722) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:304:18)
            javascript.0	2021-04-16 17:55:18.607	warn	(8722) at script.js.common.HP_Drucker_Status:59:17
            javascript.0	2021-04-16 17:55:18.607	warn	(8722) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20)
            javascript.0	2021-04-16 17:55:18.604	warn	(8722) State "javascript.0.Drucker.HP.OJ_Pro_8600..ConsumablePercentageLevelRemaining" not found
            javascript.0	2021-04-16 17:55:18.604	warn	(8722) at processTicksAndRejections (internal/process/task_queues.js:84:21)
            javascript.0	2021-04-16 17:55:18.604	warn	(8722) at endReadableNT (_stream_readable.js:1241:12)
            javascript.0	2021-04-16 17:55:18.603	warn	(8722) at IncomingMessage.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.603	warn	(8722) at IncomingMessage.emit (events.js:326:22)
            javascript.0	2021-04-16 17:55:18.603	warn	(8722) at Object.onceWrapper (events.js:420:28)
            javascript.0	2021-04-16 17:55:18.603	warn	(8722) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1076:12)
            javascript.0	2021-04-16 17:55:18.603	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.602	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.602	warn	(8722) at Request.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1154:10)
            javascript.0	2021-04-16 17:55:18.602	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.602	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.602	warn	(8722) at Request.self.callback (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:185:22)
            javascript.0	2021-04-16 17:55:18.602	warn	(8722) at Request._callback (/opt/iobroker/node_modules/iobroker.javascript/lib/request.js:27:17)
            javascript.0	2021-04-16 17:55:18.601	warn	(8722) at script.js.common.HP_Drucker_Status:31:9
            javascript.0	2021-04-16 17:55:18.601	warn	(8722) at exports.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:369:19)
            javascript.0	2021-04-16 17:55:18.601	warn	(8722) at Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:5:59)
            javascript.0	2021-04-16 17:55:18.601	warn	(8722) at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:323:31)
            javascript.0	2021-04-16 17:55:18.601	warn	(8722) at SAXParser.write (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:1436:13)
            javascript.0	2021-04-16 17:55:18.601	warn	(8722) at closeTag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:889:7)
            javascript.0	2021-04-16 17:55:18.600	warn	(8722) at emitNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:629:5)
            javascript.0	2021-04-16 17:55:18.600	warn	(8722) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:624:35)
            javascript.0	2021-04-16 17:55:18.600	warn	(8722) at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:262:26)
            javascript.0	2021-04-16 17:55:18.600	warn	(8722) at Parser.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.600	warn	(8722) at Parser.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.600	warn	(8722) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:304:18)
            javascript.0	2021-04-16 17:55:18.599	warn	(8722) at script.js.common.HP_Drucker_Status:58:17
            javascript.0	2021-04-16 17:55:18.599	warn	(8722) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20)
            javascript.0	2021-04-16 17:55:18.593	warn	(8722) State "javascript.0.Drucker.HP.OJ_Pro_8600..ConsumableLabelCode" not found
            javascript.0	2021-04-16 17:55:18.593	warn	(8722) at processTicksAndRejections (internal/process/task_queues.js:84:21)
            javascript.0	2021-04-16 17:55:18.592	warn	(8722) at endReadableNT (_stream_readable.js:1241:12)
            javascript.0	2021-04-16 17:55:18.592	warn	(8722) at IncomingMessage.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.592	warn	(8722) at IncomingMessage.emit (events.js:326:22)
            javascript.0	2021-04-16 17:55:18.592	warn	(8722) at Object.onceWrapper (events.js:420:28)
            javascript.0	2021-04-16 17:55:18.592	warn	(8722) at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1076:12)
            javascript.0	2021-04-16 17:55:18.592	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.591	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.591	warn	(8722) at Request.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:1154:10)
            javascript.0	2021-04-16 17:55:18.591	warn	(8722) at Request.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.591	warn	(8722) at Request.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.591	warn	(8722) at Request.self.callback (/opt/iobroker/node_modules/iobroker.javascript/node_modules/request/request.js:185:22)
            javascript.0	2021-04-16 17:55:18.591	warn	(8722) at Request._callback (/opt/iobroker/node_modules/iobroker.javascript/lib/request.js:27:17)
            javascript.0	2021-04-16 17:55:18.590	warn	(8722) at script.js.common.HP_Drucker_Status:31:9
            javascript.0	2021-04-16 17:55:18.590	warn	(8722) at exports.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:369:19)
            javascript.0	2021-04-16 17:55:18.590	warn	(8722) at Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:5:59)
            javascript.0	2021-04-16 17:55:18.590	warn	(8722) at Parser.exports.Parser.Parser.parseString (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:323:31)
            javascript.0	2021-04-16 17:55:18.590	warn	(8722) at SAXParser.write (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:1436:13)
            javascript.0	2021-04-16 17:55:18.590	warn	(8722) at closeTag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:889:7)
            javascript.0	2021-04-16 17:55:18.589	warn	(8722) at emitNode (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:629:5)
            javascript.0	2021-04-16 17:55:18.589	warn	(8722) at emit (/opt/iobroker/node_modules/iobroker.javascript/node_modules/sax/lib/sax.js:624:35)
            javascript.0	2021-04-16 17:55:18.589	warn	(8722) at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:262:26)
            javascript.0	2021-04-16 17:55:18.589	warn	(8722) at Parser.EventEmitter.emit (domain.js:483:12)
            javascript.0	2021-04-16 17:55:18.589	warn	(8722) at Parser.emit (events.js:314:20)
            javascript.0	2021-04-16 17:55:18.588	warn	(8722) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/xml2js/lib/parser.js:304:18)
            javascript.0	2021-04-16 17:55:18.588	warn	(8722) at script.js.common.HP_Drucker_Status:57:17
            javascript.0	2021-04-16 17:55:18.588	warn	(8722) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20)
            javascript.0	2021-04-16 17:55:18.585	warn	(8722) State "javascript.0.Drucker.HP.OJ_Pro_8600..ConsumableFamilyName" not found
            javascript.0	2021-04-16 17:55:18.584	info	(8722) script.js.common.HP_Drucker_Status: [ERROR] ColorDataPoint not found for CMYK!
            javascript.0	2021-04-16 17:55:18.491	info	(8722) script.js.common.HP_Drucker_Status: registered 0 subscriptions and 0 schedules
            

            Hast du eine Idee woran das liegen kann?

            EDIT: Hier noch meine xml:

            This XML file does not appear to have any style information associated with it. The document tree is shown below.
            <!--  THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN.  -->
            <ccdyn:ConsumableConfigDyn xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:dd2="http://www.hp.com/schemas/imaging/con/dictionaries/2008/10/10" xmlns:ccdyn="http://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19 ../schemas/ConsumableConfigDyn.xsd http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd">
            <dd:Version>
            <dd:Revision>SVN-IPG-LEDM.38</dd:Revision>
            <dd:Date>2010-06-02</dd:Date>
            </dd:Version>
            <ccdyn:ProductConsumableInfo>
            <dd:NumOfUserReplaceableConsumables>5</dd:NumOfUserReplaceableConsumables>
            <dd:NumOfNonUserReplaceableConsumables>0</dd:NumOfNonUserReplaceableConsumables>
            <dd:AlignmentMode>automatic</dd:AlignmentMode>
            <ccdyn:CartridgeChipInfo>enabled</ccdyn:CartridgeChipInfo>
            <ccdyn:SupportedConsumables>
            <ccdyn:SupportedConsumable>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:ConsumableLabelCode>M</dd:ConsumableLabelCode>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951XL</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>everyday</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951 Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            </ccdyn:SupportedConsumable>
            <ccdyn:SupportedConsumable>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:ConsumableLabelCode>C</dd:ConsumableLabelCode>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951XL</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>everyday</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951 Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            </ccdyn:SupportedConsumable>
            <ccdyn:SupportedConsumable>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:ConsumableLabelCode>Y</dd:ConsumableLabelCode>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951XL</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>everyday</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951 Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>951XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            </ccdyn:SupportedConsumable>
            <ccdyn:SupportedConsumable>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:ConsumableLabelCode>K</dd:ConsumableLabelCode>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>950XL</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>950</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>everyday</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>950 Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            <ccdyn:SupportedConsumableInfo>
            <dd:ConsumableSelectibilityNumber>950XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableUsageType>highVolume</dd:ConsumableUsageType>
            </ccdyn:SupportedConsumableInfo>
            </ccdyn:SupportedConsumable>
            </ccdyn:SupportedConsumables>
            <dd:ConsumableSlotDirection>leftToRight</dd:ConsumableSlotDirection>
            <dd:IK>484</dd:IK>
            <ccdyn:SingleCartridgeMode>disabled</ccdyn:SingleCartridgeMode>
            <dd:AntiTheftMode>disabled</dd:AntiTheftMode>
            </ccdyn:ProductConsumableInfo>
            <ccdyn:ConsumableInfo>
            <dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>
            <dd:ConsumableFamilyName>PAULINA</dd:ConsumableFamilyName>
            <dd2:ConsumableID>000000000000000000000000400A65F1</dd2:ConsumableID>
            <dd:ConsumableLabelCode>CMYK</dd:ConsumableLabelCode>
            <dd:ConsumableLifeState>
            <dd:ConsumableState>ok</dd:ConsumableState>
            <dd:Brand>HP</dd:Brand>
            </dd:ConsumableLifeState>
            <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
            <dd:ConsumableStation>4</dd:ConsumableStation>
            <dd:ConsumableTypeEnum>printhead</dd:ConsumableTypeEnum>
            <dd:Installation>
            <dd:Date>2012-08-01</dd:Date>
            </dd:Installation>
            </ccdyn:ConsumableInfo>
            <ccdyn:ConsumableInfo>
            <dd:Capacity>
            <dd:MaxCapacity>230</dd:MaxCapacity>
            <dd:Unit>tenthsOfMilliliters</dd:Unit>
            </dd:Capacity>
            <dd:ConsumableAcceptibilitySubBrand>officejet</dd:ConsumableAcceptibilitySubBrand>
            <dd:ConsumableAcceptibilitySegmentClass>allDevices</dd:ConsumableAcceptibilitySegmentClass>
            <dd:ConsumableAcceptibilityUpgradability>notSupported</dd:ConsumableAcceptibilityUpgradability>
            <dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>
            <dd:ConsumableFamilyName>NESTA</dd:ConsumableFamilyName>
            <dd:ConsumableKeyingDescriptor>large1</dd:ConsumableKeyingDescriptor>
            <dd:ConsumableLabelCode>M</dd:ConsumableLabelCode>
            <dd:ConsumableLifeState>
            <dd:ConsumableState>low</dd:ConsumableState>
            <dd:MeasuredQuantityState>low</dd:MeasuredQuantityState>
            <dd:Brand>HP</dd:Brand>
            <dd:ConsumableStateAction>continue</dd:ConsumableStateAction>
            <dd:IsRefilled>false</dd:IsRefilled>
            </dd:ConsumableLifeState>
            <dd:ConsumableLevelMessagingStyle>dropCount</dd:ConsumableLevelMessagingStyle>
            <dd:ConsumableLowUseAlgorithm>standard</dd:ConsumableLowUseAlgorithm>
            <dd:ConsumablePercentageLevelRemaining>20</dd:ConsumablePercentageLevelRemaining>
            <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
            <dd:ConsumableSelectibilityNumber>951XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableStation>0</dd:ConsumableStation>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:Installation>
            <dd:Date>2019-01-29</dd:Date>
            </dd:Installation>
            <dd:ProductNumber>CN047AE</dd:ProductNumber>
            <dd:SerialNumber>1918218772</dd:SerialNumber>
            <dd:RegionalCartridge>
            <dd:RegionIdentifier>4</dd:RegionIdentifier>
            </dd:RegionalCartridge>
            <dd:ConsumableIcon>
            <dd:Shape>Circle</dd:Shape>
            <dd:Rotation>rotateZero</dd:Rotation>
            <dd:FillColor>
            <dd:Red>255</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:FillColor>
            <dd:OutlineColor>
            <dd:Red>255</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:OutlineColor>
            <dd:BackGroundColor>
            <dd:Red>0</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:BackGroundColor>
            <dd:RGBTextColor>
            <dd:Red>255</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:RGBTextColor>
            <dd:Label>M</dd:Label>
            </dd:ConsumableIcon>
            <dd:Warranty>
            <dd:ExpirationDate>2019-03-05</dd:ExpirationDate>
            </dd:Warranty>
            </ccdyn:ConsumableInfo>
            <ccdyn:ConsumableInfo>
            <dd:Capacity>
            <dd:MaxCapacity>216</dd:MaxCapacity>
            <dd:Unit>tenthsOfMilliliters</dd:Unit>
            </dd:Capacity>
            <dd:ConsumableAcceptibilitySubBrand>officejet</dd:ConsumableAcceptibilitySubBrand>
            <dd:ConsumableAcceptibilitySegmentClass>allDevices</dd:ConsumableAcceptibilitySegmentClass>
            <dd:ConsumableAcceptibilityUpgradability>notSupported</dd:ConsumableAcceptibilityUpgradability>
            <dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>
            <dd:ConsumableFamilyName>NESTA</dd:ConsumableFamilyName>
            <dd:ConsumableKeyingDescriptor>large1</dd:ConsumableKeyingDescriptor>
            <dd:ConsumableLabelCode>C</dd:ConsumableLabelCode>
            <dd:ConsumableLifeState>
            <dd:ConsumableState>ok</dd:ConsumableState>
            <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
            <dd:Brand>HP</dd:Brand>
            <dd:ConsumableStateAction>none</dd:ConsumableStateAction>
            <dd:IsRefilled>false</dd:IsRefilled>
            </dd:ConsumableLifeState>
            <dd:ConsumableLevelMessagingStyle>dropCount</dd:ConsumableLevelMessagingStyle>
            <dd:ConsumableLowUseAlgorithm>standard</dd:ConsumableLowUseAlgorithm>
            <dd:ConsumablePercentageLevelRemaining>50</dd:ConsumablePercentageLevelRemaining>
            <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
            <dd:ConsumableSelectibilityNumber>951XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableStation>1</dd:ConsumableStation>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:Installation>
            <dd:Date>2019-12-10</dd:Date>
            </dd:Installation>
            <dd:ProductNumber>CN046AE</dd:ProductNumber>
            <dd:SerialNumber>1893540228</dd:SerialNumber>
            <dd:RegionalCartridge>
            <dd:RegionIdentifier>4</dd:RegionIdentifier>
            </dd:RegionalCartridge>
            <dd:ConsumableIcon>
            <dd:Shape>Circle</dd:Shape>
            <dd:Rotation>rotateZero</dd:Rotation>
            <dd:FillColor>
            <dd:Red>0</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:FillColor>
            <dd:OutlineColor>
            <dd:Red>0</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:OutlineColor>
            <dd:BackGroundColor>
            <dd:Red>0</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:BackGroundColor>
            <dd:RGBTextColor>
            <dd:Red>255</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:RGBTextColor>
            <dd:Label>C</dd:Label>
            </dd:ConsumableIcon>
            <dd:Warranty>
            <dd:ExpirationDate>2019-01-22</dd:ExpirationDate>
            </dd:Warranty>
            </ccdyn:ConsumableInfo>
            <ccdyn:ConsumableInfo>
            <dd:Capacity>
            <dd:MaxCapacity>230</dd:MaxCapacity>
            <dd:Unit>tenthsOfMilliliters</dd:Unit>
            </dd:Capacity>
            <dd:ConsumableAcceptibilitySubBrand>officejet</dd:ConsumableAcceptibilitySubBrand>
            <dd:ConsumableAcceptibilitySegmentClass>allDevices</dd:ConsumableAcceptibilitySegmentClass>
            <dd:ConsumableAcceptibilityUpgradability>notSupported</dd:ConsumableAcceptibilityUpgradability>
            <dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>
            <dd:ConsumableFamilyName>NESTA</dd:ConsumableFamilyName>
            <dd:ConsumableKeyingDescriptor>large1</dd:ConsumableKeyingDescriptor>
            <dd:ConsumableLabelCode>Y</dd:ConsumableLabelCode>
            <dd:ConsumableLifeState>
            <dd:ConsumableState>ok</dd:ConsumableState>
            <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
            <dd:Brand>HP</dd:Brand>
            <dd:ConsumableStateAction>none</dd:ConsumableStateAction>
            <dd:IsRefilled>false</dd:IsRefilled>
            </dd:ConsumableLifeState>
            <dd:ConsumableLevelMessagingStyle>dropCount</dd:ConsumableLevelMessagingStyle>
            <dd:ConsumableLowUseAlgorithm>standard</dd:ConsumableLowUseAlgorithm>
            <dd:ConsumablePercentageLevelRemaining>80</dd:ConsumablePercentageLevelRemaining>
            <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
            <dd:ConsumableSelectibilityNumber>951XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableStation>2</dd:ConsumableStation>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:Installation>
            <dd:Date>2020-10-14</dd:Date>
            </dd:Installation>
            <dd:ProductNumber>CN048AE</dd:ProductNumber>
            <dd:SerialNumber>1935968808</dd:SerialNumber>
            <dd:RegionalCartridge>
            <dd:RegionIdentifier>4</dd:RegionIdentifier>
            </dd:RegionalCartridge>
            <dd:ConsumableIcon>
            <dd:Shape>Circle</dd:Shape>
            <dd:Rotation>rotateZero</dd:Rotation>
            <dd:FillColor>
            <dd:Red>255</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:FillColor>
            <dd:OutlineColor>
            <dd:Red>255</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:OutlineColor>
            <dd:BackGroundColor>
            <dd:Red>0</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:BackGroundColor>
            <dd:RGBTextColor>
            <dd:Red>0</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:RGBTextColor>
            <dd:Label>Y</dd:Label>
            </dd:ConsumableIcon>
            <dd:Warranty>
            <dd:ExpirationDate>2019-04-02</dd:ExpirationDate>
            </dd:Warranty>
            </ccdyn:ConsumableInfo>
            <ccdyn:ConsumableInfo>
            <dd:Capacity>
            <dd:MaxCapacity>651</dd:MaxCapacity>
            <dd:Unit>tenthsOfMilliliters</dd:Unit>
            </dd:Capacity>
            <dd:ConsumableAcceptibilitySubBrand>officejet</dd:ConsumableAcceptibilitySubBrand>
            <dd:ConsumableAcceptibilitySegmentClass>allDevices</dd:ConsumableAcceptibilitySegmentClass>
            <dd:ConsumableAcceptibilityUpgradability>notSupported</dd:ConsumableAcceptibilityUpgradability>
            <dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>
            <dd:ConsumableFamilyName>NESTA</dd:ConsumableFamilyName>
            <dd:ConsumableKeyingDescriptor>large1</dd:ConsumableKeyingDescriptor>
            <dd:ConsumableLabelCode>K</dd:ConsumableLabelCode>
            <dd:ConsumableLifeState>
            <dd:ConsumableState>ok</dd:ConsumableState>
            <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
            <dd:Brand>HP</dd:Brand>
            <dd:ConsumableStateAction>none</dd:ConsumableStateAction>
            <dd:IsRefilled>false</dd:IsRefilled>
            </dd:ConsumableLifeState>
            <dd:ConsumableLevelMessagingStyle>dropCount</dd:ConsumableLevelMessagingStyle>
            <dd:ConsumableLowUseAlgorithm>standard</dd:ConsumableLowUseAlgorithm>
            <dd:ConsumablePercentageLevelRemaining>60</dd:ConsumablePercentageLevelRemaining>
            <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
            <dd:ConsumableSelectibilityNumber>950XL Z20</dd:ConsumableSelectibilityNumber>
            <dd:ConsumableStation>3</dd:ConsumableStation>
            <dd:ConsumableTypeEnum>ink</dd:ConsumableTypeEnum>
            <dd:Installation>
            <dd:Date>2020-07-08</dd:Date>
            </dd:Installation>
            <dd:ProductNumber>CN045AE</dd:ProductNumber>
            <dd:SerialNumber>1918180844</dd:SerialNumber>
            <dd:RegionalCartridge>
            <dd:RegionIdentifier>4</dd:RegionIdentifier>
            </dd:RegionalCartridge>
            <dd:ConsumableIcon>
            <dd:Shape>Circle</dd:Shape>
            <dd:Rotation>rotateZero</dd:Rotation>
            <dd:FillColor>
            <dd:Red>0</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:FillColor>
            <dd:OutlineColor>
            <dd:Red>0</dd:Red>
            <dd:Green>0</dd:Green>
            <dd:Blue>0</dd:Blue>
            </dd:OutlineColor>
            <dd:BackGroundColor>
            <dd:Red>255</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:BackGroundColor>
            <dd:RGBTextColor>
            <dd:Red>255</dd:Red>
            <dd:Green>255</dd:Green>
            <dd:Blue>255</dd:Blue>
            </dd:RGBTextColor>
            <dd:Label>K</dd:Label>
            </dd:ConsumableIcon>
            <dd:Warranty>
            <dd:ExpirationDate>2019-03-05</dd:ExpirationDate>
            </dd:Warranty>
            </ccdyn:ConsumableInfo>
            </ccdyn:ConsumableConfigDyn>
            

            amg_666 C 2 Replies Last reply Reply Quote 0
            • amg_666
              amg_666 @Latzi last edited by

              @latzi und wer einen Samsung benutzt, kann den über snmp abfragen (die OID sind glaube ich bei HP genauso):

              d812b0b4-685c-4c99-a1cf-6629b335473d-grafik.png

              und so könnte man es dann darstellen
              735e7716-cb15-4414-babb-f2c39780e3f6-grafik.png

              Latzi 1 Reply Last reply Reply Quote 0
              • Latzi
                Latzi @amg_666 last edited by

                @amg_666 sagte in [Vorlage] HP Drucker Füllstände (Javascript).:

                die OID sind glaube ich bei HP genauso

                Danke, doch leider bei meinem nicht 😞

                1 Reply Last reply Reply Quote 0
                • C
                  Christian 4 @Latzi last edited by

                  Hallo @latzi,

                  kann ich Dir ad-hoc nicht beantworten. Ich kann den parser mal mit Deiner XML durchlaufen lassen. Gehe aber mal davon aus, dass das XML vom Drucker konform sein sollte. Evtl. liegt es am xml2js parser.

                  VG Christian

                  Latzi 1 Reply Last reply Reply Quote 0
                  • Latzi
                    Latzi @Christian 4 last edited by

                    @christian-4
                    ich hab die warnings mittlerweilen eliminiert - mit einem if-statement vor dem Setzen der Datenpunkte, jetzt läuft´s tadellos 👏

                    if (ColorDataPoint != "") {
                                       setState('javascript.0.Drucker.HP
                    
                    C 2 Replies Last reply Reply Quote 0
                    • C
                      Christian 4 @Latzi last edited by

                      @latzi
                      👍

                      1 Reply Last reply Reply Quote 0
                      • C
                        Christian 4 @Latzi last edited by

                        @latzi

                        Bei Deiner XML kommt noch der Colorcode "CMYK" durch.

                        Du kannst auch in der switch Anweisung ein continue machen wenn der Code auftaucht. zusätzlich kann ein continue im default erfolgen.

                        Bildschirmfoto 2021-04-18 um 12.04.51.png

                        VG Christian

                        1 Reply Last reply Reply Quote 0
                        • Nashra
                          Nashra Most Active Forum Testing @Christian 4 last edited by

                          @christian-4 sagte in [Vorlage] HP Drucker Füllstände (Javascript).:

                          Habpanel:
                          Bildschirmfoto 2021-04-16 um 12.38.37.png

                          Hey, welches Widget hast Du für die Darstellung genutzt.

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            Christian 4 @Nashra last edited by Christian 4

                            Hallo @nashra,

                            den Standard Drehknopf im Habpanel.

                            Bildschirmfoto 2021-04-19 um 07.44.35.png

                            VG Christian

                            1 Reply Last reply Reply Quote 0
                            • Nashra
                              Nashra Most Active Forum Testing last edited by

                              @Christian-4, danke 👍

                              1 Reply Last reply Reply Quote 0
                              • J
                                jensus11 last edited by

                                Hallo,

                                ich versuche das Script bei mir zum laufen zubekommen.
                                Klappt auch soweit, nur es werden mir keine Werte geliefert.
                                Im Javascriptadapter habe ich das Modul xml2js eingefügt, request hatte ich schon eingefügt.

                                Kann mir da einen helfen?

                                die xml sieht so aus.


                                This XML file does not appear to have any style information associated with it. The document tree is shown below.
                                <!--
                                THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN.
                                -->
                                <ccdyn:ConsumableConfigDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:ccdyn="http://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ dd/DataDictionaryMasterLEDM.xsd http://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19 ConsumableConfigDyn.xsd">
                                dd:Version
                                dd:RevisionSVN-IPG-LEDM.1103</dd:Revision>
                                </dd:Version>
                                ccdyn:ProductConsumableInfo
                                dd:NumOfUserReplaceableConsumables4</dd:NumOfUserReplaceableConsumables>
                                dd:NumOfNonUserReplaceableConsumables0</dd:NumOfNonUserReplaceableConsumables>
                                ccdyn:AtVeryLowSettings
                                ccdyn:ConsumableSetting
                                dd:ConsumableLabelCodeK</dd:ConsumableLabelCode>
                                dd:ConsumableStateActioncontinue</dd:ConsumableStateAction>
                                </ccdyn:ConsumableSetting>
                                ccdyn:ConsumableSetting
                                dd:ConsumableLabelCodeCMY</dd:ConsumableLabelCode>
                                dd:ConsumableStateActioncontinue</dd:ConsumableStateAction>
                                </ccdyn:ConsumableSetting>
                                </ccdyn:AtVeryLowSettings>
                                dd:StoreUsageDatadisabled</dd:StoreUsageData>
                                ccdyn:GenuineHPSuppliesOnlydisabled</ccdyn:GenuineHPSuppliesOnly>
                                </ccdyn:ProductConsumableInfo>
                                ccdyn:ConsumableInfo
                                dd:Capacity
                                dd:MaxCapacity13</dd:MaxCapacity>
                                dd:Unit100ImpressionsAt5PercentCoverage</dd:Unit>
                                </dd:Capacity>
                                dd:CartridgeModelInformation6600</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0087</dd:CartridgeModelLife>
                                dd:ConsumableFamilyNameBlack toner supply</dd:ConsumableFamilyName>
                                dd:ConsumableLabelCodeK</dd:ConsumableLabelCode>
                                dd:ConsumableLastUsedDate2021-07-03</dd:ConsumableLastUsedDate>
                                dd:ConsumableLifeState
                                dd:ConsumableStateok</dd:ConsumableState>
                                dd:MeasuredQuantityStateok</dd:MeasuredQuantityState>
                                dd:BrandHP</dd:Brand>
                                </dd:ConsumableLifeState>
                                dd:ConsumableLowThreshold10</dd:ConsumableLowThreshold>
                                dd:ConsumablePercentageLevelRemaining70</dd:ConsumablePercentageLevelRemaining>
                                dd:ConsumableReplaceabilityTypeuserReplaceable</dd:ConsumableReplaceabilityType>
                                dd:ConsumableSelectibilityNumber207A</dd:ConsumableSelectibilityNumber>
                                dd:ConsumableStation0</dd:ConsumableStation>
                                dd:ConsumableTypeEnumtoner</dd:ConsumableTypeEnum>
                                dd:Installation
                                dd:Date1976-01-01</dd:Date>
                                </dd:Installation>
                                dd:Manufacturer
                                dd:NameHP</dd:Name>
                                dd:Date2020-09-10</dd:Date>
                                </dd:Manufacturer>
                                dd:ProductNumberW2210A</dd:ProductNumber>
                                dd:SerialNumberXXXXXX</dd:SerialNumber>
                                dd:ConsumableManufacturingSignature
                                XXXXXXXXX632c3dced8fe40921648037091df898be8592631e0cc685fa5ca01fb1390d50ee82105c127837acadd887c3b18bd8a14099dc991d668c43400bd3d2effaca896f6d0bf41dbe24d78afbe15ef5054f9d96d7180fa6792fbff830d0bcd785c89a821c8fe7e00a2cad4975a48c1fa7f51041ec34e874cf8097a4780127507c626b2f90fdd1284893c1b12b2409918ee266b8d067d49444cdabdac3a2d61b0f6d3c43cae7035567f99513063e69e0529673fca1df088722f2cdd64
                                </dd:ConsumableManufacturingSignature>
                                dd:ConsumableEstimatedPages
                                dd:ValueInt1350</dd:ValueInt>
                                dd:PageYieldUnitsISOPages</dd:PageYieldUnits>
                                </dd:ConsumableEstimatedPages>
                                ccdyn:DataCollectionValidfalse</ccdyn:DataCollectionValid>
                                ccdyn:PreviousCartridgeData
                                dd:CartridgeModelInformation0000</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0000</dd:CartridgeModelLife>
                                dd:ProductNumber/
                                dd:Manufacturer
                                dd:Name/
                                dd:Date1976-01-01</dd:Date>
                                </dd:Manufacturer>
                                dd:SerialNumber0</dd:SerialNumber>
                                ccdyn:MonoColorRegardlessOfSize0</ccdyn:MonoColorRegardlessOfSize>
                                ccdyn:EngineTonerRemaining0</ccdyn:EngineTonerRemaining>
                                ccdyn:DrumLife0</ccdyn:DrumLife>
                                ccdyn:DeveloperLife0</ccdyn:DeveloperLife>
                                ccdyn:DeveloperWearLife0</ccdyn:DeveloperWearLife>
                                ccdyn:EngineTonerRemainingLevelVeryLow0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                ccdyn:DrumLifeAtVeryLow0</ccdyn:DrumLifeAtVeryLow>
                                ccdyn:DeveloperLifeAtVeryLow0</ccdyn:DeveloperLifeAtVeryLow>
                                ccdyn:DeveloperWearLifeAtVeryLow0</ccdyn:DeveloperWearLifeAtVeryLow>
                                ccdyn:PageCountLetterAreaConvertedAtVeryLow0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                </ccdyn:PreviousCartridgeData>
                                </ccdyn:ConsumableInfo>
                                ccdyn:ConsumableInfo
                                dd:Capacity
                                dd:MaxCapacity7</dd:MaxCapacity>
                                dd:Unit100ImpressionsAt5PercentCoverage</dd:Unit>
                                </dd:Capacity>
                                dd:CartridgeModelInformation6603</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0046</dd:CartridgeModelLife>
                                dd:ConsumableFamilyNameCyan toner supply</dd:ConsumableFamilyName>
                                dd:ConsumableLabelCodeC</dd:ConsumableLabelCode>
                                dd:ConsumableLastUsedDate2021-07-03</dd:ConsumableLastUsedDate>
                                dd:ConsumableLifeState
                                dd:ConsumableStateok</dd:ConsumableState>
                                dd:MeasuredQuantityStateok</dd:MeasuredQuantityState>
                                dd:BrandHP</dd:Brand>
                                </dd:ConsumableLifeState>
                                dd:ConsumableLowThreshold10</dd:ConsumableLowThreshold>
                                dd:ConsumablePercentageLevelRemaining70</dd:ConsumablePercentageLevelRemaining>
                                dd:ConsumableReplaceabilityTypeuserReplaceable</dd:ConsumableReplaceabilityType>
                                dd:ConsumableSelectibilityNumber207A</dd:ConsumableSelectibilityNumber>
                                dd:ConsumableStation3</dd:ConsumableStation>
                                dd:ConsumableTypeEnumtoner</dd:ConsumableTypeEnum>
                                dd:Installation
                                dd:Date1976-01-01</dd:Date>
                                </dd:Installation>
                                dd:Manufacturer
                                dd:NameHP</dd:Name>
                                dd:Date2020-09-14</dd:Date>
                                </dd:Manufacturer>
                                dd:ProductNumberW2211A</dd:ProductNumber>
                                dd:SerialNumberxxxxxxxx</dd:SerialNumber>
                                dd:ConsumableManufacturingSignature
                                xxxxxxxxxxxbc2994cbe32689d404d448ef561500d3bd46c62f3d7ce273918abcbc8d56abff56ad514b00ab9ed4b0e938b23e400505f2556c9960eeabc77f4c1c325b4ffc5c1161ca78ac6783957c628b5482a78bdede1f3c58559d952d908430099b078097cc0d6f9e832a400a1295cec7c233bf7d6cac5bde1cbe0d6fe5be010f05756e6852b736f2b12eafba3c0f23cad5ce1a04d784f89801ba5bcd74add3b602ef370250b8cffe3db34feb1e81ec9fd75f997d72d88e7355aed665a7ee
                                </dd:ConsumableManufacturingSignature>
                                dd:ConsumableEstimatedPages
                                dd:ValueInt700</dd:ValueInt>
                                dd:PageYieldUnitsISOPages</dd:PageYieldUnits>
                                </dd:ConsumableEstimatedPages>
                                ccdyn:DataCollectionValidfalse</ccdyn:DataCollectionValid>
                                ccdyn:PreviousCartridgeData
                                dd:CartridgeModelInformation0000</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0000</dd:CartridgeModelLife>
                                dd:ProductNumber/
                                dd:Manufacturer
                                dd:Name/
                                dd:Date1976-01-01</dd:Date>
                                </dd:Manufacturer>
                                dd:SerialNumber0</dd:SerialNumber>
                                ccdyn:MonoColorRegardlessOfSize0</ccdyn:MonoColorRegardlessOfSize>
                                ccdyn:EngineTonerRemaining0</ccdyn:EngineTonerRemaining>
                                ccdyn:DrumLife0</ccdyn:DrumLife>
                                ccdyn:DeveloperLife0</ccdyn:DeveloperLife>
                                ccdyn:DeveloperWearLife0</ccdyn:DeveloperWearLife>
                                ccdyn:EngineTonerRemainingLevelVeryLow0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                ccdyn:DrumLifeAtVeryLow0</ccdyn:DrumLifeAtVeryLow>
                                ccdyn:DeveloperLifeAtVeryLow0</ccdyn:DeveloperLifeAtVeryLow>
                                ccdyn:DeveloperWearLifeAtVeryLow0</ccdyn:DeveloperWearLifeAtVeryLow>
                                ccdyn:PageCountLetterAreaConvertedAtVeryLow0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                </ccdyn:PreviousCartridgeData>
                                </ccdyn:ConsumableInfo>
                                ccdyn:ConsumableInfo
                                dd:Capacity
                                dd:MaxCapacity7</dd:MaxCapacity>
                                dd:Unit100ImpressionsAt5PercentCoverage</dd:Unit>
                                </dd:Capacity>
                                dd:CartridgeModelInformation6602</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0046</dd:CartridgeModelLife>
                                dd:ConsumableFamilyNameMagenta toner supply</dd:ConsumableFamilyName>
                                dd:ConsumableLabelCodeM</dd:ConsumableLabelCode>
                                dd:ConsumableLastUsedDate2021-07-03</dd:ConsumableLastUsedDate>
                                dd:ConsumableLifeState
                                dd:ConsumableStateok</dd:ConsumableState>
                                dd:MeasuredQuantityStateok</dd:MeasuredQuantityState>
                                dd:BrandHP</dd:Brand>
                                </dd:ConsumableLifeState>
                                dd:ConsumableLowThreshold10</dd:ConsumableLowThreshold>
                                dd:ConsumablePercentageLevelRemaining70</dd:ConsumablePercentageLevelRemaining>
                                dd:ConsumableReplaceabilityTypeuserReplaceable</dd:ConsumableReplaceabilityType>
                                dd:ConsumableSelectibilityNumber207A</dd:ConsumableSelectibilityNumber>
                                dd:ConsumableStation2</dd:ConsumableStation>
                                dd:ConsumableTypeEnumtoner</dd:ConsumableTypeEnum>
                                dd:Installation
                                dd:Date1976-01-01</dd:Date>
                                </dd:Installation>
                                dd:Manufacturer
                                dd:NameHP</dd:Name>
                                dd:Date2020-09-13</dd:Date>
                                </dd:Manufacturer>
                                dd:ProductNumberW2213A</dd:ProductNumber>
                                dd:SerialNumberxxxxxxxxxx</dd:SerialNumber>
                                dd:ConsumableManufacturingSignature
                                xxxxxxxxxxxxc51a6eb16aa8a4446107dbc62a7c835c273d4fea88c8c4d2f926fe7973e5fa0917d4481856296c4bcf753cb20b3aa839664dbddb824f37e6ad051c5c6e71dbc86411b53f0f5040c0fc30259230323969a3133452ffd2ba38afd29d1f7949a6160e2f8eaa998235a6f95084feebede2dd98af10d4b9d95168b545c4172bcc57e2b77d634395d52fec261254130911227e36ad6d4322301176d588f330fb612ecca88d852f5e291eede135162e76df70e14c69648c0b2c6331e45
                                </dd:ConsumableManufacturingSignature>
                                dd:ConsumableEstimatedPages
                                dd:ValueInt700</dd:ValueInt>
                                dd:PageYieldUnitsISOPages</dd:PageYieldUnits>
                                </dd:ConsumableEstimatedPages>
                                ccdyn:DataCollectionValidfalse</ccdyn:DataCollectionValid>
                                ccdyn:PreviousCartridgeData
                                dd:CartridgeModelInformation0000</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0000</dd:CartridgeModelLife>
                                dd:ProductNumber/
                                dd:Manufacturer
                                dd:Name/
                                dd:Date1976-01-01</dd:Date>
                                </dd:Manufacturer>
                                dd:SerialNumber0</dd:SerialNumber>
                                ccdyn:MonoColorRegardlessOfSize0</ccdyn:MonoColorRegardlessOfSize>
                                ccdyn:EngineTonerRemaining0</ccdyn:EngineTonerRemaining>
                                ccdyn:DrumLife0</ccdyn:DrumLife>
                                ccdyn:DeveloperLife0</ccdyn:DeveloperLife>
                                ccdyn:DeveloperWearLife0</ccdyn:DeveloperWearLife>
                                ccdyn:EngineTonerRemainingLevelVeryLow0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                ccdyn:DrumLifeAtVeryLow0</ccdyn:DrumLifeAtVeryLow>
                                ccdyn:DeveloperLifeAtVeryLow0</ccdyn:DeveloperLifeAtVeryLow>
                                ccdyn:DeveloperWearLifeAtVeryLow0</ccdyn:DeveloperWearLifeAtVeryLow>
                                ccdyn:PageCountLetterAreaConvertedAtVeryLow0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                </ccdyn:PreviousCartridgeData>
                                </ccdyn:ConsumableInfo>
                                ccdyn:ConsumableInfo
                                dd:Capacity
                                dd:MaxCapacity7</dd:MaxCapacity>
                                dd:Unit100ImpressionsAt5PercentCoverage</dd:Unit>
                                </dd:Capacity>
                                dd:CartridgeModelInformation6601</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0046</dd:CartridgeModelLife>
                                dd:ConsumableFamilyNameYellow toner supply</dd:ConsumableFamilyName>
                                dd:ConsumableLabelCodeY</dd:ConsumableLabelCode>
                                dd:ConsumableLastUsedDate2021-07-03</dd:ConsumableLastUsedDate>
                                dd:ConsumableLifeState
                                dd:ConsumableStateok</dd:ConsumableState>
                                dd:MeasuredQuantityStateok</dd:MeasuredQuantityState>
                                dd:BrandHP</dd:Brand>
                                </dd:ConsumableLifeState>
                                dd:ConsumableLowThreshold10</dd:ConsumableLowThreshold>
                                dd:ConsumablePercentageLevelRemaining60</dd:ConsumablePercentageLevelRemaining>
                                dd:ConsumableReplaceabilityTypeuserReplaceable</dd:ConsumableReplaceabilityType>
                                dd:ConsumableSelectibilityNumber207A</dd:ConsumableSelectibilityNumber>
                                dd:ConsumableStation1</dd:ConsumableStation>
                                dd:ConsumableTypeEnumtoner</dd:ConsumableTypeEnum>
                                dd:Installation
                                dd:Date1976-01-01</dd:Date>
                                </dd:Installation>
                                dd:Manufacturer
                                dd:NameHP</dd:Name>
                                dd:Date2020-09-12</dd:Date>
                                </dd:Manufacturer>
                                dd:ProductNumberW2212A</dd:ProductNumber>
                                dd:SerialNumberxxxxxxxxxxx</dd:SerialNumber>
                                dd:ConsumableManufacturingSignature
                                xxxxxxxxxxx78c48c0f92b3aeca01af66a0258308eccc50ad3af56d588b5e037a9f63ce79cee6ac1f03a913ce2614e0005261637dbe8d714a0f1919314842410f45591656b2d8fecc3480a1be0a3224cfc811bddbc1a36cf7954129203a002e6fd45de72f256279555f50648886fe0a5f5f57046a33c5ddbf89ad03ce8ba0e652a55cf4a8639e518cbe9892293a41a7d6683caa969013b3c66dc57420f765a622fa97c70b6ffa82af56624db922353de534f1e504600c498c6befb340bf0133
                                </dd:ConsumableManufacturingSignature>
                                dd:ConsumableEstimatedPages
                                dd:ValueInt700</dd:ValueInt>
                                dd:PageYieldUnitsISOPages</dd:PageYieldUnits>
                                </dd:ConsumableEstimatedPages>
                                ccdyn:DataCollectionValidfalse</ccdyn:DataCollectionValid>
                                ccdyn:PreviousCartridgeData
                                dd:CartridgeModelInformation0000</dd:CartridgeModelInformation>
                                dd:CartridgeModelLife0000</dd:CartridgeModelLife>
                                dd:ProductNumber/
                                dd:Manufacturer
                                dd:Name/
                                dd:Date1976-01-01</dd:Date>
                                </dd:Manufacturer>
                                dd:SerialNumber0</dd:SerialNumber>
                                ccdyn:MonoColorRegardlessOfSize0</ccdyn:MonoColorRegardlessOfSize>
                                ccdyn:EngineTonerRemaining0</ccdyn:EngineTonerRemaining>
                                ccdyn:DrumLife0</ccdyn:DrumLife>
                                ccdyn:DeveloperLife0</ccdyn:DeveloperLife>
                                ccdyn:DeveloperWearLife0</ccdyn:DeveloperWearLife>
                                ccdyn:EngineTonerRemainingLevelVeryLow0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                ccdyn:DrumLifeAtVeryLow0</ccdyn:DrumLifeAtVeryLow>
                                ccdyn:DeveloperLifeAtVeryLow0</ccdyn:DeveloperLifeAtVeryLow>
                                ccdyn:DeveloperWearLifeAtVeryLow0</ccdyn:DeveloperWearLifeAtVeryLow>
                                ccdyn:PageCountLetterAreaConvertedAtVeryLow0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                </ccdyn:PreviousCartridgeData>
                                </ccdyn:ConsumableInfo>
                                </ccdyn:ConsumableConfigDyn>

                                mickym 1 Reply Last reply Reply Quote 0
                                • mickym
                                  mickym Most Active @jensus11 last edited by mickym

                                  @jensus11 Du bekommst doch die Werte geliefert:

                                  dd:ConsumablePercentageLevelRemaining70</dd:ConsumablePercentageLevelRemaining>

                                  Allerdings ist damit man das hier richtig lesen kann, sollte man sowas in CodeTags packen - damit man das auch richtig lesen kann und ggf. nachvollziehen kann.

                                  <dd:ConsumablePercentageLevelRemaining>70</dd:ConsumablePercentageLevelRemaining>
                                  

                                  So sieht nämlich obige Zeile in Wahrheit aus. Ob Dein XML Parser funktioniert musst halt mal schauen, was in Deiner Variablen json drin steht.

                                  Ich verstehe zwar nicht alles in dem Code von @Christian-4, z. Bsp warum result (das nach meinem Verständnis ja bereits das JavaScript Objekt lt. xml2js enthalten soll) nun in einen JSON String gewandelt wird, um im nächsten Augenblick wieder ein JavaScript Objekt aus dem JSON String zu generieren

                                              xml = JSON.stringify(result);
                                              var json = JSON.parse(xml);
                                  

                                  Grundsätzlich habe ich das aber mal mit NodeRed nachvollzogen und in der Hauptschleife des Javascript Codes von @Christian-4 , der Deine Datenpunkte im iobroker schreibt, iteriert er über folgendes Array:

                                  for (var i in json['ccdyn:ConsumableConfigDyn']['ccdyn:ConsumableInfo']) {
                                           let node = json['ccdyn:ConsumableConfigDyn']['ccdyn:ConsumableInfo'][i];
                                  ...
                                  

                                  4ca51704-de0c-4510-9578-75647039a1b4-image.png

                                  Also musst mal Deine Variable json bzw. in der Variablen node, die die jeweiligen array Elemente enthält, anschauen. Hier sollten dann die Elemente aus dem Screenshot zu sehen sein.

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    jensus11 @mickym last edited by

                                    @mickym das Problem ist das keine json erstellt wird oder zu finden ist oder ich sie nicht finde unter den Objekten(was ich aber nicht glaube).

                                    mickym 1 Reply Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @jensus11 last edited by mickym

                                      @jensus11
                                      Hast Du den Code gelesen, werden denn die Datenpunkte angelegt im iobroker, die mit createState erzeugt wurden?
                                      ==> Ich gehe mal davon aus, da Du nur schreibst das keine Werte angezeigt werden
                                      Du sagst das keine Werte geliefert werden?
                                      ==> Stimmt nicht, denn unter Deiner XML Datei kann man die Werte ja sehen (wie gesagt pack es bitte in Code-Tags)

                                      Ich bedien mich mal hier von @Glasfaser mit der tollen Illustration. 🙂

                                      Code-Tags.gif

                                      Ansonsten musst Du halt zu Debug-Zwecken mal ins Log schreiben.

                                      In der Schleife nach:

                                      let node = json['ccdyn:ConsumableConfigDyn']['ccdyn:ConsumableInfo'][i];
                                      

                                      könntest Du ja mal prüfen, ob das NodeObjekt sauber ausgelesen wird.

                                      also nach der Zeile

                                      let ConsumablePercentageLevelRemaining = node['dd:ConsumablePercentageLevelRemaining'];
                                      

                                      ein

                                      console.log(ConsumablePercentageLevelRemaining);
                                      

                                      Dann natürlich im LOG schauen, ob die Werte dort geschrieben werden.

                                      dann weisst Du

                                      1. die Daten kommen an und werden sauber ausgeslesen
                                      2. ggf. nur ein Problem mit dem Schreiben der Daten aber wo
                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        jensus11 @mickym last edited by jensus11

                                        @mickym
                                        ja den Code habe ich gelesen und die Datenpunkte werden angelegt nur hallt nicht ausgefüllt. Steht halt überall NULL.

                                        This XML file does not appear to have any style information associated with it. The document tree is shown below.
                                        <!--
                                         THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN. 
                                        -->
                                        <ccdyn:ConsumableConfigDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:ccdyn="http://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ dd/DataDictionaryMasterLEDM.xsd http://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19 ConsumableConfigDyn.xsd">
                                        <dd:Version>
                                        <dd:Revision>SVN-IPG-LEDM.1103</dd:Revision>
                                        </dd:Version>
                                        <ccdyn:ProductConsumableInfo>
                                        <dd:NumOfUserReplaceableConsumables>4</dd:NumOfUserReplaceableConsumables>
                                        <dd:NumOfNonUserReplaceableConsumables>0</dd:NumOfNonUserReplaceableConsumables>
                                        <ccdyn:AtVeryLowSettings>
                                        <ccdyn:ConsumableSetting>
                                        <dd:ConsumableLabelCode>K</dd:ConsumableLabelCode>
                                        <dd:ConsumableStateAction>continue</dd:ConsumableStateAction>
                                        </ccdyn:ConsumableSetting>
                                        <ccdyn:ConsumableSetting>
                                        <dd:ConsumableLabelCode>CMY</dd:ConsumableLabelCode>
                                        <dd:ConsumableStateAction>continue</dd:ConsumableStateAction>
                                        </ccdyn:ConsumableSetting>
                                        </ccdyn:AtVeryLowSettings>
                                        <dd:StoreUsageData>disabled</dd:StoreUsageData>
                                        <ccdyn:GenuineHPSuppliesOnly>disabled</ccdyn:GenuineHPSuppliesOnly>
                                        </ccdyn:ProductConsumableInfo>
                                        <ccdyn:ConsumableInfo>
                                        <dd:Capacity>
                                        <dd:MaxCapacity>13</dd:MaxCapacity>
                                        <dd:Unit>100ImpressionsAt5PercentCoverage</dd:Unit>
                                        </dd:Capacity>
                                        <dd:CartridgeModelInformation>6600</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0087</dd:CartridgeModelLife>
                                        <dd:ConsumableFamilyName>Black toner supply</dd:ConsumableFamilyName>
                                        <dd:ConsumableLabelCode>K</dd:ConsumableLabelCode>
                                        <dd:ConsumableLastUsedDate>2021-07-03</dd:ConsumableLastUsedDate>
                                        <dd:ConsumableLifeState>
                                        <dd:ConsumableState>ok</dd:ConsumableState>
                                        <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
                                        <dd:Brand>HP</dd:Brand>
                                        </dd:ConsumableLifeState>
                                        <dd:ConsumableLowThreshold>10</dd:ConsumableLowThreshold>
                                        <dd:ConsumablePercentageLevelRemaining>70</dd:ConsumablePercentageLevelRemaining>
                                        <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
                                        <dd:ConsumableSelectibilityNumber>207A</dd:ConsumableSelectibilityNumber>
                                        <dd:ConsumableStation>0</dd:ConsumableStation>
                                        <dd:ConsumableTypeEnum>toner</dd:ConsumableTypeEnum>
                                        <dd:Installation>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Installation>
                                        <dd:Manufacturer>
                                        <dd:Name>HP</dd:Name>
                                        <dd:Date>2020-09-10</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:ProductNumber>W2210A</dd:ProductNumber>
                                        <dd:SerialNumber>xxxxxxxxx</dd:SerialNumber>
                                        <dd:ConsumableManufacturingSignature>
                                        xxxxxxxdced8fe40921648037091df898be8592631e0cc685fa5ca01fb1390d50ee82105c127837acadd887c3b18bd8a14099dc991d668c43400bd3d2effaca896f6d0bf41dbe24d78afbe15ef5054f9d96d7180fa6792fbff830d0bcd785c89a821c8fe7e00a2cad4975a48c1fa7f51041ec34e874cf8097a4780127507c626b2f90fdd1284893c1b12b2409918ee266b8d067d49444cdabdac3a2d61b0f6d3c43cae7035567f99513063e69e0529673fca1df088722f2cdd64
                                        </dd:ConsumableManufacturingSignature>
                                        <dd:ConsumableEstimatedPages>
                                        <dd:ValueInt>1350</dd:ValueInt>
                                        <dd:PageYieldUnits>ISOPages</dd:PageYieldUnits>
                                        </dd:ConsumableEstimatedPages>
                                        <ccdyn:DataCollectionValid>false</ccdyn:DataCollectionValid>
                                        <ccdyn:PreviousCartridgeData>
                                        <dd:CartridgeModelInformation>0000</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0000</dd:CartridgeModelLife>
                                        <dd:ProductNumber/>
                                        <dd:Manufacturer>
                                        <dd:Name/>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:SerialNumber>0</dd:SerialNumber>
                                        <ccdyn:MonoColorRegardlessOfSize>0</ccdyn:MonoColorRegardlessOfSize>
                                        <ccdyn:EngineTonerRemaining>0</ccdyn:EngineTonerRemaining>
                                        <ccdyn:DrumLife>0</ccdyn:DrumLife>
                                        <ccdyn:DeveloperLife>0</ccdyn:DeveloperLife>
                                        <ccdyn:DeveloperWearLife>0</ccdyn:DeveloperWearLife>
                                        <ccdyn:EngineTonerRemainingLevelVeryLow>0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                        <ccdyn:DrumLifeAtVeryLow>0</ccdyn:DrumLifeAtVeryLow>
                                        <ccdyn:DeveloperLifeAtVeryLow>0</ccdyn:DeveloperLifeAtVeryLow>
                                        <ccdyn:DeveloperWearLifeAtVeryLow>0</ccdyn:DeveloperWearLifeAtVeryLow>
                                        <ccdyn:PageCountLetterAreaConvertedAtVeryLow>0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                        </ccdyn:PreviousCartridgeData>
                                        </ccdyn:ConsumableInfo>
                                        <ccdyn:ConsumableInfo>
                                        <dd:Capacity>
                                        <dd:MaxCapacity>7</dd:MaxCapacity>
                                        <dd:Unit>100ImpressionsAt5PercentCoverage</dd:Unit>
                                        </dd:Capacity>
                                        <dd:CartridgeModelInformation>6603</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0046</dd:CartridgeModelLife>
                                        <dd:ConsumableFamilyName>Cyan toner supply</dd:ConsumableFamilyName>
                                        <dd:ConsumableLabelCode>C</dd:ConsumableLabelCode>
                                        <dd:ConsumableLastUsedDate>2021-07-03</dd:ConsumableLastUsedDate>
                                        <dd:ConsumableLifeState>
                                        <dd:ConsumableState>ok</dd:ConsumableState>
                                        <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
                                        <dd:Brand>HP</dd:Brand>
                                        </dd:ConsumableLifeState>
                                        <dd:ConsumableLowThreshold>10</dd:ConsumableLowThreshold>
                                        <dd:ConsumablePercentageLevelRemaining>70</dd:ConsumablePercentageLevelRemaining>
                                        <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
                                        <dd:ConsumableSelectibilityNumber>207A</dd:ConsumableSelectibilityNumber>
                                        <dd:ConsumableStation>3</dd:ConsumableStation>
                                        <dd:ConsumableTypeEnum>toner</dd:ConsumableTypeEnum>
                                        <dd:Installation>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Installation>
                                        <dd:Manufacturer>
                                        <dd:Name>HP</dd:Name>
                                        <dd:Date>2020-09-14</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:ProductNumber>W2211A</dd:ProductNumber>
                                        <dd:SerialNumber>xxxxxxxxx</dd:SerialNumber>
                                        <dd:ConsumableManufacturingSignature>
                                        xxxxxxxxxbc2994cbe32689d404d448ef561500d3bd46c62f3d7ce273918abcbc8d56abff56ad514b00ab9ed4b0e938b23e400505f2556c9960eeabc77f4c1c325b4ffc5c1161ca78ac6783957c628b5482a78bdede1f3c58559d952d908430099b078097cc0d6f9e832a400a1295cec7c233bf7d6cac5bde1cbe0d6fe5be010f05756e6852b736f2b12eafba3c0f23cad5ce1a04d784f89801ba5bcd74add3b602ef370250b8cffe3db34feb1e81ec9fd75f997d72d88e7355aed665a7ee
                                        </dd:ConsumableManufacturingSignature>
                                        <dd:ConsumableEstimatedPages>
                                        <dd:ValueInt>700</dd:ValueInt>
                                        <dd:PageYieldUnits>ISOPages</dd:PageYieldUnits>
                                        </dd:ConsumableEstimatedPages>
                                        <ccdyn:DataCollectionValid>false</ccdyn:DataCollectionValid>
                                        <ccdyn:PreviousCartridgeData>
                                        <dd:CartridgeModelInformation>0000</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0000</dd:CartridgeModelLife>
                                        <dd:ProductNumber/>
                                        <dd:Manufacturer>
                                        <dd:Name/>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:SerialNumber>0</dd:SerialNumber>
                                        <ccdyn:MonoColorRegardlessOfSize>0</ccdyn:MonoColorRegardlessOfSize>
                                        <ccdyn:EngineTonerRemaining>0</ccdyn:EngineTonerRemaining>
                                        <ccdyn:DrumLife>0</ccdyn:DrumLife>
                                        <ccdyn:DeveloperLife>0</ccdyn:DeveloperLife>
                                        <ccdyn:DeveloperWearLife>0</ccdyn:DeveloperWearLife>
                                        <ccdyn:EngineTonerRemainingLevelVeryLow>0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                        <ccdyn:DrumLifeAtVeryLow>0</ccdyn:DrumLifeAtVeryLow>
                                        <ccdyn:DeveloperLifeAtVeryLow>0</ccdyn:DeveloperLifeAtVeryLow>
                                        <ccdyn:DeveloperWearLifeAtVeryLow>0</ccdyn:DeveloperWearLifeAtVeryLow>
                                        <ccdyn:PageCountLetterAreaConvertedAtVeryLow>0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                        </ccdyn:PreviousCartridgeData>
                                        </ccdyn:ConsumableInfo>
                                        <ccdyn:ConsumableInfo>
                                        <dd:Capacity>
                                        <dd:MaxCapacity>7</dd:MaxCapacity>
                                        <dd:Unit>100ImpressionsAt5PercentCoverage</dd:Unit>
                                        </dd:Capacity>
                                        <dd:CartridgeModelInformation>6602</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0046</dd:CartridgeModelLife>
                                        <dd:ConsumableFamilyName>Magenta toner supply</dd:ConsumableFamilyName>
                                        <dd:ConsumableLabelCode>M</dd:ConsumableLabelCode>
                                        <dd:ConsumableLastUsedDate>2021-07-03</dd:ConsumableLastUsedDate>
                                        <dd:ConsumableLifeState>
                                        <dd:ConsumableState>ok</dd:ConsumableState>
                                        <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
                                        <dd:Brand>HP</dd:Brand>
                                        </dd:ConsumableLifeState>
                                        <dd:ConsumableLowThreshold>10</dd:ConsumableLowThreshold>
                                        <dd:ConsumablePercentageLevelRemaining>70</dd:ConsumablePercentageLevelRemaining>
                                        <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
                                        <dd:ConsumableSelectibilityNumber>207A</dd:ConsumableSelectibilityNumber>
                                        <dd:ConsumableStation>2</dd:ConsumableStation>
                                        <dd:ConsumableTypeEnum>toner</dd:ConsumableTypeEnum>
                                        <dd:Installation>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Installation>
                                        <dd:Manufacturer>
                                        <dd:Name>HP</dd:Name>
                                        <dd:Date>2020-09-13</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:ProductNumber>W2213A</dd:ProductNumber>
                                        <dd:SerialNumber>xxxxxxxxx</dd:SerialNumber>
                                        <dd:ConsumableManufacturingSignature>
                                        xxxxxxxxxcc51a6eb16aa8a4446107dbc62a7c835c273d4fea88c8c4d2f926fe7973e5fa0917d4481856296c4bcf753cb20b3aa839664dbddb824f37e6ad051c5c6e71dbc86411b53f0f5040c0fc30259230323969a3133452ffd2ba38afd29d1f7949a6160e2f8eaa998235a6f95084feebede2dd98af10d4b9d95168b545c4172bcc57e2b77d634395d52fec261254130911227e36ad6d4322301176d588f330fb612ecca88d852f5e291eede135162e76df70e14c69648c0b2c6331e45
                                        </dd:ConsumableManufacturingSignature>
                                        <dd:ConsumableEstimatedPages>
                                        <dd:ValueInt>700</dd:ValueInt>
                                        <dd:PageYieldUnits>ISOPages</dd:PageYieldUnits>
                                        </dd:ConsumableEstimatedPages>
                                        <ccdyn:DataCollectionValid>false</ccdyn:DataCollectionValid>
                                        <ccdyn:PreviousCartridgeData>
                                        <dd:CartridgeModelInformation>0000</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0000</dd:CartridgeModelLife>
                                        <dd:ProductNumber/>
                                        <dd:Manufacturer>
                                        <dd:Name/>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:SerialNumber>0</dd:SerialNumber>
                                        <ccdyn:MonoColorRegardlessOfSize>0</ccdyn:MonoColorRegardlessOfSize>
                                        <ccdyn:EngineTonerRemaining>0</ccdyn:EngineTonerRemaining>
                                        <ccdyn:DrumLife>0</ccdyn:DrumLife>
                                        <ccdyn:DeveloperLife>0</ccdyn:DeveloperLife>
                                        <ccdyn:DeveloperWearLife>0</ccdyn:DeveloperWearLife>
                                        <ccdyn:EngineTonerRemainingLevelVeryLow>0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                        <ccdyn:DrumLifeAtVeryLow>0</ccdyn:DrumLifeAtVeryLow>
                                        <ccdyn:DeveloperLifeAtVeryLow>0</ccdyn:DeveloperLifeAtVeryLow>
                                        <ccdyn:DeveloperWearLifeAtVeryLow>0</ccdyn:DeveloperWearLifeAtVeryLow>
                                        <ccdyn:PageCountLetterAreaConvertedAtVeryLow>0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                        </ccdyn:PreviousCartridgeData>
                                        </ccdyn:ConsumableInfo>
                                        <ccdyn:ConsumableInfo>
                                        <dd:Capacity>
                                        <dd:MaxCapacity>7</dd:MaxCapacity>
                                        <dd:Unit>100ImpressionsAt5PercentCoverage</dd:Unit>
                                        </dd:Capacity>
                                        <dd:CartridgeModelInformation>6601</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0046</dd:CartridgeModelLife>
                                        <dd:ConsumableFamilyName>Yellow toner supply</dd:ConsumableFamilyName>
                                        <dd:ConsumableLabelCode>Y</dd:ConsumableLabelCode>
                                        <dd:ConsumableLastUsedDate>2021-07-03</dd:ConsumableLastUsedDate>
                                        <dd:ConsumableLifeState>
                                        <dd:ConsumableState>ok</dd:ConsumableState>
                                        <dd:MeasuredQuantityState>ok</dd:MeasuredQuantityState>
                                        <dd:Brand>HP</dd:Brand>
                                        </dd:ConsumableLifeState>
                                        <dd:ConsumableLowThreshold>10</dd:ConsumableLowThreshold>
                                        <dd:ConsumablePercentageLevelRemaining>60</dd:ConsumablePercentageLevelRemaining>
                                        <dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>
                                        <dd:ConsumableSelectibilityNumber>207A</dd:ConsumableSelectibilityNumber>
                                        <dd:ConsumableStation>1</dd:ConsumableStation>
                                        <dd:ConsumableTypeEnum>toner</dd:ConsumableTypeEnum>
                                        <dd:Installation>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Installation>
                                        <dd:Manufacturer>
                                        <dd:Name>HP</dd:Name>
                                        <dd:Date>2020-09-12</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:ProductNumber>W2212A</dd:ProductNumber>
                                        <dd:SerialNumber>xxxxxxxxx</dd:SerialNumber>
                                        <dd:ConsumableManufacturingSignature>
                                        xxxxxxxxx4878c48c0f92b3aeca01af66a0258308eccc50ad3af56d588b5e037a9f63ce79cee6ac1f03a913ce2614e0005261637dbe8d714a0f1919314842410f45591656b2d8fecc3480a1be0a3224cfc811bddbc1a36cf7954129203a002e6fd45de72f256279555f50648886fe0a5f5f57046a33c5ddbf89ad03ce8ba0e652a55cf4a8639e518cbe9892293a41a7d6683caa969013b3c66dc57420f765a622fa97c70b6ffa82af56624db922353de534f1e504600c498c6befb340bf0133
                                        </dd:ConsumableManufacturingSignature>
                                        <dd:ConsumableEstimatedPages>
                                        <dd:ValueInt>700</dd:ValueInt>
                                        <dd:PageYieldUnits>ISOPages</dd:PageYieldUnits>
                                        </dd:ConsumableEstimatedPages>
                                        <ccdyn:DataCollectionValid>false</ccdyn:DataCollectionValid>
                                        <ccdyn:PreviousCartridgeData>
                                        <dd:CartridgeModelInformation>0000</dd:CartridgeModelInformation>
                                        <dd:CartridgeModelLife>0000</dd:CartridgeModelLife>
                                        <dd:ProductNumber/>
                                        <dd:Manufacturer>
                                        <dd:Name/>
                                        <dd:Date>1976-01-01</dd:Date>
                                        </dd:Manufacturer>
                                        <dd:SerialNumber>0</dd:SerialNumber>
                                        <ccdyn:MonoColorRegardlessOfSize>0</ccdyn:MonoColorRegardlessOfSize>
                                        <ccdyn:EngineTonerRemaining>0</ccdyn:EngineTonerRemaining>
                                        <ccdyn:DrumLife>0</ccdyn:DrumLife>
                                        <ccdyn:DeveloperLife>0</ccdyn:DeveloperLife>
                                        <ccdyn:DeveloperWearLife>0</ccdyn:DeveloperWearLife>
                                        <ccdyn:EngineTonerRemainingLevelVeryLow>0</ccdyn:EngineTonerRemainingLevelVeryLow>
                                        <ccdyn:DrumLifeAtVeryLow>0</ccdyn:DrumLifeAtVeryLow>
                                        <ccdyn:DeveloperLifeAtVeryLow>0</ccdyn:DeveloperLifeAtVeryLow>
                                        <ccdyn:DeveloperWearLifeAtVeryLow>0</ccdyn:DeveloperWearLifeAtVeryLow>
                                        <ccdyn:PageCountLetterAreaConvertedAtVeryLow>0</ccdyn:PageCountLetterAreaConvertedAtVeryLow>
                                        </ccdyn:PreviousCartridgeData>
                                        </ccdyn:ConsumableInfo>
                                        </ccdyn:ConsumableConfigDyn>
                                        
                                        mickym 1 Reply Last reply Reply Quote 0
                                        • J
                                          jensus11 last edited by

                                          Bildschirmfoto 2021-07-04 um 12.46.10.png

                                          1 Reply Last reply Reply Quote 0
                                          • mickym
                                            mickym Most Active @jensus11 last edited by mickym

                                            @jensus11 sagte in [Vorlage] HP Drucker Füllstände (Javascript).:

                                            This XML file does not appear to have any style information associated with it. The document tree is shown below.

                                            Ich habe Deine Datei gerade mal mit NodeRed und dem XML Parser bearbeitet sieht die Struktur gut aus:

                                            a19246f3-d688-4279-9953-e73f1a6fab6e-image.png

                                            Wie gesagt - mach mal den console.log Befehl in das Script um zu sehen, ob die Variable ausgelesen wird.

                                            Ich gehe mal davon aus, dass Du die XML Datei aus dem Browser rauskopiert hast.

                                            Hast Du denn überhaupt mal geprüft, ob Dein request im script funktioniert?
                                            Denke mal die URL wirst Du angepasst haben. 😉

                                            Mach doch mal hinter:

                                            request(url, function (error, response, body) {
                                            

                                            in die nächste Zeile ein

                                            console.log('error: ' + error + '; response: ' + response);
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            592
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            52
                                            3827
                                            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