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.
 

Autodumper Bug Fix - to work with navbot

Author
Yumitori
State War Academy
Caldari State
#1 - 2012-04-26 22:30:05 UTC  |  Edited by: Yumitori
I've been working to use this in conjunction with navbot.

It did seem to work right away and autodumper made exporting the market data a little easier even if still manual. However after sometime i noticed trade routes would not update even after I had done them and then I saw that the age of reports in nav bot created by autodumper were still 0hours 0minutes old.

The report logs created by autodumper were an hour ahead.

Seems to be daylight savings problem so I adjusted the code a little. I must say however i know nothing about python and there could be a better fix, hell this fix might work until the clocks change and then bam broke again.


Quote:
At the top of the page under

from multiprocessing import Queue

add this:

from datetime import datetime



Find first instance of

d = time.strftime("%Y.%m.%d %H%M%S")

replace with

d = datetime.utcnow().strftime("%Y.%m.%d %H%M%S")



Find second instance of

d = time.strftime("%Y.%m.%d %H%M%S")

replace with

d = datetime.utcnow().strftime("%Y.%m.%d %H%M%S")


Ignore the instance of
s = (evetime - 116444736000000000) / 10000000
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(s))

As I say i don't know if this is the best way to do it I know next to nothing about python but this seems to have fix the time problem.
Nikiyla
Center for Advanced Studies
Gallente Federation
#2 - 2012-05-02 07:59:30 UTC  |  Edited by: Nikiyla
Excellent! I was having the same problem since I'm not in GMT. With this change to main.py, autodumper is exporting the files with Eve time.

This is perfect. I love it.

Now we need to fix Navbot to ignore the My orders export, then update the Navbot items database.
Yumitori
State War Academy
Caldari State
#3 - 2012-05-02 15:17:28 UTC  |  Edited by: Yumitori
I'm glad the fix came in handy for someone.

If I'm right main.py also creates the My orders####.txt . You could always just comment it out or remove the line that creates that file so the file will never show up in the marketlog folder.

The code
Quote:

elif action == "GetCharOrders":
d = datetime.utcnow().strftime("%Y.%m.%d %H%M%S")
filename = "My orders-%s.txt" % (d)
header = "orderID,typeID,charID, charName,regionID,regionName,stationID,stationName,range,bid,price,volEntered,volRemaining,issueDate, orderState,minVolume,contraband,accountID,duration,isCorp,solarSystemID,solarSystemName,escrow,\n"
character_id = what[2]

outfile = os.path.join(self.out, filename)

t = obj['lret'][0]


possible changes
Quote:

Comment out the output line
# outfile = os.path.join(self.out, filename)

Or just remove that line
Or even the whole elif if you understand it's structure ( I don't xD )


On I side note I like navbot but had too many issues like showing ghost orders ( orders that no longer existed ) eg. I buy items A and sell for profit then run navbot for new routes, then item shows up again. Either that or the buyer order shows up again when no one is buying the item for a profit.

I have changed to EONAPP which works better and stores all data to a local or remote sql database. I'm currently working on a php script with EONAPP the do a similar job to navbot with some welcome changes.

The dev of EONAPP and myself can be found ingame on the chat room EveOrg.net
Nikiyla
Center for Advanced Studies
Gallente Federation
#4 - 2012-05-03 18:19:57 UTC
I rather like the automated Market Orders export with autodumper.

At present, the My Orders shows up in NavBot as a very old order. I simply remove reports older than 24 hours in the NavBot reports interface.

I was having some issues with autodumper's main.py when generating My Orders anyway. I made changes and now it's working great.

I suppose there isn't any current support for autodumper, which is a shame as it is a very handy script.

I haven't yet had problems with NavBot, you simply have to remember to export everything as you buy and sell, especially when switching between regions.

I'll check out EONAPP and see what it has to offer.

Thanks,
Nikiyla

Tamon Kumamato
Perkone
Caldari State
#5 - 2012-05-04 09:32:55 UTC
Nice find, Yumitori, thank you very much!