HP Instant Ink

j’ai trouvé le tableau pour la version hplib par rapport au imprimante au faite :
https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index

j’ai trouvé ^^ voila mon xml

<!--  THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN.  -->
<psdyn:ProductStatusDyn 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:ad="http://www.hp.com/schemas/imaging/con/ledm/alertdetails/2007/10/31" xmlns:pscat="http://www.hp.com/schemas/imaging/con/ledm/productstatuscategories/2007/10/31" xmlns:locid="http://www.hp.com/schemas/imaging/con/ledm/localizationids/2007/10/31" xmlns:psdyn="http://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd http://www.hp.com/schemas/imaging/con/ledm/alertdetails/2007/10/31 ../schemas/AlertDetails.xsd http://www.hp.com/schemas/imaging/con/ledm/productstatuscategories/2007/10/31 ../schemas/ProductStatusCategories.xsd http://www.hp.com/schemas/imaging/con/ledm/localizationids/2007/10/31 ../schemas/LocalizationIds.xsd http://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31 ../schemas/ProductStatusDyn.xsd">
<dd:Version>
<dd:Revision>SVN-IPG-LEDM.216</dd:Revision>
<dd:Date>2011-02-08</dd:Date>
</dd:Version>
<psdyn:Status>
<pscat:StatusCategory>genuineHP</pscat:StatusCategory>
<psdyn:LocString lang="fr">Cart. HP Instant Ink</psdyn:LocString>
<locid:StringId>65766</locid:StringId>
</psdyn:Status>
<psdyn:Status>
<pscat:StatusCategory>inPowerSave</pscat:StatusCategory>
<locid:StringId>65640</locid:StringId>
</psdyn:Status>
<psdyn:AlertTable>
<dd:ModificationNumber>16</dd:ModificationNumber>
<psdyn:Alert>
<ad:ProductStatusAlertID>genuineHP</ad:ProductStatusAlertID>
<locid:StringId>65766</locid:StringId>
<dd:SequenceNumber>21</dd:SequenceNumber>
<ad:Severity>Info</ad:Severity>
<ad:AlertPriority>399</ad:AlertPriority>
<ad:AlertDetails>
<ad:AlertDetailsMarkerColor>Magenta</ad:AlertDetailsMarkerColor>
<ad:AlertDetailsConsumableTypeEnum>ink</ad:AlertDetailsConsumableTypeEnum>
<ad:AlertDetailsMarkerLocation>1</ad:AlertDetailsMarkerLocation>
<ad:AlertDetailsErrorCode>17.99.40</ad:AlertDetailsErrorCode>
<ad:AlertDetailsUserAction>acknowledgeConsumableState</ad:AlertDetailsUserAction>
</ad:AlertDetails>
<dd:ResourceURI>/DevMgmt/ConsumableConfigDyn.xml</dd:ResourceURI>
<dd:ResourceType>ledm:hpLedmConsumableConfigDyn</dd:ResourceType>
</psdyn:Alert>
<psdyn:Alert>
<ad:ProductStatusAlertID>genuineHP</ad:ProductStatusAlertID>
<locid:StringId>65766</locid:StringId>
<dd:SequenceNumber>22</dd:SequenceNumber>
<ad:Severity>Info</ad:Severity>
<ad:AlertPriority>399</ad:AlertPriority>
<ad:AlertDetails>
<ad:AlertDetailsMarkerColor>Cyan</ad:AlertDetailsMarkerColor>
<ad:AlertDetailsConsumableTypeEnum>ink</ad:AlertDetailsConsumableTypeEnum>
<ad:AlertDetailsMarkerLocation>2</ad:AlertDetailsMarkerLocation>
<ad:AlertDetailsErrorCode>17.99.40</ad:AlertDetailsErrorCode>
<ad:AlertDetailsUserAction>acknowledgeConsumableState</ad:AlertDetailsUserAction>
</ad:AlertDetails>
<dd:ResourceURI>/DevMgmt/ConsumableConfigDyn.xml</dd:ResourceURI>
<dd:ResourceType>ledm:hpLedmConsumableConfigDyn</dd:ResourceType>
</psdyn:Alert>
<psdyn:Alert>
<ad:ProductStatusAlertID>genuineHP</ad:ProductStatusAlertID>
<locid:StringId>65766</locid:StringId>
<dd:SequenceNumber>23</dd:SequenceNumber>
<ad:Severity>Info</ad:Severity>
<ad:AlertPriority>399</ad:AlertPriority>
<ad:AlertDetails>
<ad:AlertDetailsMarkerColor>Yellow</ad:AlertDetailsMarkerColor>
<ad:AlertDetailsConsumableTypeEnum>ink</ad:AlertDetailsConsumableTypeEnum>
<ad:AlertDetailsMarkerLocation>3</ad:AlertDetailsMarkerLocation>
<ad:AlertDetailsErrorCode>17.99.40</ad:AlertDetailsErrorCode>
<ad:AlertDetailsUserAction>acknowledgeConsumableState</ad:AlertDetailsUserAction>
</ad:AlertDetails>
<dd:ResourceURI>/DevMgmt/ConsumableConfigDyn.xml</dd:ResourceURI>
<dd:ResourceType>ledm:hpLedmConsumableConfigDyn</dd:ResourceType>
</psdyn:Alert>
<psdyn:Alert>
<ad:ProductStatusAlertID>genuineHP</ad:ProductStatusAlertID>
<locid:StringId>65766</locid:StringId>
<dd:SequenceNumber>24</dd:SequenceNumber>
<ad:Severity>Info</ad:Severity>
<ad:AlertPriority>399</ad:AlertPriority>
<ad:AlertDetails>
<ad:AlertDetailsMarkerColor>Black</ad:AlertDetailsMarkerColor>
<ad:AlertDetailsConsumableTypeEnum>ink</ad:AlertDetailsConsumableTypeEnum>
<ad:AlertDetailsMarkerLocation>4</ad:AlertDetailsMarkerLocation>
<ad:AlertDetailsErrorCode>17.99.40</ad:AlertDetailsErrorCode>
<ad:AlertDetailsUserAction>acknowledgeConsumableState</ad:AlertDetailsUserAction>
</ad:AlertDetails>
<dd:ResourceURI>/DevMgmt/ConsumableConfigDyn.xml</dd:ResourceURI>
<dd:ResourceType>ledm:hpLedmConsumableConfigDyn</dd:ResourceType>
</psdyn:Alert>
</psdyn:AlertTable>
</psdyn:ProductStatusDyn>
1 « J'aime »

