These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

SP per hour from API?

Author
Christmas Cheer
Doomheim
#1 - 2016-07-26 15:36:31 UTC
Hello -

Is there a simple way of exporting the SP per hour on a pilot from the API? I know where to find the implants, and the list of skills that are training, but I can't seem to find an easy way of calculating the sp per hour.

Is there an easy out that I am missing?

Thanks!
Dragonaire
Here there be Dragons
#2 - 2016-07-26 15:44:17 UTC
No you have to calculate it from char attributes etc I don't have a good url to formula right now but hopefully someone else does for you.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Christmas Cheer
Doomheim
#3 - 2016-07-26 15:46:37 UTC
I guess what I was thinking of doing was using the /char/SkillInTraining.xml.aspx info. Take the finished sp minus the starting sp - then take the finish time minus the start time - and then you can get the sp per hour... but it seems overly complicated.
Blacksmoke16
Imperial Academy
#4 - 2016-07-26 15:47:21 UTC
(Primary + Secondary/2) × 60
Captain Thunk
Explode. Now. Please.
Alliance. Now. Please.
#5 - 2016-07-27 10:33:06 UTC
TotalSkillPoints / (((TimestampOfSnapshot - TimestampOfCharacterDateOfBirth) / 60) /60)

Timestamps should be in Unix timestamp format

That gives you Average SP per hour over lifetime

For Current SP per hour follow your own advice, similar formula but using values from the current skill - its SP and its start and end times. You could run into problems with partially trained skills if you're not careful.
Dragonaire
Here there be Dragons
#6 - 2016-07-27 23:15:02 UTC
char/CharacterSheet.xml.aspx has the attributes and implants info so it should give you everything you need to do calculation. Only thing that might throw it off is if you switch clones with different implants etc will force you to recalculate but than the game does as well Blink

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.