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

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [Vorlage] Script und VIS: Druckerpatronen Zustand

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

[Vorlage] Script und VIS: Druckerpatronen Zustand

Scheduled Pinned Locked Moved Skripten / Logik
176 Posts 43 Posters 99.3k Views 16 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OreiderO Offline
    OreiderO Offline
    Oreider
    wrote on last edited by
    #6

    @pix:

    Hallo zusammen,

    basierend auf http://homematic-forum.de/forum/viewtopic.php?f=31&t=25140&sid=9a6e4d0ca973e1f15ffcad6c8cb5574b#p217357 im Homematic Forum und der Idee von Idittmar habe ich das mal für ioBroker umgesetzt.

    Ich nutze einen Epson Stylus PX830 mit 6 Tinten. Der Drucker ist natürlich im Netz erreichbar. Tintentyp wird mit gespeichert. So kann man im Laden schnell seinen Tintenstand zu Hause checken und die richtige Tinte kaufen.

    Hier das JavaSkript (startet alle 20min):

    filename="Bildschirmfoto 2015-06-23 um 17.38.48.jpg" index="1">~~

    Fertige View "Drucker":
    filename="Bildschirmfoto 2015-06-23 um 17.40.02.png" index="0">~~

    Vielleicht kann es jemand brauchen.

    Dank an die Erfinder Idittmar und MistyReblaus aus dem Homematic-Forum.

    Gruß,

    Pix `

    Hallo Pix,

    finde die Anzeige der Tintenstände von dir super.

    In der Homematic werden die Werte bei mir schon angezeigt. Nur wie genau realisiere ich das in VIS. Ein Widget importieren ist klar… Nur was hat es mit dem Java Skript auf sich? Was muss ich wie damit machen?

    Danke schon mal für die Unterstützung!

    Gruß

    Tom

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

      Hallo Tom,

      du musst den Javascript Adapter installieren, aktivieren und im Reiter Scripte im ioBroker-Admin ein neues Skript anlegen (+ klicken). Dort das Skript einfügen, anpassen (IP) und speichern. Nach einem Reload des VIS-Editors sollten die Datenpunkte zur Verfügung stehen.

      Gruß

      Pix

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

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jensus11
        wrote on last edited by
        #8

        Hallo,

        ich habe eine HP 8500 A910, den kann ich über Web erreichen und mir die Füllstände anzeigen lassen.

        Heute habe ich das Script eingefügt und für mich angepasst (IP Name usw.), die Datenpunkte sind erstellt worden.

        Doch leider werden keine Füllstände oder Werte übernommen, da steht überall false bis auf das Script, bei dem steht true.

        Wodran könnte das liegen?

        Gruss

        1 Reply Last reply
        0
        • L Online
          L Online
          looxer01
          wrote on last edited by
          #9

          Hi,

          hast du das HP-angepasste Script verwendet ? Wenn ja, dann poste doch mal die xml - Datei.

          Ich kann dann mal abgleichen mit meinem HP Drucker und schauen ob die Struktur bei dir anders ist.

          vG Looxer

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jensus11
            wrote on last edited by
            #10

            Hallo,

            ich hoffe das ist das was du brauchst.

            Das angepasste Hp Script habe ich verwendet.

            ! dd:versiondd:revisionSVN.3033</dd:revision></dd:version>
            ! ccdyn:productconsumableinfodd:numofuserreplaceableconsumables6</dd:numofuserreplaceableconsumables>
            ! dd:numofnonuserreplaceableconsumables0</dd:numofnonuserreplaceableconsumables>
            ! dd:consumablelowthreshold20</dd:consumablelowthreshold>
            ! dd:alignmentmodeautomatic</dd:alignmentmode>
            ! ccdyn:cartridgechipinfoenabled</ccdyn:cartridgechipinfo>
            ! ccdyn:supportedconsumablesccdyn:supportedconsumabledd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:consumablelabelcodeC</dd:consumablelabelcode>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypehighVolume</dd:consumableusagetype></ccdyn:supportedconsumableinfo>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypeeveryday</dd:consumableusagetype></ccdyn:supportedconsumableinfo></ccdyn:supportedconsumable>
            ! ccdyn:supportedconsumabledd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:consumablelabelcodeM</dd:consumablelabelcode>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypehighVolume</dd:consumableusagetype></ccdyn:supportedconsumableinfo>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypeeveryday</dd:consumableusagetype></ccdyn:supportedconsumableinfo></ccdyn:supportedconsumable>
            ! ccdyn:supportedconsumabledd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:consumablelabelcodeY</dd:consumablelabelcode>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypehighVolume</dd:consumableusagetype></ccdyn:supportedconsumableinfo>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypeeveryday</dd:consumableusagetype></ccdyn:supportedconsumableinfo></ccdyn:supportedconsumable>
            ! ccdyn:supportedconsumabledd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:consumablelabelcodeK</dd:consumablelabelcode>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypehighVolume</dd:consumableusagetype></ccdyn:supportedconsumableinfo>
            ! ccdyn:supportedconsumableinfodd:consumableselectibilitynumber940</dd:consumableselectibilitynumber>
            ! dd:consumableusagetypeeveryday</dd:consumableusagetype></ccdyn:supportedconsumableinfo></ccdyn:supportedconsumable></ccdyn:supportedconsumables>
            ! dd:consumableslotdirectionleftToRight</dd:consumableslotdirection>
            ! dd:ik573</dd:ik>
            ! ccdyn:singlecartridgemodedisabled</ccdyn:singlecartridgemode></ccdyn:productconsumableinfo>
            ! ccdyn:consumableinfodd:consumablecontenttypemarkingAgent</dd:consumablecontenttype>
            ! dd:consumablefamilynameGODZILLA</dd:consumablefamilyname>
            ! dd:consumablelabelcodeKY</dd:consumablelabelcode>
            ! dd:consumablelifestatedd:consumablestateok</dd:consumablestate>
            ! dd:brandHP</dd:brand>
            ! dd:consumablestateactionnone</dd:consumablestateaction></dd:consumablelifestate>
            ! dd:consumablereplaceabilitytypeuserReplaceable</dd:consumablereplaceabilitytype>
            ! dd:consumablestation4</dd:consumablestation>
            ! dd:consumabletypeenumprinthead</dd:consumabletypeenum>
            ! dd:expirationdate2012-10-07</dd:expirationdate>
            ! dd:productnumberHP 940 (C4900A)</dd:productnumber>
            ! dd:serialnumberXXXXXXX</dd:serialnumber></ccdyn:consumableinfo>
            ! ccdyn:consumableinfodd:consumablecontenttypemarkingAgent</dd:consumablecontenttype>
            ! dd:consumablefamilynameGODZILLA</dd:consumablefamilyname>
            ! dd:consumablelabelcodeMC</dd:consumablelabelcode>
            ! dd:consumablelifestatedd:consumablestateok</dd:consumablestate>
            ! dd:brandHP</dd:brand>
            ! dd:consumablestateactionnone</dd:consumablestateaction></dd:consumablelifestate>
            ! dd:consumablereplaceabilitytypeuserReplaceable</dd:consumablereplaceabilitytype>
            ! dd:consumablestation5</dd:consumablestation>
            ! dd:consumabletypeenumprinthead</dd:consumabletypeenum>
            ! dd:expirationdate2012-10-21</dd:expirationdate>
            ! dd:productnumberHP 940 (C4901A)</dd:productnumber>
            ! dd:serialnumberXXXXXXX</dd:serialnumber></ccdyn:consumableinfo>
            ! ccdyn:consumableinfodd:capacitydd:maxcapacity200</dd:maxcapacity>
            ! dd:unittenthsOfMilliliters</dd:unit></dd:capacity>
            ! dd:consumableacceptibilitysubbrandofficejet</dd:consumableacceptibilitysubbrand>
            ! dd:consumableacceptibilitysegmentclassallDevices</dd:consumableacceptibilitysegmentclass>
            ! dd:consumableacceptibilityupgradabilitynotSupported</dd:consumableacceptibilityupgradability>
            ! dd:consumablecontenttypemarkingAgent</dd:consumablecontenttype>
            ! dd:consumablefamilynameGEKKO</dd:consumablefamilyname>
            ! dd:consumablekeyingdescriptormedium</dd:consumablekeyingdescriptor>
            ! dd:consumablelabelcodeC</dd:consumablelabelcode>
            ! dd:consumablelifestatedd:consumablestatenewGenuineHP</dd:consumablestate>
            ! dd:measuredquantitystateok</dd:measuredquantitystate>
            ! dd:brandHP</dd:brand>
            ! dd:consumablestateactionacknowledge</dd:consumablestateaction></dd:consumablelifestate>
            ! dd:consumablelevelmessagingstyledropCount</dd:consumablelevelmessagingstyle>
            ! dd:consumablelowusealgorithmstandard</dd:consumablelowusealgorithm>
            ! dd:consumablepercentagelevelremaining90</dd:consumablepercentagelevelremaining>
            ! dd:consumablereplaceabilitytypeuserReplaceable</dd:consumablereplaceabilitytype>
            ! dd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumablestation0</dd:consumablestation>
            ! dd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:expirationdate2018-06-11</dd:expirationdate>
            ! dd:installationdd:date2015-04-26</dd:date></dd:installation>
            ! dd:productnumberC4907A</dd:productnumber>
            ! dd:serialnumber-XXXXXXXXX</dd:serialnumber>
            ! dd:regionalcartridgedd:regionidentifier0</dd:regionidentifier></dd:regionalcartridge>
            ! dd:consumablemodelid5</dd:consumablemodelid>
            ! dd:consumablefamilyid21</dd:consumablefamilyid>
            ! dd:consumabletypeid0</dd:consumabletypeid>
            ! dd:consumableicondd:shapeCircle</dd:shape>
            ! dd:rotationrotateZero</dd:rotation>
            ! dd:fillcolordd:red0</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue255</dd:blue></dd:fillcolor>
            ! dd:outlinecolordd:red0</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue255</dd:blue></dd:outlinecolor>
            ! dd:backgroundcolordd:red0</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue0</dd:blue></dd:backgroundcolor>
            ! dd:rgbtextcolordd:red255</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue255</dd:blue></dd:rgbtextcolor>
            ! dd:labelC</dd:label></dd:consumableicon></ccdyn:consumableinfo>
            ! ccdyn:consumableinfodd:capacitydd:maxcapacity200</dd:maxcapacity>
            ! dd:unittenthsOfMilliliters</dd:unit></dd:capacity>
            ! dd:consumableacceptibilitysubbrandofficejet</dd:consumableacceptibilitysubbrand>
            ! dd:consumableacceptibilitysegmentclassallDevices</dd:consumableacceptibilitysegmentclass>
            ! dd:consumableacceptibilityupgradabilitynotSupported</dd:consumableacceptibilityupgradability>
            ! dd:consumablecontenttypemarkingAgent</dd:consumablecontenttype>
            ! dd:consumablefamilynameGEKKO</dd:consumablefamilyname>
            ! dd:consumablekeyingdescriptormedium</dd:consumablekeyingdescriptor>
            ! dd:consumablelabelcodeM</dd:consumablelabelcode>
            ! dd:consumablelifestatedd:consumablestatenewGenuineHP</dd:consumablestate>
            ! dd:measuredquantitystateok</dd:measuredquantitystate>
            ! dd:brandHP</dd:brand>
            ! dd:consumablestateactionacknowledge</dd:consumablestateaction></dd:consumablelifestate>
            ! dd:consumablelevelmessagingstyledropCount</dd:consumablelevelmessagingstyle>
            ! dd:consumablelowusealgorithmstandard</dd:consumablelowusealgorithm>
            ! dd:consumablepercentagelevelremaining90</dd:consumablepercentagelevelremaining>
            ! dd:consumablereplaceabilitytypeuserReplaceable</dd:consumablereplaceabilitytype>
            ! dd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumablestation1</dd:consumablestation>
            ! dd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:expirationdate2018-05-07</dd:expirationdate>
            ! dd:installationdd:date2015-03-22</dd:date></dd:installation>
            ! dd:productnumberC4908A</dd:productnumber>
            ! dd:serialnumber-XXXXXXXXXX</dd:serialnumber>
            ! dd:regionalcartridgedd:regionidentifier0</dd:regionidentifier></dd:regionalcartridge>
            ! dd:consumablemodelid5</dd:consumablemodelid>
            ! dd:consumablefamilyid21</dd:consumablefamilyid>
            ! dd:consumabletypeid0</dd:consumabletypeid>
            ! dd:consumableicondd:shapeCircle</dd:shape>
            ! dd:rotationrotateZero</dd:rotation>
            ! dd:fillcolordd:red255</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue255</dd:blue></dd:fillcolor>
            ! dd:outlinecolordd:red255</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue255</dd:blue></dd:outlinecolor>
            ! dd:backgroundcolordd:red0</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue0</dd:blue></dd:backgroundcolor>
            ! dd:rgbtextcolordd:red255</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue255</dd:blue></dd:rgbtextcolor>
            ! dd:labelM</dd:label></dd:consumableicon></ccdyn:consumableinfo>
            ! ccdyn:consumableinfodd:capacitydd:maxcapacity220</dd:maxcapacity>
            ! dd:unittenthsOfMilliliters</dd:unit></dd:capacity>
            ! dd:consumableacceptibilitysubbrandofficejet</dd:consumableacceptibilitysubbrand>
            ! dd:consumableacceptibilitysegmentclassallDevices</dd:consumableacceptibilitysegmentclass>
            ! dd:consumableacceptibilityupgradabilitynotSupported</dd:consumableacceptibilityupgradability>
            ! dd:consumablecontenttypemarkingAgent</dd:consumablecontenttype>
            ! dd:consumablefamilynameGEKKO</dd:consumablefamilyname>
            ! dd:consumablekeyingdescriptormedium</dd:consumablekeyingdescriptor>
            ! dd:consumablelabelcodeY</dd:consumablelabelcode>
            ! dd:consumablelifestatedd:consumablestatelow</dd:consumablestate>
            ! dd:measuredquantitystatelow</dd:measuredquantitystate>
            ! dd:brandHP</dd:brand>
            ! dd:consumablestateactioncontinue</dd:consumablestateaction></dd:consumablelifestate>
            ! dd:consumablelevelmessagingstyledropCount</dd:consumablelevelmessagingstyle>
            ! dd:consumablelowusealgorithmstandard</dd:consumablelowusealgorithm>
            ! dd:consumablepercentagelevelremaining10</dd:consumablepercentagelevelremaining>
            ! dd:consumablereplaceabilitytypeuserReplaceable</dd:consumablereplaceabilitytype>
            ! dd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumablestation2</dd:consumablestation>
            ! dd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:expirationdate2017-04-16</dd:expirationdate>
            ! dd:installationdd:date2014-03-02</dd:date></dd:installation>
            ! dd:productnumberC4909A</dd:productnumber>
            ! dd:serialnumberXXXXXXXXX</dd:serialnumber>
            ! dd:regionalcartridgedd:regionidentifier0</dd:regionidentifier></dd:regionalcartridge>
            ! dd:consumablemodelid5</dd:consumablemodelid>
            ! dd:consumablefamilyid21</dd:consumablefamilyid>
            ! dd:consumabletypeid0</dd:consumabletypeid>
            ! dd:consumableicondd:shapeCircle</dd:shape>
            ! dd:rotationrotateZero</dd:rotation>
            ! dd:fillcolordd:red255</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue0</dd:blue></dd:fillcolor>
            ! dd:outlinecolordd:red255</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue0</dd:blue></dd:outlinecolor>
            ! dd:backgroundcolordd:red0</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue0</dd:blue></dd:backgroundcolor>
            ! dd:rgbtextcolordd:red0</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue0</dd:blue></dd:rgbtextcolor>
            ! dd:labelY</dd:label></dd:consumableicon></ccdyn:consumableinfo>
            ! ccdyn:consumableinfodd:capacitydd:maxcapacity607</dd:maxcapacity>
            ! dd:unittenthsOfMilliliters</dd:unit></dd:capacity>
            ! dd:consumableacceptibilitysubbrandofficejet</dd:consumableacceptibilitysubbrand>
            ! dd:consumableacceptibilitysegmentclassallDevices</dd:consumableacceptibilitysegmentclass>
            ! dd:consumableacceptibilityupgradabilitynotSupported</dd:consumableacceptibilityupgradability>
            ! dd:consumablecontenttypemarkingAgent</dd:consumablecontenttype>
            ! dd:consumablefamilynameGEKKO</dd:consumablefamilyname>
            ! dd:consumablekeyingdescriptormedium</dd:consumablekeyingdescriptor>
            ! dd:consumablelabelcodeK</dd:consumablelabelcode>
            ! dd:consumablelifestatedd:consumablestatenewGenuineHP</dd:consumablestate>
            ! dd:measuredquantitystateok</dd:measuredquantitystate>
            ! dd:brandHP</dd:brand>
            ! dd:consumablestateactionacknowledge</dd:consumablestateaction></dd:consumablelifestate>
            ! dd:consumablelevelmessagingstyledropCount</dd:consumablelevelmessagingstyle>
            ! dd:consumablelowusealgorithmstandard</dd:consumablelowusealgorithm>
            ! dd:consumablepercentagelevelremaining50</dd:consumablepercentagelevelremaining>
            ! dd:consumablereplaceabilitytypeuserReplaceable</dd:consumablereplaceabilitytype>
            ! dd:consumableselectibilitynumber940XL</dd:consumableselectibilitynumber>
            ! dd:consumablestation3</dd:consumablestation>
            ! dd:consumabletypeenumink</dd:consumabletypeenum>
            ! dd:expirationdate2017-04-16</dd:expirationdate>
            ! dd:installationdd:date2014-03-02</dd:date></dd:installation>
            ! dd:productnumberC4906A</dd:productnumber>
            ! dd:serialnumberXXXXXXXXXXX</dd:serialnumber>
            ! dd:regionalcartridgedd:regionidentifier0</dd:regionidentifier></dd:regionalcartridge>
            ! dd:consumablemodelid5</dd:consumablemodelid>
            ! dd:consumablefamilyid21</dd:consumablefamilyid>
            ! dd:consumabletypeid0</dd:consumabletypeid>
            ! dd:consumableicondd:shapeCircle</dd:shape>
            ! dd:rotationrotateZero</dd:rotation>
            ! dd:fillcolordd:red0</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue0</dd:blue></dd:fillcolor>
            ! dd:outlinecolordd:red0</dd:red>
            ! dd:green0</dd:green>
            ! dd:blue0</dd:blue></dd:outlinecolor>
            ! dd:backgroundcolordd:red255</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue255</dd:blue></dd:backgroundcolor>
            ! dd:rgbtextcolordd:red255</dd:red>
            ! dd:green255</dd:green>
            ! dd:blue255</dd:blue></dd:rgbtextcolor>
            ! dd:labelK</dd:label></dd:consumableicon></ccdyn:consumableinfo>

            1 Reply Last reply
            0
            • L Online
              L Online
              looxer01
              wrote on last edited by
              #11

              Hi,

              hab mir mal das File angesehen. Sieht auf dem ersten Blick mal gut aus.

              Was gemacht wird ist ja auch recht einfach

              1. suche nach dem ersten string (dd:ConsumableLabelCode) .

              2, Merke den Farbcode (der erste bei dir ist es = C = Cyan)

              3. Suche den nächsten String (dd:ConsumablePercentageLevelRemaining)

              4. da steht 90 - d.h. du hast einen 90% Fuellstand für Cyan - Glückwunsch :lol:

              5. Merke den Füllstand und mache weiter mit den verbleibenden Farbcodes für M Y und K

              Mit anderen Worten: das file sieht gut aus.

              also ist was mit der Konfig nicht in Ordnung.

              Überprüfe nochmal

              • die Create States.

              • die IP-Adresse (nimm die URL aus dem script und kopiere sie dann in die Adresszeile des browsers)

              • ganz unten im File die SetStates, die identisch sein müssen mit den Create States.

              vG Looxer

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jensus11
                wrote on last edited by
                #12

                Hier mal meine Script.

                ist das ok so?

                ! // bringt den Druckertintenstand von WEB enabled HP Tintenstrahler in ioBroker
                ! // Basierend auf CCU2 Script fuer HP Drucker http://homematic-forum.de/forum/viewtop … 31&t=25140
                ! // und dem angepassten Script von PiX aus iobroker http://forum.iobroker.de/viewtopic.php? ... c289#p6931
                ! // Author : looxer01 - 22.12.2015
                ! // hier Drucker parameter einstellen - vor dem ersten Speichern des Scripts
                ! var druckerIP = '192.168.XXXX‘;
                ! var druckerURL = "http://192.168.XXXX/DevMgmt/ConsumableConfigDyn.xml";
                ! var druckermod = "8500";
                ! var TinteID = "940XL";
                ! var request = require('request');
                ! var cut1 = "dd:ConsumableLabelCode";
                ! var cut2 = "dd:ConsumablePercentageLevelRemaining";
                ! var level_M = 0;
                ! var level_C = 0;
                ! var level_Y = 0;
                ! var level_K = 0;
                ! // angepasst an HP 8900 - hier bitte entsprechend anpassen auf den jeweiligen Typ
                ! createState('Drucker.HP.8500.IP',druckerIP);
                ! createState('Drucker.HP.8500.Name', ‚Drucker‘);
                ! createState('Drucker.HP.8500.Modell',druckermod);
                ! createState('Drucker.HP.8500.Tinte',TinteID);
                ! createState('Drucker.HP.8500.Cyan.Level');
                ! createState('Drucker.HP.8500.Cyan.Ink','C4907A');
                ! createState('Drucker.HP.8500.Yellow.Level');
                ! createState('Drucker.HP.8500.Yellow.Ink','C4909A');
                ! createState('Drucker.HP.8500.Black.Level');
                ! createState('Drucker.HP.8500.Black.Ink','C4906A');
                ! createState('Drucker.HP.8500.Magenta.Level');
                ! createState('Drucker.HP.8500.Magenta.Ink','C4908A');
                ! schedule("*/20 * * * *", function () { // alle 20 Minuten
                ! request(druckerURL, function (error, response, body) {
                ! if (!error && response.statusCode == 200) {
                ! // Farbe nummer 1
                ! var eins_position = body.indexOf(cut1) + cut1.length + 1;
                ! var color = body.substring(eins_position, eins_position+1) ;
                ! var zwei_position = body.indexOf(cut2)+ cut2.length + 1;
                ! var level_string = body.substring(zwei_position, zwei_position+2) ;
                ! var eins_lastpos = eins_position +10;
                ! var zwei_lastpos = zwei_position + 10;
                ! if("M" == color){
                ! level_M = level_string;
                ! }
                ! if("X" == color){
                ! level_C = level_string;
                ! }
                ! if("Y" == color){
                ! level_Y = level_string;
                ! }
                ! if("K" == color){
                ! level_K = level_string;
                ! }
                ! // Farbe nummer 2
                ! eins_position = body.indexOf(cut1, eins_lastpos) + cut1.length + 1 ;
                ! color = body.substring(eins_position, eins_position+1) ;
                ! zwei_position = body.indexOf(cut2,zwei_lastpos)+ cut2.length + 1;
                ! level_string = body.substring(zwei_position, zwei_position+2) ;
                ! if("M" == color){
                ! level_M = level_string;
                ! }
                ! if("C" == color){
                ! level_C = level_string;
                ! }
                ! if("Y" == color){
                ! level_Y = level_string;
                ! }
                ! if("K" == color){
                ! level_K = level_string;
                ! }
                ! eins_lastpos = eins_position + 10;
                ! zwei_lastpos = zwei_position + 10;
                ! // Farbe nummer 3
                ! eins_position = body.indexOf(cut1, eins_lastpos) + cut1.length + 1;
                ! color = body.substring(eins_position, eins_position+1) ;
                ! zwei_position = body.indexOf(cut2,zwei_lastpos)+ cut2.length + 1;
                ! level_string = body.substring(zwei_position, zwei_position+2) ;
                ! if("M" == color){
                ! level_M = level_string;
                ! }
                ! if("C" == color){
                ! level_C = level_string;
                ! }
                ! if("Y" == color){
                ! level_Y = level_string;
                ! }
                ! if("K" == color){
                ! level_K = level_string;
                ! }
                ! eins_lastpos = eins_position + 10;
                ! zwei_lastpos = zwei_position + 10;
                ! // Farbe nummer 4
                ! eins_position = body.indexOf(cut1, eins_lastpos) + cut1.length + 1;
                ! color = body.substring(eins_position, eins_position+1) ;
                ! zwei_position = body.indexOf(cut2,zwei_lastpos)+ cut2.length + 1;
                ! level_string = body.substring(zwei_position, zwei_position+2) ;
                ! if("M" == color){
                ! level_M = level_string;
                ! }
                ! if("C" == color){
                ! level_C = level_string;
                ! }
                ! if("Y" == color){
                ! level_Y = level_string;
                ! }
                ! if("K" == color){
                ! level_K = level_string;
                ! }
                ! eins_lastpos = eins_position + 10;
                ! zwei_lastpos = zwei_position + 10;
                ! log('Drucker Level M ' + level_M , "info");
                ! log('Drucker Level C ' + level_C , "info");
                ! log('Drucker Level Y ' + level_Y , "info");
                ! log('Drucker Level K ' + level_K , "info");
                ! // der folgende Bereich muss für ggf abweichenden Druckertyp angepasst werden
                ! setState('javascript.0.Drucker.HP.8500.Cyan.Level', level_C);
                ! setState('javascript.0.Drucker.HP.8500.Yellow.Level', level_Y);
                ! setState('javascript.0.Drucker.HP.8500.Black.Level', level_K);
                ! setState('javascript.0.Drucker.HP.8500.Magenta.Level', level_M);
                ! setState('javascript.0.Drucker.HP.8500.IP', druckerIP);
                ! } else { // if (!error && response.statusCode == 200) {
                ! log(error);
                ! log('Kein Drucker gefunden');
                ! }
                ! }); // end of request
                ! }); // end of schedule

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jensus11
                  wrote on last edited by
                  #13

                  und das ist die Fehlermeldung die jetzt kommt.

                  javascript-0 2016-01-29 13:28:53 error script.js.Druckerpatronen compile failed: SyntaxError: Unexpected token ILLEGAL

                  1 Reply Last reply
                  0
                  • L Online
                    L Online
                    looxer01
                    wrote on last edited by
                    #14

                    Hi,

                    na ja - da war ein Fehler bei den Create States. Ich habe die Zeile mit "Drucker" geloescht. Brauchst du eh nicht:

                    Tausche jetzt nur noch in der einen Zeile die IP aus.

                    Dann sollte es gehen.

                    vG Looxer

                    ! // bringt den Druckertintenstand von WEB enabled HP Tintenstrahler in ioBroker // Basierend auf CCU2 Script fuer HP Drucker http://homematic-forum.de/forum/viewtop ... 31&t=25140 // und dem angepassten Script von PiX aus iobroker http://forum.iobroker.de/viewtopic.php? ... c289#p6931 // Author : looxer01 - 22.12.2015 ! // hier Drucker parameter einstellen - vor dem ersten Speichern des Scripts var druckerIP = "192.168.0.xx"; var druckerURL = "http://" + druckerIP + "/DevMgmt/ConsumableConfigDyn.xml"; ! var druckermod = "8500"; var TinteID = "940XL"; ! var request = require('request'); var cut1 = "dd:ConsumableLabelCode"; var cut2 = "dd:ConsumablePercentageLevelRemaining"; ! var level_M = 0; var level_C = 0; var level_Y = 0; var level_K = 0; ! // angepasst an HP 8900 - hier bitte entsprechend anpassen auf den jeweiligen Typ createState('Drucker.HP.8500.IP',druckerIP); createState('Drucker.HP.8500.Modell',druckermod); createState('Drucker.HP.8500.Tinte',TinteID); createState('Drucker.HP.8500.Cyan.Level'); createState('Drucker.HP.8500.Cyan.Ink','C4907A'); createState('Drucker.HP.8500.Yellow.Level'); createState('Drucker.HP.8500.Yellow.Ink','C4909A'); createState('Drucker.HP.8500.Black.Level'); createState('Drucker.HP.8500.Black.Ink','C4906A'); createState('Drucker.HP.8500.Magenta.Level'); createState('Drucker.HP.8500.Magenta.Ink','C4908A'); ! schedule("*/20 * * * *", function () { // alle 20 Minuten ! request(druckerURL, function (error, response, body) { if (!error && response.statusCode == 200) { ! // Farbe nummer 1 var eins_position = body.indexOf(cut1) + cut1.length + 1; var color = body.substring(eins_position, eins_position+1) ; var zwei_position = body.indexOf(cut2)+ cut2.length + 1; var level_string = body.substring(zwei_position, zwei_position+2) ; var eins_lastpos = eins_position +10; var zwei_lastpos = zwei_position + 10; ! if("M" == color){ level_M = level_string; } if("X" == color){ level_C = level_string; } if("Y" == color){ level_Y = level_string; } if("K" == color){ level_K = level_string; } ! // Farbe nummer 2 eins_position = body.indexOf(cut1, eins_lastpos) + cut1.length + 1 ; color = body.substring(eins_position, eins_position+1) ; zwei_position = body.indexOf(cut2,zwei_lastpos)+ cut2.length + 1; level_string = body.substring(zwei_position, zwei_position+2) ; ! if("M" == color){ level_M = level_string; } if("C" == color){ level_C = level_string; } if("Y" == color){ level_Y = level_string; } if("K" == color){ level_K = level_string; } eins_lastpos = eins_position + 10; zwei_lastpos = zwei_position + 10; ! // Farbe nummer 3 eins_position = body.indexOf(cut1, eins_lastpos) + cut1.length + 1; color = body.substring(eins_position, eins_position+1) ; zwei_position = body.indexOf(cut2,zwei_lastpos)+ cut2.length + 1; level_string = body.substring(zwei_position, zwei_position+2) ; ! if("M" == color){ level_M = level_string; } if("C" == color){ level_C = level_string; } if("Y" == color){ level_Y = level_string; } if("K" == color){ level_K = level_string; } eins_lastpos = eins_position + 10; zwei_lastpos = zwei_position + 10; ! // Farbe nummer 4 eins_position = body.indexOf(cut1, eins_lastpos) + cut1.length + 1; color = body.substring(eins_position, eins_position+1) ; zwei_position = body.indexOf(cut2,zwei_lastpos)+ cut2.length + 1; level_string = body.substring(zwei_position, zwei_position+2) ; ! if("M" == color){ level_M = level_string; } if("C" == color){ level_C = level_string; } if("Y" == color){ level_Y = level_string; } if("K" == color){ level_K = level_string; } eins_lastpos = eins_position + 10; zwei_lastpos = zwei_position + 10; ! log('Drucker Level M ' + level_M , "info"); log('Drucker Level C ' + level_C , "info"); log('Drucker Level Y ' + level_Y , "info"); log('Drucker Level K ' + level_K , "info"); ! // der folgende Bereich muss für ggf abweichenden Druckertyp angepasst werden ! setState('javascript.0.Drucker.HP.8500.Cyan.Level', level_C); setState('javascript.0.Drucker.HP.8500.Yellow.Level', level_Y); setState('javascript.0.Drucker.HP.8500.Black.Level', level_K); setState('javascript.0.Drucker.HP.8500.Magenta.Level', level_M); setState('javascript.0.Drucker.HP.8500.IP', druckerIP); ! } else { // if (!error && response.statusCode == 200) { log(error); log('Kein Drucker gefunden'); ! } ! }); // end of request ! }); // end of schedule !
                    5050__bersicht_befehle.xlsx

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jensus11
                      wrote on last edited by
                      #15

                      Eine Fehlermeldung kommt jetzt nicht mehr. Aber übernommen werden die Daten immer noch nicht.

                      Das steht jetzt wenn ich unter Zustände nachschaue.
                      1024_bildschirmfoto_2016-01-29_um_14.38.55.png

                      1 Reply Last reply
                      0
                      • L Online
                        L Online
                        looxer01
                        wrote on last edited by
                        #16

                        der schedule ist alle 20 Minuten. Hast du solange gewartet ?

                        vG Looxer

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          jensus11
                          wrote on last edited by
                          #17

                          Ich dachte wenn ich das Script starte dann werden die Daten abgeglichen und nach 20min wieder aktualisiert.

                          Ich habe jetzt noch einmal java gestartet und were mal in 20min gucken.

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            jensus11
                            wrote on last edited by
                            #18

                            1024_bildschirmfoto_2016-01-29_um_18.20.52.png So, kleines Update. Die Werte werden jetzt angezeigt, nur leider der Zyan Wert ist falsch. Der müsste auch 90% haben.

                            1 Reply Last reply
                            0
                            • L Online
                              L Online
                              looxer01
                              wrote on last edited by
                              #19

                              Hi,

                              hab mir gerade mal den Code angesehen und das Problem gefunden.

                              Der Fehlerhafte code ist:

                              if("X" == color){

                              level_C = level_string;

                              }

                              Das ist muss "C" sein. An vier Stellen im coding

                              Ich werde in den nächsten Tagen den gesamten Code überarbeiten. Dann klappt es besser bei ggf anderen.

                              vG Looxer

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                jensus11
                                wrote on last edited by
                                #20

                                super, jetzt klappt es. danke für deine Hilfe.

                                1 Reply Last reply
                                0
                                • L Online
                                  L Online
                                  looxer01
                                  wrote on last edited by
                                  #21

                                  Hi,

                                  ich habe das HP-Drucker Script ueberarbeitet.

                                  Jetzt sind alle Einstellungen im Einstellungsbereich zu bearbeiten. Fehler sind beseitigt.

                                  Ich habe es im fünften Post geändert (also im ersten von mir)

                                  vG Looxer

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    audioconcept
                                    wrote on last edited by
                                    #22

                                    Hi

                                    bei mir lief das mit dem HP Officejet 6800 PRo wunderbar. Jetzt habe ich einen neuen Drucke HP 2540 , dieser hat ein schwarze Patrone und eine mit den anderen drei Farben. Wie macht man das denn da jetzt.

                                    Sorry bin nicht mehr ganz in der Materie drin.

                                    Als Script hatte früher:

                                    !-----------------------------------------------------------------------------
                                    ! Hier alle was man verändern kann/muss
                                    ! Voraussetzung: CUxD
                                    !-----------------------------------------------------------------------------
                                    string druckerIP = "192.168.0.11"; !IP des HP Druckers
                                    
                                    var CUxD_Device = "CUxD.CUX2801001:10"; !CUxD Virtuelles Gerät
                                    
                                    !Druckerpatronen Variablen-Namen
                                    string yellow = "Drucker_Yellow"; !Zahl 0 - 100%
                                    string magenta = "Drucker_Magenta"; !Zahl 0 - 100%
                                    string cyan = "Drucker_Cyan"; !Zahl 0 - 100%
                                    string black = "Drucker_Black"; !Zahl 0 - 100%
                                    
                                    !-----------------------------------------------------------------------------
                                    ! Ab hier muss man nichts mehr beachten
                                    !-----------------------------------------------------------------------------
                                    
                                    string druckerUrl = "http://" + druckerIP + "/DevMgmt/ConsumableConfigDyn.xml";
                                    
                                    var posStart;
                                    var posEnd;
                                    
                                    string cmd = "wget -q -O - " # druckerUrl;
                                    
                                    dom.GetObject(CUxD_Device # ".CMD_SETS").State(cmd);
                                    dom.GetObject(CUxD_Device # ".CMD_QUERY_RET").State(1);
                                    string stdout = dom.GetObject(CUxD_Device # ".CMD_RETS").State();
                                    
                                    string cut1 = "ConsumableAcceptibilitySubBrand";
                                    string cut2;
                                    stdout = stdout.Substr(stdout.Find(cut1), stdout.Length());
                                    
                                    integer c;
                                    integer m;
                                    integer y;
                                    integer k;
                                    string farbe;
                                    string value;
                                    
                                    !-----------------------------------------------------------------------------
                                    ! Farbe Nr 1
                                    !-----------------------------------------------------------------------------
                                    cut1 = "dd:ConsumableLabelCode";
                                    cut2 = "dd:ConsumablePercentageLevelRemaining";
                                    farbe = stdout.Substr(stdout.Find(cut1) + cut1.Length() + 1, 1);
                                    value = stdout.Substr(stdout.Find(cut2) + cut2.Length() + 1, 2);   
                                    if("M" == farbe){
                                       m = value.ToInteger();
                                    }
                                    if("Y" == farbe){
                                       y = value.ToInteger();
                                    }
                                    if("C" == farbe){
                                       c = value.ToInteger();
                                    }
                                    if("K" == farbe){
                                       k = value.ToInteger();
                                    }
                                    cut1 = "ConsumableInfo";
                                    stdout = stdout.Substr(stdout.Find(cut1) + cut1.Length() * 2, stdout.Length());
                                    
                                    !-----------------------------------------------------------------------------
                                    ! Farbe Nr 2
                                    !-----------------------------------------------------------------------------
                                    cut1 = "dd:ConsumableLabelCode";
                                    cut2 = "dd:ConsumablePercentageLevelRemaining";
                                    farbe = stdout.Substr(stdout.Find(cut1) + cut1.Length() + 1, 1);
                                    value = stdout.Substr(stdout.Find(cut2) + cut2.Length() + 1, 2);   
                                    if("M" == farbe){
                                       m = value.ToInteger();
                                    }
                                    if("Y" == farbe){
                                       y = value.ToInteger();
                                    }
                                    if("C" == farbe){
                                       c = value.ToInteger();
                                    }
                                    if("K" == farbe){
                                       k = value.ToInteger();
                                    }
                                    cut1 = "ConsumableInfo";
                                    stdout = stdout.Substr(stdout.Find(cut1) + cut1.Length() * 2, stdout.Length());
                                    
                                    !-----------------------------------------------------------------------------
                                    ! Farbe Nr 3
                                    !-----------------------------------------------------------------------------
                                    cut1 = "dd:ConsumableLabelCode";
                                    cut2 = "dd:ConsumablePercentageLevelRemaining";
                                    farbe = stdout.Substr(stdout.Find(cut1) + cut1.Length() + 1, 1);
                                    value = stdout.Substr(stdout.Find(cut2) + cut2.Length() + 1, 2);   
                                    if("M" == farbe){
                                       m = value.ToInteger();
                                    }
                                    if("Y" == farbe){
                                       y = value.ToInteger();
                                    }
                                    if("C" == farbe){
                                       c = value.ToInteger();
                                    }
                                    if("K" == farbe){
                                       k = value.ToInteger();
                                    }
                                    cut1 = "ConsumableInfo";
                                    stdout = stdout.Substr(stdout.Find(cut1) + cut1.Length() * 2, stdout.Length());
                                    
                                    !-----------------------------------------------------------------------------
                                    ! Farbe Nr 4
                                    !-----------------------------------------------------------------------------
                                    cut1 = "dd:ConsumableLabelCode";
                                    cut2 = "dd:ConsumablePercentageLevelRemaining";
                                    farbe = stdout.Substr(stdout.Find(cut1) + cut1.Length() + 1, 1);
                                    value = stdout.Substr(stdout.Find(cut2) + cut2.Length() + 1, 2);   
                                    if("M" == farbe){
                                       m = value.ToInteger();
                                    }
                                    if("Y" == farbe){
                                       y = value.ToInteger();
                                    }
                                    if("C" == farbe){
                                       c = value.ToInteger();
                                    }
                                    if("K" == farbe){
                                       k = value.ToInteger();
                                    }
                                    
                                    dom.GetObject(yellow).State(y);
                                    dom.GetObject(cyan).State(c);
                                    dom.GetObject(magenta).State(m);
                                    dom.GetObject(black).State(k);
                                    

                                    Gruß aus Dortmund

                                    Michael

                                    –---------------------------------

                                    <size size="85">Ausstattung: PI 4 , Rasbian , IOBroker , Admin 1.2.3, VIS 0.10.2, Host 0.90 [wird immer auf dem neuesten Stand geha…</size>

                                    1 Reply Last reply
                                    0
                                    • L Online
                                      L Online
                                      looxer01
                                      wrote on last edited by
                                      #23

                                      Hi,

                                      das HP-Script geht von vier Farben aus.

                                      Es funktioniert nicht mit dem Drucker ?

                                      Poste doch mal die XML Datei.

                                      vG Looxer

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        audioconcept
                                        wrote on last edited by
                                        #24

                                        Hi

                                        hier ist die XML Datei.

                                        Schwarz zeigt er an:

                                        This XML file does not appear to have any style information associated with it. The document tree is shown below.
                                        
                                         <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.290</dd:revision>
                                        <dd:date>2010-06-02</dd:date></dd:version> 
                                         <ccdyn:productconsumableinfo><dd:numofuserreplaceableconsumables>2</dd:numofuserreplaceableconsumables>
                                        <dd:numofnonuserreplaceableconsumables>0</dd:numofnonuserreplaceableconsumables>
                                        <dd:alignmentmode>semiAutomatic</dd:alignmentmode>
                                        <ccdyn:cartridgechipinfo>enabled</ccdyn:cartridgechipinfo>
                                        <dd:consumableslotdirection>leftToRight</dd:consumableslotdirection>
                                        <dd:ik>670</dd:ik>
                                        <ccdyn:singlecartridgemode>enabled</ccdyn:singlecartridgemode>
                                        <dd:antitheftmode>disabled</dd:antitheftmode>
                                         <ccdyn:rewardsregistrationstatus><dd:optedin>false</dd:optedin>
                                        <dd:autosenddata>false</dd:autosenddata>
                                        <dd:promptautosenddata>false</dd:promptautosenddata></ccdyn:rewardsregistrationstatus></ccdyn:productconsumableinfo> 
                                         <ccdyn:consumableinfo><dd:capacity><dd:maxcapacity>0</dd:maxcapacity>
                                        <dd:unit>tenthsOfMilliliters</dd:unit></dd:capacity> 
                                        <dd:consumableacceptibilitysubbrand>allDevices</dd:consumableacceptibilitysubbrand>
                                        <dd:consumableacceptibilitysegmentclass>setup</dd:consumableacceptibilitysegmentclass>
                                        <dd:consumableacceptibilityupgradability>notSupported</dd:consumableacceptibilityupgradability>
                                        <dd:consumablecontenttype>markingAgent</dd:consumablecontenttype>
                                        <dd:consumablefamilyname>TIJ2</dd:consumablefamilyname>
                                         <dd2:consumableid>0000000000000000000000000000000000000000000000000000000000000000006904008E05691C4D9128F53037114B000E0000000038E0E0453F621E5D38AF</dd2:consumableid> 
                                        <dd:consumablekeyingdescriptor>small</dd:consumablekeyingdescriptor>
                                        <dd:consumablelabelcode>CMY</dd:consumablelabelcode>
                                         <dd:consumablelifestate><dd:consumablestate>newGenuineHP</dd:consumablestate>
                                        <dd:measuredquantitystate>ok</dd:measuredquantitystate>
                                        <dd:brand>HP</dd:brand>
                                        <dd:consumablestateaction>acknowledge</dd:consumablestateaction>
                                        <dd:isrefilled>false</dd:isrefilled>
                                        <dd:issetup>true</dd:issetup></dd:consumablelifestate> 
                                        <dd:consumablelevelmessagingstyle>dropCount</dd:consumablelevelmessagingstyle>
                                        <dd:consumablelowusealgorithm>standard</dd:consumablelowusealgorithm>
                                        <dd:consumablepercentagelevelremaining>100</dd:consumablepercentagelevelremaining>
                                        <dd:consumablereplaceabilitytype>userReplaceable</dd:consumablereplaceabilitytype>
                                        <dd:consumableselectibilitynumber>301</dd:consumableselectibilitynumber>
                                        <dd:consumablestation>0</dd:consumablestation>
                                        <dd:consumabletypeenum>inkCartridge</dd:consumabletypeenum>
                                         <dd:regionalcartridge><dd:regionidentifier>4</dd:regionidentifier></dd:regionalcartridge> 
                                         <dd:consumableicon><dd:shape>Oval</dd:shape>
                                        <dd:rotation>rotateNinety</dd:rotation>
                                         <dd:fillcolor><dd:red>255</dd:red>
                                        <dd:green>255</dd:green>
                                        <dd:blue>255</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:consumableicon> 
                                        <ccdyn:consumableuniqueid>000000000000008e26c894f53037114b</ccdyn:consumableuniqueid></ccdyn:consumableinfo> 
                                         <ccdyn:consumableinfo><dd:capacity><dd:maxcapacity>0</dd:maxcapacity>
                                        <dd:unit>tenthsOfMilliliters</dd:unit></dd:capacity> 
                                        <dd:consumableacceptibilitysubbrand>allDevices</dd:consumableacceptibilitysubbrand>
                                        <dd:consumableacceptibilitysegmentclass>allDevices</dd:consumableacceptibilitysegmentclass>
                                        <dd:consumableacceptibilityupgradability>notSupported</dd:consumableacceptibilityupgradability>
                                        <dd:consumablecontenttype>markingAgent</dd:consumablecontenttype>
                                        <dd:consumablefamilyname>TIJ2</dd:consumablefamilyname>
                                         <dd2:consumableid>000000000000000000000000000000000000000000000000000000000000000000790400820760390DC76C115E381173000000000000000C0046C3E21E294F89</dd2:consumableid> 
                                        <dd:consumablekeyingdescriptor>small</dd:consumablekeyingdescriptor>
                                        <dd:consumablelabelcode>K</dd:consumablelabelcode>
                                         <dd:consumablelifestate><dd:consumablestate>newGenuineHP</dd:consumablestate>
                                        <dd:measuredquantitystate>ok</dd:measuredquantitystate>
                                        <dd:brand>HP</dd:brand>
                                        <dd:consumablestateaction>acknowledge</dd:consumablestateaction>
                                        <dd:isrefilled>false</dd:isrefilled>
                                        <dd:issetup>true</dd:issetup></dd:consumablelifestate> 
                                        <dd:consumablelevelmessagingstyle>Eureka</dd:consumablelevelmessagingstyle>
                                        <dd:consumablelowusealgorithm>standard</dd:consumablelowusealgorithm>
                                        <dd:consumablepercentagelevelremaining>90</dd:consumablepercentagelevelremaining>
                                        <dd:consumablereplaceabilitytype>userReplaceable</dd:consumablereplaceabilitytype>
                                        <dd:consumableselectibilitynumber>301</dd:consumableselectibilitynumber>
                                        <dd:consumablestation>1</dd:consumablestation>
                                        <dd:consumabletypeenum>inkCartridge</dd:consumabletypeenum>
                                         <dd:regionalcartridge><dd:regionidentifier>4</dd:regionidentifier></dd:regionalcartridge> 
                                         <dd:consumableicon><dd:shape>BowTie</dd:shape>
                                        <dd:rotation>rotateZero</dd:rotation>
                                         <dd:fillcolor><dd:red>255</dd:red>
                                        <dd:green>255</dd:green>
                                        <dd:blue>255</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:consumableicon> 
                                        <ccdyn:consumableuniqueid>000000000000001c86e3b6115e381173</ccdyn:consumableuniqueid></ccdyn:consumableinfo></ccdyn:consumableconfigdyn> 
                                        

                                        Gruß aus Dortmund

                                        Michael

                                        –---------------------------------

                                        <size size="85">Ausstattung: PI 4 , Rasbian , IOBroker , Admin 1.2.3, VIS 0.10.2, Host 0.90 [wird immer auf dem neuesten Stand geha…</size>

                                        1 Reply Last reply
                                        0
                                        • L Online
                                          L Online
                                          looxer01
                                          wrote on last edited by
                                          #25

                                          aaah, ich glaube ich verstehe.

                                          du hast eine schwarze patrone und eine Farbpatrone mit drei Farben ?

                                          so würde ich das aus der XML interpretieren.

                                          Daher funktioniert schwarz aber nicht Farbe.

                                          vG Looxer

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


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          564

                                          Online

                                          32.7k

                                          Users

                                          82.3k

                                          Topics

                                          1.3m

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

                                          • Don't have an account? Register

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