et le fichier : /DevMgmt/ConsumableConfigDyn.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.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>automatic</dd:AlignmentMode>

<ccdyn:CartridgeChipInfo>disabled</ccdyn:CartridgeChipInfo>

<dd:ConsumableSlotDirection>leftToRight</dd:ConsumableSlotDirection>

<dd:IK>62</dd:IK>

<ccdyn:SingleCartridgeMode>enabled</ccdyn:SingleCartridgeMode>

<ccdyn:GenuineHPSuppliesOnly>disabled</ccdyn:GenuineHPSuppliesOnly>

<dd:AntiTheftMode>disabled</dd:AntiTheftMode>

<ccdyn:MarkingAgentSubscriptionLevel>1</ccdyn:MarkingAgentSubscriptionLevel>

<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>

<ccdyn:ConsumableSubBrand>generic</ccdyn:ConsumableSubBrand>

<ccdyn:ConsumableSegmentClass>class3</ccdyn:ConsumableSegmentClass>

<dd:ConsumableAcceptibilityUpgradability>notSupported</dd:ConsumableAcceptibilityUpgradability>

<dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>

<dd:ConsumableFamilyName>TIJ2</dd:ConsumableFamilyName>

<dd2:ConsumableID>000000000000000000000000000000000B0000000000000000000000CD121C0026407C35</dd2:ConsumableID>

