+ Reply to Thread
Results 1 to 6 of 6

Thread: How to get more media info for a job?

  1. #1
    Join Date
    Aug 2016
    Posts
    6

    Default How to get more media info for a job?

    Hi team,

    I'm working on a project calculating the cost of a job. The detail should include media type, weight and size. Below is a specificed job by inovoking feiry API.
    Code:
    {u'status': u'done printing', u'EFPostFlight': u'False', u'EFDestination': u'Printer', u'EFCoverTray': u'None', u'EFMMTabShift': u'False', u'total ejected tab pages printed': u'0', u'total bw pages printed': u'0', u'EFImageBackX': u'0', u'timestamp first page printed': u'1472229389:000000', u'EFColorMode': u'CMYK', u'EFMediaInterlv': u'False', u'logical printer': u'none', u'EFStapler': u'False', u'Notes1': u'', u'EFDuplex': u'ShortEdge', u'EFMediaType': u'Any', u'media size': u'Custom_Paper', u'size': u'1993789', u'EFBkCover': u'False', u'EFImageFrontX': u'0', u'EFImageFrontY': u'0', u'EFMMInsType': u'None', u'PageSize': u'Custom', u'title': u'A9REE1C.tmp', u'total color pages printed': u'4', u'EFImageWiseRange': u'False', u'EFBrightness': u'0.16', u'EFMMInUse': u'False', u'EFImageBackY': u'0', u'id': u'81CA5128.57C0700D.21230', u'num copies': u'1', u'total tab pages printed': u'0', u'PBBodyImageV': u'0', u'fiery': u'A1200', u'EFImageUnit': u'MM', u'timestamp waiting to rip': u'1472229389:184047', u'input slot': u'Tray2', u'EFControlBar': u'False', u'EFImageFlag': u'False', u'duplex printed': u'No', u'EFTrayAlignment': u'False', u'username': u'Administrator', u'num pages': u'4', u'EFImageAlign': u'False', u'timestamp done spooling': u'1472229389:184516', u'held?': u'no', u'media type': u'Any', u'total blank pages printed': u'0', u'total sheets printed': u'2', u'timestamp printing': u'1472229393:000000', u'EFMMCover': u'PrintFront', u'timestamp waiting to print': u'1472229389:000000', u'timestamp done ripping': u'1472229389:184516', u'EFProgressives': u'False', u'timestamp created': u'1472229389:179835', u'EFTabPosition': u'0', u'EFPCName': u'-1', u'date': u'9:31 Aug 26, 16', u'print status': u'OK', u'EFAutoScaling': u'False', u'EFImageWise_RangeType': u'AllPages', u'timestamp done printing': u'1472229437:831503', u'EFPrintSize': u'SameAsPageSize', u'EFRaster': u'False', u'copies printed': u'1', u'EFBkCoverTray': u'None', u'PBCoverImageV': u'0', u'timestamp spooling': u'1472229389:184047', u'EFPageDelivery': u'SameOrderFaceDown', u'InputSlot': u'Tray2', u'timestamp ripping': u'1472229389:184047', u'EFEngRotate180': u'False', u'EFOutputBin': u'AutoSelect', u'EFCover': u'False', u'Instruct': u'', u'original job ID': u'81CA5128.57C06EF1.21228', u'EFSort': u'Collate', u'has disk raster?': u'no', u'total pages printed': u'4', u'EFShiftSort': u'1', u'EFOutputPriority': u'StackerA', u'PBCoverImageH': u'0’}
    2. how to convert the timestamp to a datetime? e.g. ‘timestamp done printing': u'1472229437:831503’
    If I use unixtime to convert it, the time should be 2016-08-27 00:37:17, but actual print time is 'date': u'9:31 Aug 26, 16'. Any ideas?

  2. #2
    Yusuke_K is offline Senior Fiery Forum Contributor Yusuke_K is on a distinguished path
    Join Date
    Jul 2009
    Posts
    55

    Default

    Hi there,

    The attributes you are looking for media type, weight size are:

    EFMediaType
    EFMediaWeight
    PageSize


    When you change media type or weight for a particular job from CWS Job Properties, these attributes should show up with /jobs call. If these settings haven't been set or at default it won't show you.

    We don't have list of parameters you can set since this varies by models and setup so you need to do trial and error by changing job properties and then look up from /jobs call.

    Fiery API doesn't provide converted timestamp for you. The default should be UTC but you might have to adjust with your Fiery settings from Fiery Configure.

    I hope this helps,

    Yusuke

  3. #3
    Join Date
    Aug 2016
    Posts
    6

    Default

    Hi Yusuke,

    Thanks for quick reply.
    In my example, the EFMediaType is 'Any' and PageSize is 'Custom'. These values are meaningless. I can't identify the type and size of paper we used. It is missing EFMediaWeight field in the job description.

    For the timestamp, could you help to give a sample in Python/Java/.Net, any programming language you like, to convert it to datetime?

    Thanks

  4. #4
    Yusuke_K is offline Senior Fiery Forum Contributor Yusuke_K is on a distinguished path
    Join Date
    Jul 2009
    Posts
    55

    Default

    Hi,

    We don't have any problem getting a proper paper size. If PageSize says custom then your jobs size don't have a normal size. It's taking info from PostScript.
    You might be able to see the size with "CustomPageSize" attribute. EFPrintSize is the actual paper size you use/used for output but if you haven't specify it at JP then it won't show up.

    Thanks,
    Yusuke

  5. #5
    Yusuke_K is offline Senior Fiery Forum Contributor Yusuke_K is on a distinguished path
    Join Date
    Jul 2009
    Posts
    55

    Default

    Regarding the timestamp.

    The timestamp is in "seconds:microseconds" format, elapsed since 01 Jan 1970 0000 GMT.

    http://www.epochconverter.com/ describes how to convert it to human readable format in various languages.

    We hope this helps!
    Yusuke

  6. #6
    Join Date
    Aug 2016
    Posts
    6

    Default

    Yusuke,

    I can see the job log from web console. see the image below.

    Name:  3910E4E416D5412CC0B0093CB471BA47.jpg
Views: 1469
Size:  11.0 KB

    The first column is job id and it's integer.
    Then, how to map it to the job in the Fiery API?
    It's 'id': u'81CA5128.57C0700D.21230' and 'original job ID': u'81CA5128.57C06EF1.21228' in Fiery API.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts