Gettings the remaining time with the api

Hello, 
Can anyone help me, I need to get the remaining time with the API but I don't know how.
Thank you

Comments

  • Take current time, add time computed minus time elapsed.
  • Repetier said:
    Take current time, add time computed minus time elapsed.
    Sorry but you don't understand me, I need to get the remaining time with a command like this :
    127.0.0.1:3344/printer/api/xXxXxXxXx?a=XxXxXxX&apikey=xXxXxXxXxXxXxXxXx
  • That does not exist. that is why i told you how to compute it, The normal print status gives you all values in my equation. See api description how th api call would be for that,
  • Hi, in which format are these times. They doesn't seems Unix timestamp.
  • Printing times are simply seconds. Using the difference between printTime and printTimeComp plus current time you can compute ETA/ETE based on local time zone.
  • Thanks. Ok, but I noticed that there are also digits after comma (I don't remember how many): how am I suppose to handle that?
  • As I said it is seconds so fraction is fraction of a second. 1.34 means 1.34 seconds that simple:-)
  • Ok thank you. I had some doubt because there are many digits after comma.
  • This is an example of what I mean
    "printTime": 6992.575336368939
  • That is just because it is a double and they have 16 valid digits. json export does not reduce precision.
Sign In or Register to comment.