<dd:ConsumableKeyingDescriptor>large1</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:IsRefilled>false</dd:IsRefilled>

<dd:IsSETUP>false</dd:IsSETUP>

<dd:IsSubscription>true</dd:IsSubscription>

<dd:IsTrial>false</dd:IsTrial>

</dd:ConsumableLifeState>

<dd:ConsumableStateAvailableActions>

<dd:ConsumableState>newGenuineHP</dd:ConsumableState>

<dd:SupportedActions>

<dd:ConsumableStateAction>acknowledge</dd:ConsumableStateAction>

<dd:ConsumableStateAction>none</dd:ConsumableStateAction>

</dd:SupportedActions>

<dd:DefaultAction>acknowledge</dd:DefaultAction>

</dd:ConsumableStateAvailableActions>

<dd:ConsumableLevelMessagingStyle>Eureka</dd:ConsumableLevelMessagingStyle>

<ccdyn:ConsumableLowUseAlgorithm>everyday3</ccdyn:ConsumableLowUseAlgorithm>

<dd:ConsumablePercentageLevelRemaining>60</dd:ConsumablePercentageLevelRemaining>

<dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>

<dd:ConsumableSelectibilityNumber>INSTANT INK</dd:ConsumableSelectibilityNumber>

<dd:ConsumableStation>0</dd:ConsumableStation>

<dd:ConsumableTypeEnum>inkCartridge</dd:ConsumableTypeEnum>

<dd:Manufacturer>

<dd:Name>HP</dd:Name>

<dd:Date>2019-08-01</dd:Date>

</dd:Manufacturer>

<dd:RegionalCartridge>

<dd:RegionIdentifier>1</dd:RegionIdentifier>

</dd:RegionalCartridge>

<dd:ConsumableIcon>

<dd:Shape>CMYTriDots</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>255</dd:Red>

<dd:Green>255</dd:Green>

<dd:Blue>255</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>00000000000000e8f7d2</ccdyn:ConsumableUniqueID>

</ccdyn:ConsumableInfo>

<ccdyn:ConsumableInfo>

<dd:Capacity>

<dd:MaxCapacity>0</dd:MaxCapacity>

<dd:Unit>tenthsOfMilliliters</dd:Unit>

</dd:Capacity>

<ccdyn:ConsumableSubBrand>generic</ccdyn:ConsumableSubBrand>

<ccdyn:ConsumableSegmentClass>class3</ccdyn:ConsumableSegmentClass>

<dd:ConsumableAcceptibilityUpgradability>notSupported</dd:ConsumableAcceptibilityUpgradability>

<dd:ConsumableContentType>markingAgent</dd:ConsumableContentType>

<dd:ConsumableFamilyName>TIJ2</dd:ConsumableFamilyName>

<dd2:ConsumableID>0000000000000000400002000000000A0000000094000000000000009020000024007020044898C86C9C</dd2:ConsumableID>

<dd:ConsumableKeyingDescriptor>large</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:IsRefilled>false</dd:IsRefilled>

<dd:IsSETUP>false</dd:IsSETUP>

<dd:IsSubscription>true</dd:IsSubscription>

<dd:IsTrial>false</dd:IsTrial>

</dd:ConsumableLifeState>

<dd:ConsumableStateAvailableActions>

<dd:ConsumableState>newGenuineHP</dd:ConsumableState>

<dd:SupportedActions>

<dd:ConsumableStateAction>acknowledge</dd:ConsumableStateAction>

<dd:ConsumableStateAction>none</dd:ConsumableStateAction>

</dd:SupportedActions>

<dd:DefaultAction>acknowledge</dd:DefaultAction>

</dd:ConsumableStateAvailableActions>

