stiez / pos-tracker-eve

Automatically exported from code.google.com/p/pos-tracker-eve
0 stars 0 forks source link

Eve-Market Data #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Admin Panel
2. Click the Update Prices via EVE_Marketdata

What is the expected output? Update Prices What do you see instead? All zeros.

What version of the POS Tracker are you using? 5.2.1

Original issue reported on code.google.com by darthore...@gmail.com on 13 Jul 2012 at 4:55

GoogleCodeExporter commented 9 years ago
I wonder if this has something to do with the updates not working.

http://evemarketdata.wordpress.com/2012/07/17/login-bug-fixed/

Original comment by darthore...@gmail.com on 20 Jul 2012 at 6:22

GoogleCodeExporter commented 9 years ago
A simple fix, thankfully...

on line 15 of includes/api.php
change this:

        $url = "http://eve-marketdata.com/api/item_prices.xml?type_ids=44,3683,3689,9832,9848,16274,17889,17887,17888,16273,16272,4247,4051,4312,4246®ion_id=".$args;

to

$url = 
"http://eve-marketdata.com/api/item_prices.xml?type_ids=44,3683,3689,9832,9848,1
6274,17889,17887,17888,16273,16272,4247,4051,4312,4246®ion_ids=".$args;

Notice the added s in region_id.

Original comment by sc...@pieh0.co.uk on 22 Jul 2012 at 12:05

GoogleCodeExporter commented 9 years ago
FYI, that looks like it only gives you the jita average sell price, but at 
least you can get the prices with that nasty hack.

The author needs to update it to item_prices2.xml standards, as it requires and 
gives more info.

http://eve-marketdata.com/api/item_prices.xml?type_ids=44,3683,3689,9832,9848,16
274,17889,17887,17888,16273,16272,4247,4051,4312,4246®ion_ids=10000002

vs 

http://eve-marketdata.com/api/item_prices2.xml?type_ids=44,3683,3689,9832,9848,1
6274,17889,17887,17888,16273,16272,4247,4051,4312,4246®ion_ids=10000002&char_na
me=Demitrios&buysell=s

The last 2 parts are required.

Original comment by sc...@pieh0.co.uk on 22 Jul 2012 at 12:18

GoogleCodeExporter commented 9 years ago
The fix was committed for this if anyone wonders, I'll just need to make sure 
its added in the next patch: 
http://code.google.com/p/pos-tracker-eve/source/detail?r=239

Original comment by frozenic...@gmail.com on 13 Apr 2013 at 3:31