<dd:ConsumableLevelMessagingStyle>Eureka</dd:ConsumableLevelMessagingStyle>

<ccdyn:ConsumableLowUseAlgorithm>everyday3</ccdyn:ConsumableLowUseAlgorithm>

<dd:ConsumablePercentageLevelRemaining>90</dd:ConsumablePercentageLevelRemaining>

<dd:ConsumableReplaceabilityType>userReplaceable</dd:ConsumableReplaceabilityType>

<dd:ConsumableSelectibilityNumber>INSTANT INK</dd:ConsumableSelectibilityNumber>

<dd:ConsumableStation>1</dd:ConsumableStation>

<dd:ConsumableTypeEnum>inkCartridge</dd:ConsumableTypeEnum>

<dd:Manufacturer>

<dd:Name>HP</dd:Name>

<dd:Date>2021-01-01</dd:Date>

</dd:Manufacturer>

<dd:RegionalCartridge>

<dd:RegionIdentifier>1</dd:RegionIdentifier>

</dd:RegionalCartridge>

<dd:ConsumableIcon>

<dd:Shape>SmallCircle</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:ConsumableIcon>

<ccdyn:ConsumableUniqueID>000000000000006400871596466455555555551</ccdyn:ConsumableUniqueID>

</ccdyn:ConsumableInfo>

</ccdyn:ConsumableConfigDyn>

et pour les infos d’usage ( page imprimé ect ) :
http://ipimprimante/DevMgmt/ProductUsageDyn.xml

Apres faut faire du tri :sweat_smile:

ya beaucoup de choses et en même temps énormément de truc inutile mais je n’ai pas vu la partie instant ink

exacte d’ailleurs en même temps même sur le github il prend rien du insant ink

State: connected?
Détails de l'imprimante - Capteur
State: # of pages printed
Attributes:
    Color - # of printed documents using color cartridges
    Monochrome - # of printed documents using black cartridges
    Jams - # of print jobs jammed
    Cancelled - # of print jobs that were cancelled
Détails du scanner - Capteur (pour AIO uniquement)
State: # of pages scanned
Attributes:
    ADF - # of scanned documents from the ADF
    Duplex - # of scanned documents from the ADF using duplex mode
    Flatbed - # of scanned documents from the flatbed
    Jams - # of scanned jammed
    Mispick - # of scanned documents failed to take the document from the feeder
Détails des cartouches - Capteur (par cartouche)
State: Remaining level %
Attributes:
    Color
    Type - Ink / Toner / Print head
    Station - Position of the cartridge
    Product Number
    Serial Number
    Manufactured By
    Manufactured At
    Warranty Expiration Date
    Installed At

De ce que j’ai trouvé du coté de HA , les gens ce font un compteur eux même avec l’info de State: # of pages printed

avec un reset tout les mois,

Beaucoup de reglage pour pas grand chose

Le seul intérêt que je vois c’est de pas installer une grosse librairie. C’est beaucoup plus light

Salut. Qu’est-il arrivé à ce plugin ? Je n’en trouve plus sur le market.

Slt rien il n’a jamais passé le stade de beta

Hello à tous !

Etant intéressé par la partie Instant Ink je suis en train d’essayer de faire du reverse engineering pour récupérer les infos depuis le compte HP Smart. J’ai pu récupéré les requêtes avec toutes les informations intéressantes de mon contrat (forfait, date, page en cours, …)
Reste juste (façon de parler) à gérer la partie authentification. Et c’est pas une mince affaire. Rien de documenté et multiples requêtes. Je vous fais signe si j’y arrive mais c’est très loin d’être gagné :wink:

Le plugin suivra en fonction du résultat. J’intégrerai également les infos xml du serveur web des imprimantes !

PS : j’anticipe déjà la question : pas de date ! dans 1 jour, dans 1 mois ou dans 1 an :smiley: :smiley:

2 « J'aime »